/* Hızlı Sipariş Sistemi - Kırmızı Tema & Yılbaşı Konsepti */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #dc2626;
    --dark-red: #b91c1c;
    --light-red: #fee2e2;
    --white: #ffffff;
    --off-white: #fafafa;
    --light-gray: #f5f5f5;
    --gray: #737373;
    --dark-gray: #404040;
    --black: #1a1a1a;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--black);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Snow Animation */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snow {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: snowfall linear infinite;
}

.snow:nth-child(1) {
    left: 10%;
    animation-duration: 10s;
    animation-delay: 0s;
}

.snow:nth-child(2) {
    left: 30%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.snow:nth-child(3) {
    left: 50%;
    animation-duration: 14s;
    animation-delay: 4s;
}

.snow:nth-child(4) {
    left: 70%;
    animation-duration: 11s;
    animation-delay: 1s;
}

.snow:nth-child(5) {
    left: 90%;
    animation-duration: 13s;
    animation-delay: 3s;
}

.snow:nth-child(6) {
    left: 15%;
    animation-duration: 11s;
    animation-delay: 0.5s;
}

.snow:nth-child(7) {
    left: 25%;
    animation-duration: 12s;
    animation-delay: 1.5s;
}

.snow:nth-child(8) {
    left: 35%;
    animation-duration: 13s;
    animation-delay: 2.5s;
}

.snow:nth-child(9) {
    left: 45%;
    animation-duration: 10s;
    animation-delay: 0.8s;
}

.snow:nth-child(10) {
    left: 55%;
    animation-duration: 14s;
    animation-delay: 1.2s;
}

.snow:nth-child(11) {
    left: 65%;
    animation-duration: 11s;
    animation-delay: 2.2s;
}

.snow:nth-child(12) {
    left: 75%;
    animation-duration: 12s;
    animation-delay: 0.3s;
}

.snow:nth-child(13) {
    left: 85%;
    animation-duration: 13s;
    animation-delay: 1.8s;
}

.snow:nth-child(14) {
    left: 5%;
    animation-duration: 10s;
    animation-delay: 0.2s;
}

.snow:nth-child(15) {
    left: 95%;
    animation-duration: 11s;
    animation-delay: 2.8s;
}

.snow:nth-child(16) {
    left: 20%;
    animation-duration: 12s;
    animation-delay: 1.1s;
}

.snow:nth-child(17) {
    left: 40%;
    animation-duration: 13s;
    animation-delay: 0.7s;
}

.snow:nth-child(18) {
    left: 60%;
    animation-duration: 10s;
    animation-delay: 2.3s;
}

.snow:nth-child(19) {
    left: 80%;
    animation-duration: 11s;
    animation-delay: 1.6s;
}

.snow:nth-child(20) {
    left: 50%;
    animation-duration: 12s;
    animation-delay: 0.4s;
}

@keyframes snowfall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* New Year Decoration - Snowflakes */
.new-year-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: white;
    font-size: 1.5rem;
    opacity: 0.7;
    animation: snowflake-fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.snowflake:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.snowflake:nth-child(2) {
    left: 20%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.snowflake:nth-child(3) {
    left: 30%;
    animation-duration: 9s;
    animation-delay: 0.5s;
}

.snowflake:nth-child(4) {
    left: 40%;
    animation-duration: 11s;
    animation-delay: 1.5s;
}

.snowflake:nth-child(5) {
    left: 50%;
    animation-duration: 8s;
    animation-delay: 0.3s;
}

.snowflake:nth-child(6) {
    left: 60%;
    animation-duration: 10s;
    animation-delay: 2s;
}

.snowflake:nth-child(7) {
    left: 70%;
    animation-duration: 9s;
    animation-delay: 0.8s;
}

.snowflake:nth-child(8) {
    left: 80%;
    animation-duration: 11s;
    animation-delay: 1.2s;
}

.snowflake:nth-child(9) {
    left: 15%;
    animation-duration: 8s;
    animation-delay: 2.5s;
}

.snowflake:nth-child(10) {
    left: 85%;
    animation-duration: 10s;
    animation-delay: 0.6s;
}

@keyframes snowflake-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 3px solid var(--primary-red);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
    background: var(--light-gray);
}

.header-link:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-section h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--black);
}

.tagline {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
    color: var(--gray);
}

.cart-icon {
    background: var(--primary-red);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.cart-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    background: var(--dark-red);
}

.cart-badge {
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Alert */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: var(--primary-red);
    color: var(--white);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

/* Category Cards Section */
.category-cards-section {
    margin-bottom: 3rem;
}

.section-header-categories {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header-categories h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.section-header-categories p {
    color: var(--gray);
    font-size: 1rem;
}

/* Main Categories Grid - Mobile App Style (5 Cards) */
.main-categories-grid-5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.main-category-card-mobile {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 160px;
    position: relative;
    overflow: hidden;
}

.main-category-card-mobile:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-red);
}

.main-category-card-mobile.active {
    background: var(--white);
    border-color: var(--primary-red);
    border-width: 3px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
}

.main-category-icon-mobile {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    line-height: 1;
}

.main-category-card-mobile:hover .main-category-icon-mobile {
    transform: scale(1.1);
}

.main-category-card-mobile.active .main-category-icon-mobile {
    transform: scale(1.05);
}

.main-category-title-mobile {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--black);
    line-height: 1.3;
}

.main-category-card-mobile.active .main-category-title-mobile {
    color: var(--primary-red);
}

.main-category-desc-mobile {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.4em;
}

.main-category-card-mobile.active .main-category-desc-mobile {
    color: var(--dark-gray);
}

