/* Main Styles for Second Year Official - 3D Ice Cream Website */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import Lanna theme variables */
@import url('lanna_theme.css');

body {
    font-family: var(--font-sans, 'Varela Round', sans-serif);
    font-weight: 400;
    font-style: normal;
    line-height: var(--leading-normal, 1.6);
    color: var(--foreground, var(--text-dark, #2D1810));
    background-color: var(--background, #F7E6D3);
}

/* Varela Round Font Utility Class */
.varela-round-regular {
    font-family: "Varela Round", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Apply Varela Round to all headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Varela Round', sans-serif;
    font-weight: 400;
}

/* Apply to buttons and inputs */
button, input, textarea, select {
    font-family: 'Varela Round', sans-serif;
}

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

/* Header */
.site-header {
    background: var(--card, var(--bg-white, #FEFCF8));
    box-shadow: var(--shadow-sm, 0 2px 4px -1px rgba(45, 24, 16, 0.06));
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 50px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2D1810;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--foreground, #2D1810);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-switcher button {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary, #FFD34D);
    background: transparent;
    color: var(--primary, #FFD34D);
    cursor: pointer;
    border-radius: var(--radius-sm, 8px);
    transition: all var(--duration-300, 0.3s);
    font-weight: 500;
}

.lang-switcher button.active,
.lang-switcher button:hover {
    background: var(--primary, #FFD34D);
    color: var(--primary-foreground, #2D1810);
}

/* Hero Section with Carousel */
.hero-section {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carousel Background */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(3px) brightness(0.85);
    transform: scale(1.05); /* Slight zoom for better coverage */
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Hero Overlay Content */
.hero-overlay {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 6rem 0;
}

.hero-content-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent, #B8856B);
    color: white;
    text-decoration: none;
    border-radius: var(--radius, 12px);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all var(--duration-300, 0.3s);
    box-shadow: var(--shadow-md, 0 8px 12px -2px rgba(45, 24, 16, 0.08));
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl, 0 20px 32px -8px rgba(45, 24, 16, 0.12));
    background: var(--gate-brick, #A67C5A);
    color: white;
}

/* Viewer Section */
.viewer-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.viewer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.viewer-canvas {
    background: var(--bg-light);
    border-radius: 12px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.placeholder-3d {
    text-align: center;
    color: #666;
}

.controls-panel {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Size Selection */
.size-options {
    display: flex;
    gap: 0.5rem;
}

.size-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    background: white;
    color: #2D1810;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.size-btn:hover,
.size-btn.active {
    border-color: var(--primary, #FFD34D);
    background: var(--primary, #FFD34D);
    color: var(--foreground, #2D1810);
}

/* Color Picker */
.color-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.color-btn {
    width: 100%;
    height: 50px;
    border: 3px solid transparent;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    transition: all var(--duration-300, 0.3s);
}

.color-btn:hover,
.color-btn.active {
    border-color: var(--foreground, #2D1810);
    transform: scale(1.1);
    box-shadow: var(--shadow-md, 0 8px 12px -2px rgba(45, 24, 16, 0.08));
}

/* Upload Area */
.upload-area input[type="file"] {
    display: none;
}

.upload-label {
    display: block;
    padding: 1rem;
    background: var(--bg-light);
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-label:hover {
    background: var(--primary-color);
    color: white;
    border-style: solid;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    position: relative;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary-color);
}

input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent, #B8856B);
    color: white;
    border: none;
    border-radius: var(--radius-sm, 8px);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-300, 0.3s);
}

.add-to-cart-btn:hover {
    background: var(--gate-brick, #A67C5A);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg, 0 12px 20px -4px rgba(45, 24, 16, 0.10));
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-screen.hidden {
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-screen p {
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Header */
    .site-header .container {
        flex-wrap: wrap;
        position: relative;
    }

    .logo {
        flex: 1;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .logo img {
        height: 40px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }

    .main-nav {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        margin-top: 1rem;
        border-top: 1px solid var(--border, #E0D0C0);
    }

    .main-nav li {
        border-bottom: 1px solid var(--border, #E0D0C0);
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    .header-actions {
        order: 1;
        gap: 0.5rem;
    }

    .lang-switcher button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .viewer-container {
        grid-template-columns: 1fr;
    }

    /* Carousel responsive */
    .hero-section {
        min-height: 500px;
    }

    .hero-content-box {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 15px;
        gap: 6px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .indicator.active {
        width: 20px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   NOTIFICATION STYLES
   ============================================ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: var(--card, white);
    border-radius: var(--radius-sm, 8px);
    box-shadow: var(--shadow-lg, 0 10px 20px rgba(0, 0, 0, 0.15));
    z-index: 10002;
    animation: slideInRight 0.3s ease-out;
    max-width: 350px;
    font-weight: 500;
}

.notification-success {
    background: #10b981;
    color: white;
    border-left: 4px solid #059669;
}

.notification-error {
    background: #ef4444;
    color: white;
    border-left: 4px solid #dc2626;
}

.notification-info {
    background: var(--primary, #FFD34D);
    color: var(--foreground, #2D1810);
    border-left: 4px solid var(--accent, #B8856B);
}

.notification.fade-out {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ============================================
   SHOPPING CART & CHECKOUT MODAL STYLES
   ============================================ */

/* Modal Base */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.close-btn,
.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--duration-300, 0.3s);
    padding: 0;
    line-height: 1;
}

.close-btn:hover,
.close-modal:hover {
    background: var(--muted, #F0DCC9);
    color: var(--foreground, #2D1810);
}

.modal-body {
    padding: 2rem;
}

/* Cart Items */
.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.cart-item:hover {
    box-shadow: var(--shadow);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: white;
}

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

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.cart-item-options {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border-radius: 8px;
    padding: 0.25rem;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-light);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #e55555;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.remove-item-btn:hover {
    background: #ffe5e5;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Cart Summary */
.cart-summary {
    border-top: 2px solid var(--bg-light);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    border-top: 2px solid var(--bg-light);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.summary-row .label {
    color: #666;
}

.summary-row .value {
    font-weight: 600;
    color: var(--primary-color);
}

.summary-row.total .value {
    color: var(--accent-color);
}

/* Cart Actions */
.cart-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cart-actions button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-sm, 8px);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-300, 0.3s);
    font-size: 1rem;
}

.btn-secondary,
.continue-shopping {
    background: var(--muted, #F0DCC9);
    color: var(--foreground, #2D1810);
}

.btn-secondary:hover,
.continue-shopping:hover {
    background: var(--muted-foreground, #6B5B4F);
    color: var(--card, white);
}

.btn-primary,
.checkout-btn {
    background: var(--accent, #B8856B);
    color: white;
}

.btn-primary:hover,
.checkout-btn:hover {
    background: var(--gate-brick, #A67C5A);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg, 0 12px 20px -4px rgba(45, 24, 16, 0.10));
}

/* Checkout Form */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked + .payment-label {
    color: var(--primary-color);
    font-weight: 600;
}

.payment-label {
    flex: 1;
    cursor: pointer;
}

/* Order Summary in Checkout */
.order-summary {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.order-summary h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.order-item:last-child {
    border-bottom: none;
}

.place-order-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.place-order-btn:hover {
    background: #e55555;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.place-order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Cart Button in Header */
.cart-button {
    position: relative;
    background: var(--accent, #B8856B);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--duration-300, 0.3s);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.cart-button:hover {
    background: var(--gate-brick, #A67C5A);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow, 0 4px 6px rgba(0, 0, 0, 0.1));
    text-decoration: none;
}

.cart-icon {
    display: flex;
    align-items: center;
}

.cart-count {
    background: white;
    color: var(--accent-color);
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 0.35rem;
}

/* Responsive Cart Modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 150px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cart-actions {
        flex-direction: column;
    }
}
