/* ======================================
   APPLE STORE VIETNAM - MODERN DESIGN
   ====================================== */

/* CSS Variables */
:root {
    --primary-bg: #f5f5f7;
    --card-bg: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
    --accent-hover: #0077ed;
    --accent-orange: #bf4800;
    --divider: #d2d2d7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ======================================
   1. RESET & GLOBAL STYLES
   ====================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul, li {
    list-style: none;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ======================================
   2. HEADER & NAVIGATION
   ====================================== */

header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--divider);
    box-shadow: var(--shadow-sm);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.logo {
    font-size: 24px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    color: var(--text-primary);
}

.logo:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-menu {
    display: flex;
    gap: 0;
    margin: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu li a {
    padding: 12px 14px;
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    display: block;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.nav-menu li a:hover {
    color: var(--accent-blue);
    background-color: rgba(0, 0, 0, 0.04);
}

.nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-icon {
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.nav-icon:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* ======================================
   3. HERO BANNER SECTION
   ====================================== */

.hero-banner {
    background-image: url('./image/cny-gifting-header-202601.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px;
    margin-bottom: 20px;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-left {
    margin-bottom: 20px;
    flex: 0 0 25%;
    text-align: left;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero-title span {
    color: var(--text-secondary);
    font-size: 28px;
    display: block;
    font-weight: 400;
    margin-top: 8px;
}

.hero-center {
    max-width: 100%;
    width: 100%;
    flex: 0 0 40%;
    min-height: 280px;
}

.hero-center img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-right {
    margin-top: 16px;
    flex: 0 0 25%;
    text-align: right;
}

.hero-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* ======================================
   4. PRODUCT GRID LAYOUT
   ====================================== */

.product-list {
    margin-bottom: 60px;
}

.product-list h2 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
    line-height: 1.1;
    text-align: left;
    grid-column: 1 / -1;
}

.product-list h2 span {
    display: block;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 8px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    padding: 0;
    background-color: transparent;
}

/* ======================================
   5. PRODUCT CARDS
   ====================================== */

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(191, 72, 0, 0.1);
    color: var(--accent-orange);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ======================================
   6. PRODUCT IMAGE
   ====================================== */

.product-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: #fafafa;
    border-radius: 16px;
    overflow: hidden;
}

.product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* ======================================
   7. PRODUCT DETAILS
   ====================================== */

.product-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.specs {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* ======================================
   8. PRICE SECTION
   ====================================== */

.price-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 16px 0;
    width: 100%;
}

.price-status {
    font-size: 12px;
    color: var(--accent-orange);
    font-weight: 600;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-old {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.discount {
    font-size: 11px;
    color: var(--accent-orange);
    font-weight: 600;
}

/* ======================================
   9. RATING & REVIEWS
   ====================================== */

.rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    margin: 12px 0;
    width: 100%;
}

.stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

.reviews {
    color: var(--text-secondary);
}

/* ======================================
   10. BUTTONS
   ====================================== */

.button {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
    min-width: 80px;
    width: 100%;
}

.button:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
}

.button:active {
    transform: scale(0.98);
}

/* ======================================
   11. SIDEBAR & CONTACT
   ====================================== */

.sidebar {
    background: linear-gradient(135deg, #1d1d1f 0%, #2a2a2d 100%);
    color: white;
    padding: 48px 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 60px;
    box-shadow: var(--shadow-lg);
}

.social-icons h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.social-icons p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ======================================
   12. FOOTER
   ====================================== */

footer {
    background-color: #f5f5f7;
    border-top: 1px solid var(--divider);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

footer h2 {
    display: none;
}

.footer-item {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-item p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

/* ======================================
   13. RESPONSIVE DESIGN
   ====================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-title span {
        font-size: 22px;
    }

    .product-list h2 {
        font-size: 36px;
    }

    .product-list h2 span {
        font-size: 18px;
    }

    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .nav-menu li a {
        padding: 10px 12px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 44px;
        padding: 0 16px;
    }

    .logo {
        font-size: 20px;
        min-width: 44px;
    }

    .nav-menu {
        display: none;
    }

    .nav-right {
        gap: 8px;
    }

    .nav-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .hero-banner {
        padding: 40px 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-title span {
        font-size: 18px;
    }

    .hero-center img {
        border-radius: 16px;
    }

    .hero-text {
        font-size: 18px;
    }

    main {
        padding: 24px 16px;
    }

    .product-list h2 {
        font-size: 28px;
    }

    .product-list h2 span {
        font-size: 14px;
        margin-top: 4px;
    }

    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .product-card {
        padding: 20px 16px;
    }

    .product-image {
        height: 180px;
        margin-bottom: 16px;
    }

    .product-card h3 {
        font-size: 18px;
    }

    .sidebar {
        padding: 32px 24px;
        margin-top: 40px;
    }

    .social-icons h3 {
        font-size: 22px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 40px;
        padding: 0 12px;
    }

    .logo {
        font-size: 18px;
        min-width: 40px;
    }

    .nav-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .hero-banner {
        padding: 32px 12px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .hero-title span {
        font-size: 14px;
        margin-top: 4px;
    }

    .hero-text {
        font-size: 16px;
    }

    main {
        padding: 20px 12px;
    }

    .product-list h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .product-list h2 span {
        font-size: 12px;
        margin-top: 2px;
    }

    .product-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-card {
        padding: 16px 12px;
    }

    .product-image {
        height: 160px;
        margin-bottom: 12px;
    }

    .product-card h3 {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .specs {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .price-current {
        font-size: 18px;
    }

    .price-row {
        margin: 12px 0;
        gap: 4px;
    }

    .button {
        padding: 8px 16px;
        font-size: 12px;
        margin-top: 8px;
    }

    .sidebar {
        padding: 24px 16px;
        margin-top: 32px;
    }

    .social-icons h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .social-icons p {
        font-size: 12px;
        margin-bottom: 8px;
    }

    footer {
        padding: 24px 12px;
    }

    .footer-item p {
        font-size: 11px;
        margin-bottom: 6px;
    }
}

/* ======================================
   14. ANIMATIONS & EFFECTS
   ====================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* Print Styles */
@media print {
    header,
    footer,
    .nav-right {
        display: none;
    }

    main {
        padding: 0;
    }
}