.main-category-badge-mobile {
    display: inline-block;
    background: var(--light-gray);
    color: var(--dark-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: auto;
}

.main-category-card-mobile.active .main-category-badge-mobile {
    background: var(--light-red);
    color: var(--primary-red);
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 180px;
    border: 3px solid transparent;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--gold) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    border-color: var(--primary-red);
}

.category-card.active {
    background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
    color: var(--white);
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}

.category-card.active .category-card-content h3,
.category-card.active .category-card-content p,
.category-card.active .category-card-content .subcategory-count {
    color: var(--white);
}

.category-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-icon {
    transform: scale(1.2) rotate(5deg);
}

.category-card-content {
    flex-grow: 1;
    width: 100%;
}

.category-card-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.category-card.active .category-card-content h3 {
    color: var(--white);
}

.category-card-content p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.subcategory-count {
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.category-card.active .subcategory-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.category-card-arrow {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-top: 0.5rem;
    transition: transform 0.3s ease;
}

.category-card.active .category-card-arrow {
    color: var(--white);
    transform: rotate(180deg);
}

.category-card:hover .category-card-arrow {
    transform: translateX(5px);
}

.category-card.active:hover .category-card-arrow {
    transform: translateX(5px) rotate(180deg);
}

/* Subcategories Dropdown */
.subcategories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    z-index: 10;
    margin-top: 1rem;
    border-top: 2px solid var(--light-gray);
}

@media (max-width: 768px) {
    .subcategories-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 0;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .subcategories-dropdown.show {
        max-height: 70vh;
        padding: 1.5rem 0;
    }
    
    .subcategories-list {
        max-height: 60vh;
        overflow-y: auto;
    }
}

.category-card.active .subcategories-dropdown,
.subcategories-dropdown.show {
    max-height: 500px;
    padding: 1rem 0;
}

.subcategories-list {
    display: flex;
    flex-direction: column;
}

.subcategory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: var(--black);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.subcategory-item:hover {
    background: rgba(220, 38, 38, 0.1);
    border-left-color: var(--primary-red);
    color: var(--primary-red);
    padding-left: 2rem;
}

.subcategory-item .subcategory-count {
    background: rgba(220, 38, 38, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-red);
}

.subcategory-item:hover .subcategory-count {
    background: var(--primary-red);
    color: var(--white);
}

/* Search Bar */
.search-bar {
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    background: var(--white);
    color: var(--black);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input::placeholder {
    color: var(--gray);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.products-grid .product-card.hidden {
    display: none;
}

.product-card {
    background: var(--white);
    color: var(--black);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid var(--light-gray);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.2);
    border-color: var(--primary-red);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--light-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: var(--light-gray);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.quantity-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quantity-selector label {
    width: 100%;
    font-weight: 600;
    font-size: 0.9rem;
}

.unit-select,
.quantity-input {
    padding: 0.6rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.unit-select {
    flex: 1;
    min-width: 100px;
}

.quantity-input {
    flex: 1;
    min-width: 80px;
}

.quantity-input:focus,
.unit-select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.btn-add-cart {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

/* Debug Info */
.debug-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.debug-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.debug-info p {
    margin-bottom: 0.5rem;
}

.debug-info small {
    opacity: 0.8;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--white);
    color: var(--black);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-items {
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 1rem;
}

.cart-item-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.cart-item-info p {
    font-size: 0.9rem;
    color: var(--gray);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.cart-quantity {
    width: 80px;
    padding: 0.4rem;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    text-align: center;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-red);
}

.remove-item {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.remove-item:hover {
    transform: scale(1.2);
}

.btn-update-cart {
    width: 100%;
    padding: 0.8rem;
    background: var(--gray);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background 0.3s;
}

.btn-update-cart:hover {
    background: var(--dark-gray);
}

.cart-total {
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray);
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
    backdrop-filter: blur(5px);
}

.cart-overlay.active {
    display: block;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.checkout-modal.active {
    display: flex;
}

.checkout-content {
    background: var(--white);
    color: var(--black);
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.checkout-header {
    background: var(--white);
    color: var(--black);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
    border-bottom: 3px solid var(--primary-red);
}

.checkout-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.close-checkout {
    background: none;
    border: none;
    color: var(--black);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-checkout:hover {
    background: var(--light-gray);
}

.checkout-content form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--black);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.order-summary {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.order-summary h3 {
    margin-bottom: 1rem;
    color: var(--black);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.summary-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-red);
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    color: var(--primary-red);
}

.btn-submit-order {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    margin-top: 1rem;
}

.btn-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .header-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .logo-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .site-logo {
        height: 40px;
    }
    
    .logo-section h1 {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
    
    .main-categories-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .main-category-card-mobile {
        min-height: 150px;
        padding: 1.25rem 0.75rem;
    }
    
    .main-category-icon-mobile {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }
    
    .main-category-title-mobile {
        font-size: 1rem;
    }
    
    .main-category-desc-mobile {
        font-size: 0.8rem;
    }
    
    .section-header-categories h2 {
        font-size: 1.5rem;
    }
    
    .checkout-content {
        max-width: 100%;
        margin: 1rem;
    }

    .search-bar {
        margin-bottom: 1.5rem;
    }

    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .main-categories-grid-5 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .main-category-card-mobile {
        min-height: 140px;
        padding: 1.25rem 1rem;
    }
    
    .main-category-icon-mobile {
        font-size: 2.5rem;
    }
    
    .main-category-title-mobile {
        font-size: 0.95rem;
    }
    
    .main-category-desc-mobile {
        font-size: 0.75rem;
    }
}

