/* =========================================
   FunFairDay - Main Stylesheet
   ========================================= */

/* --- CSS Variables --- */
:root {
    --primary: #FF6B6B;
    --primary-dark: #e85a5a;
    --secondary: #4ECDC4;
    --secondary-dark: #3dbdb5;
    --accent: #FFE66D;
    --accent-dark: #f0d65e;
    --dark: #2C3E50;
    --dark-light: #34495E;
    --text: #555;
    --text-light: #888;
    --bg: #FFF8F0;
    --bg-light: #FFFFFF;
    --bg-dark: #FFF0E6;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --font: 'Nunito', sans-serif;
    --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Cart Button --- */
.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    padding: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.cart-btn:hover {
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(4px, -4px);
    transition: var(--transition);
}

/* --- Hero Banner --- */
.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFE66D 0%, #FF6B6B 50%, #4ECDC4 100%);
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/FFD banner.jpeg') center / cover no-repeat;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(44, 62, 80, 0.3) 0%,
        rgba(44, 62, 80, 0.1) 50%,
        rgba(44, 62, 80, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 700px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* --- YouTube Section --- */
.youtube-section {
    padding: 30px 0;
    background: var(--bg);
}

.youtube-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.youtube-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-light);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    min-width: 240px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.youtube-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.youtube-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    border-radius: var(--radius-sm);
}

.youtube-icon {
    color: #FF0000;
    flex-shrink: 0;
}

.youtube-info {
    display: flex;
    flex-direction: column;
}

.youtube-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
}

.youtube-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Products Grid --- */
.categories {
    background: var(--bg-light);
}

.products-grid,
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* --- Category Page --- */
.category-header {
    padding-top: 120px;
    padding-bottom: 20px;
    background: var(--bg);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-dark);
}

.category-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.category-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 600px;
}

.category-products {
    padding-top: 20px;
}

.product-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image .placeholder-icon {
    font-size: 4rem;
    opacity: 0.4;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.product-name a {
    color: var(--dark);
    transition: var(--transition);
}

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

.product-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.product-btn {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.product-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.product-color-1 { background: linear-gradient(135deg, #FFE66D, #FFD93D); }
.product-color-2 { background: linear-gradient(135deg, #FF6B6B, #ee5a5a); }
.product-color-3 { background: linear-gradient(135deg, #4ECDC4, #36b5ad); }
.product-color-4 { background: linear-gradient(135deg, #C084FC, #a855f7); }

/* --- About Section --- */
.about {
    background: var(--bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-img-placeholder {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 1.1rem;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Cart Panel --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--bg-light);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

.cart-panel.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.cart-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    transition: var(--transition);
}

.cart-close:hover {
    color: var(--dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    gap: 16px;
}

.cart-empty p {
    font-size: 1rem;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: var(--bg-light);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text);
}

.cart-qty-btn:hover {
    background: var(--bg-dark);
    border-color: var(--primary);
    color: var(--primary);
}

.cart-item-qty {
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 24px;
    text-align: center;
}

.cart-item-total {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    transition: var(--transition);
    padding: 4px;
    margin-left: auto;
}

.cart-item-remove:hover {
    color: var(--primary);
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--bg-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
}

.cart-total-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-checkout {
    width: 100%;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-light);
    border-radius: var(--radius);
    z-index: 3001;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark);
}

.modal-content {
    padding: 32px;
}

.modal-product-image {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 20px;
}

.modal-product-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.modal-product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.modal-product-desc {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-qty label {
    font-weight: 600;
    color: var(--dark);
}

.modal-qty-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: var(--bg-light);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-qty-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.modal-qty-input {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}

.modal-add-btn {
    width: 100%;
}

/* --- Customization Modal --- */
.custom-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.custom-step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.custom-step-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.case-styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.case-style-card {
    cursor: pointer;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    transition: var(--transition);
}

.case-style-card:hover {
    border-color: var(--secondary);
}

.case-style-card.selected {
    border-color: var(--primary);
    background: rgba(255,107,107,0.05);
}

.case-style-preview {
    width: 100%;
    height: 50px;
    border-radius: 4px;
    margin-bottom: 6px;
    background: #f0f0f0;
    border: 1px solid rgba(0,0,0,0.06);
}

.case-style-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
}

.case-style-price {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-top: 2px;
}

.case-preview-clear-classic { background: linear-gradient(135deg, #e8e8e8, #fff); }
.case-preview-glossy { background: linear-gradient(135deg, #d4d4d4, #fff); }
.case-preview-matte { background: linear-gradient(135deg, #2c2c2c, #555); }
.case-preview-glitter { background: linear-gradient(135deg, #ffe4e6, #fff0b5); }
.case-preview-marble { background: linear-gradient(135deg, #e8e0d8, #c8c0b8); }
.case-preview-frost { background: linear-gradient(135deg, #e0e8f0, #f0f4ff); }
.case-preview-mirror { background: linear-gradient(135deg, #c0c0c0, #e8e8e8); }
.case-preview-gradient { background: linear-gradient(135deg, #ff6b6b, #4ecdc4); }
.case-preview-metallic { background: linear-gradient(135deg, #ffd700, #daa520); }
.case-preview-ultra-slim { background: linear-gradient(135deg, #f0f0f0, #fff); }

.color-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.selected {
    border-color: var(--dark);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--dark);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    transition: var(--transition);
}

.option-checkbox:has(input:checked) {
    border-color: var(--primary);
    background: rgba(255,107,107,0.05);
}

.option-input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.option-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.9rem;
}

.option-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

.option-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.custom-total {
    padding: 16px 0;
    font-weight: 700;
    color: var(--dark);
}

.custom-total-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.custom-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.custom-total-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.custom-selections {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.custom-selections .text-muted {
    font-style: italic;
    color: #bbb;
}

.cart-item-custom {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 4px 0;
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--dark);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 5000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.toast.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Success Page --- */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.success-content {
    max-width: 500px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.success-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.success-text {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .section {
        padding: 60px 0;
    }
    
    .about-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .header-inner {
        padding: 8px 16px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cart-panel {
        max-width: 100%;
    }

    .modal {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .nav {
        gap: 12px;
    }
}
