/* Global Styles */
:root {
    color-scheme: light;
    --primary-color: #E51C1E;
    /* Volkan Markt Red */
    --primary-hover: #CC181A;
    --primary-light: #F3F4F6;
    --secondary-color: #1F2937;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --bg-main: #FFFFFF;
    --bg-surface: #FFFFFF;
    --border-color: #E5E7EB;
    --error-color: #EF4444;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main) !important;
    color-scheme: light;
    /* Forces Safari/Chrome to keep light mode colors */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Announcement Marquee */
.announcement-bar {
    background-color: var(--bg-surface);
    color: var(--primary-color);
    padding: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.announcement-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}

.announcement-content span {
    margin-right: 3rem;
    display: inline-block;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Sticky Header Wrapper */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 105;
    background-color: var(--bg-surface);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.sticky-header.scrolled {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    background-color: transparent;
}

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

.brand {
    display: flex;
    align-items: center;
    max-width: 220px;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-hover);
}

.brand h1 span {
    color: var(--secondary-color);
}

.brand-logo {
    height: 70px !important;
    max-height: 70px !important;
    max-width: 240px !important;
    width: auto;
    object-fit: contain;
    transition: max-height 0.3s ease, height 0.3s ease;
}

.sticky-header.scrolled .brand-logo {
    height: 40px !important;
    max-height: 40px !important;
}

.sticky-header.scrolled .master-nav {
    padding: 0.2rem 0.5rem;
}

.sticky-header.scrolled .navbar-container {
    padding: 0.15rem 1rem;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-switch {
    display: flex;
    background: var(--bg-main);
    border-radius: 20px;
    padding: 0.25rem;
}

.lang-btn {
    border: none;
    background: var(--bg-surface);
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn:hover {
    color: var(--primary-color);
    background: #fffafa;
}

.lang-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(229, 28, 30, 0.3);
}

.cart-trigger {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-main);
    transition: var(--transition);
}

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

#cart-count {
    position: absolute;
    top: -2px;
    right: -8px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    height: 20px;
    min-width: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Master Navigation Ribbon */
.master-nav {
    display: flex;
    justify-content: center;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem;
    gap: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.master-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem;
    transition: var(--transition);
}

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

/* Hero Section (E-Commerce Banners) */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 420px;
    margin: 1.5rem 0 2.5rem 0;
    border-radius: 16px;
    overflow: hidden;
    background-image: url('hero-bg.png');
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 45%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3.5rem;
    max-width: 65%;
    color: #ffffff;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(229, 28, 30, 0.4);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-note {
    font-size: 0.85rem;
    font-style: italic;
    color: #cbd5e1;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
    opacity: 0.9;
}

/* Mobile Responsiveness for Hero */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        background-position: 70% center;
        align-items: flex-end;
    }
    .hero-overlay {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.95) 70%, rgba(15, 23, 42, 1) 100%);
    }
    .hero-content {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Main Container & Grid */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile: 2 items */
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Tablet: 3 items */
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Desktop: 4 items (User requested!) */
        gap: 1.5rem;
    }
}

@media (min-width: 1440px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        /* Wide: 5 items */
        gap: 2rem;
    }
}

/* Product Card */
.product-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Premium Soft Shadow */
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: none;
    /* Removed harsh border */
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    /* Lift and blur on hover */
}

.product-image-container {
    width: 100%;
    height: 180px;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-image: url('volkan-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
}

.product-image-container img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s, opacity 0.3s ease-in-out;
}

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

.missing-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f7f9fc;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.missing-image img {
    margin-bottom: 0.5rem;
    transition: none !important;
}

.missing-image:hover img {
    transform: none !important;
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

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

.product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 1rem;
}

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

.product-unit {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: var(--bg-surface);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    /* Soft UI Box */
}

.add-to-cart-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 16px rgba(229, 28, 30, 0.3);
    /* Red glow push */
    transform: translateY(-2px);
}

/* Cart Overlay & Modal */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .brand-logo {
        height: 50px !important;
        max-height: 50px !important;
        max-width: 140px !important;
    }
}

.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-surface);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cart-overlay.active .cart-modal {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
}

.cart-items {
    flex: 0 0 auto;
    min-height: 25vh;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--bg-main);
    border-radius: var(--border-radius-sm);
    padding: 0.25rem;
}

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

.cart-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

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

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-main);
    border-radius: var(--border-radius-sm);
    padding: 0.25rem;
}

