/*
Theme Name: ShopQuaTet Clone
Theme URI: https://shopquatet.com
Author: Student Project
Author URI: https://shopquatet.com
Description: Clone của shopquatet.com cho mục đích học tập - WordPress Theme cho website bán quà Tết
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: Educational Use Only
License URI: #
Text Domain: shopquatet-clone
Tags: e-commerce, woocommerce, gift-shop, tet, vietnamese
*/

/* ==========================================
   RESET & BASE STYLES
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #cb2128;
    --secondary-color: #ffd7a6;
    --text-dark: #333333;
    --text-light: #666666;
    --background: #ffffff;
    --border-color: #e5e5e5;
    --success-color: #28a745;
    --discount-color: #ff3333;
    --header-bg: #cb2128;
    --header-bottom-bg: #f1f1f1;
}

body {
    font-family: 'Roboto', 'Arial', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   GRID SYSTEM (Flatsome-like)
========================================== */
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.row-small {
    margin-left: -7.5px;
    margin-right: -7.5px;
}

.col {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.row-small > .col {
    padding-left: 7.5px;
    padding-right: 7.5px;
}

.col-inner {
    position: relative;
    box-sizing: border-box;
}

/* Column Sizes */
.small-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.large-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Large Columns (Desktop) */
.large-columns-4 > .col {
    flex: 0 0 25%;
    max-width: 25%;
}

.large-columns-3 > .col {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.large-columns-2 > .col {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Medium Columns (Tablet) */
@media (max-width: 849px) {
    .medium-columns-3 > .col {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
    
    .medium-columns-2 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Small Columns (Mobile) */
@media (max-width: 549px) {
    .small-columns-2 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .small-columns-1 > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================================
   HEADER STYLES
========================================== */

/* Header Background Colors */
.header-bg-color {
    background-color: #cb2128;
}

.header-bottom {
    background-color: #f1f1f1;
}

.header-main {
    height: 77px;
    background-color: #cb2128;
}

.header:not(.transparent) .header-nav-main.nav > li > a {
    color: #ffffff;
}

.header-wrapper {
    background-color: #cb2128;
}

#logo {
    width: 147px;
}

#logo img {
    max-height: 77px;
}

.site-header {
    background: #cb2128;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation a {
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon {
    position: relative;
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.hotline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

/* ==========================================
   HERO SECTION
========================================== */
.hero-section {
    background: linear-gradient(135deg, #c8102e 0%, #ff6b6b 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ==========================================
   CATEGORY TABS
========================================== */
.category-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 12px 30px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.category-tab:hover,
.category-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==========================================
   PRODUCT GRID
========================================== */
.products-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--discount-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.product-badge.sold-out {
    background: #999999;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.original-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-range {
    font-size: 14px;
    color: var(--text-light);
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #a00d26;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(200, 16, 46, 0.3);
}

.add-to-cart-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* ==========================================
   VIDEO SECTION
========================================== */
.video-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-top: 30px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================
   CONTACT FORM SECTION
========================================== */
.contact-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #a00d26;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

/* ==========================================
   TESTIMONIALS SECTION
========================================== */
.testimonials-section {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.testimonial-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.testimonial-location {
    font-size: 14px;
    color: var(--text-light);
}

.testimonial-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    font-style: italic;
}

/* ==========================================
   ABOUT SECTION
========================================== */
.about-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-image {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* ==========================================
   FAQ SECTION
========================================== */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    background: white;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
}

.faq-question.active::after {
    content: '−';
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 20px 25px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.faq-answer ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* ==========================================
   FOOTER
========================================== */
.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section p,
.footer-section li {
    font-size: 14px;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 10px;
}

.footer-section a {
    color: #cccccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 30px;
    text-align: center;
    color: #999999;
    font-size: 14px;
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-direction: column;
    }
    
    .category-tab {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================
   UTILITY CLASSES
========================================== */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}