.qty-btn {
    border: none;
    background: var(--bg-surface);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.qty-val {
    font-weight: 600;
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.remove-btn {
    color: var(--error-color);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.cart-footer {
    padding: 1.5rem;
    padding-bottom: 5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-main);
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.fee-price {
    font-weight: 600;
    color: var(--text-main);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input.error {
    border-color: var(--error-color);
}

.error-msg {
    display: none;
    color: var(--error-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.error-msg.visible {
    display: block;
}

.payment-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: sticky;
    bottom: 1rem;
    margin-top: 1rem;
    z-index: 999;
}

.checkout-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.checkout-btn:disabled {
    background: #A7CBB7;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    padding: 2rem 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Utilities */
.loader {
    border: 4px solid var(--bg-main);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 3rem auto;
    grid-column: 1 / -1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Categories */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    border: 2px solid var(--primary-color);
    background: var(--bg-surface);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

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

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(229, 28, 30, 0.3);
}

/* Product Modal */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 950;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 1rem;
}

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

.product-modal {
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: var(--transition);
}

.product-modal-overlay.active .product-modal {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-main);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.product-modal-body {
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    background: var(--bg-main);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

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

/* Mobile Responsiveness & Safeties */
@media (max-width: 768px) {
    .brand-logo {
        height: 45px !important;
        max-height: 45px !important;
        max-width: 140px !important;
    }

    .navbar-container {
        padding: 0.5rem;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .announcement-bar {
        font-size: 0.8rem;
        padding: 0.4rem 0;
    }

    .announcement-content {
        flex-direction: column;
        gap: 0.25rem;
    }

    .lang-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-image-container {
        height: 180px;
    }

    .product-title {
        font-size: 1rem;
    }

    .separator {
        display: none;
    }

    .categories {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-padding-left: 1rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .category-btn {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    /* Prevent overlay interference on Cart Buttons */
    .add-to-cart-btn {
        position: relative;
        z-index: 50;
        pointer-events: auto;
    }
}

/* ==================================================== */
/* PRINT STYLES (Thermal Receipt 80mm)                 */
/* ==================================================== */
@media print {
    body * {
        visibility: hidden;
    }

    .printable-receipt,
    .printable-receipt * {
        visibility: visible;
    }

    .printable-receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 80mm;
        margin: 0;
        padding: 5mm;
        font-family: 'Courier New', Courier, monospace;
        color: #000 !important;
        background: #fff !important;
        font-size: 12px;
        line-height: 1.4;
    }

    .printable-receipt h3 {
        text-align: center;
        margin: 0 0 10px 0;
        font-size: 16px;
        text-transform: uppercase;
        border-bottom: 2px dashed #000;
        padding-bottom: 5px;
    }

    .printable-receipt .receipt-meta {
        margin-bottom: 10px;
        border-bottom: 1px dashed #000;
        padding-bottom: 5px;
    }

    .printable-receipt .receipt-meta p {
        margin: 2px 0;
    }

    .printable-receipt .receipt-item {
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
    }

    .printable-receipt .receipt-total {
        margin-top: 10px;
        padding-top: 5px;
        border-top: 2px dashed #000;
        text-align: right;
        font-weight: bold;
        font-size: 16px;
    }

    .no-print {
        display: none !important;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================= */
/* GDPR COOKIE CONSENT STYLES                */
/* ========================================= */

.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.cookie-actions button {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

#cookie-accept-all {
    background-color: var(--primary-color);
    color: white;
}

#cookie-accept-all:hover {
    background-color: var(--primary-hover);
}

#cookie-accept-essential {
    background-color: #f3f4f6;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

#cookie-accept-essential:hover {
    background-color: #e5e7eb;
}

#cookie-settings-btn {
    background: none;
    color: var(--text-muted);
    text-decoration: underline;
    padding: 0.75rem 0.5rem;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-inner {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-inner {
    transform: translateY(0);
}

.cookie-category {
    margin-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Custom Toggle Switch for Cookies */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.cookie-toggle input:checked+.cookie-slider {
    background-color: var(--primary-color);
}

.cookie-toggle input:checked+.cookie-slider:before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled+.cookie-slider {
    background-color: #9ca3af;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-banner p {
        flex: 1;
        margin-right: 2rem;
    }

    .cookie-actions {
        flex-direction: column;
        margin-top: 0;
        min-width: 250px;
        align-items: stretch;
    }

    .cookie-actions button {
        width: 100%;
    }
}