.cart-icon {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), #E8DDC8);
    color: #fff;
    border-radius: 50%;
    font-size: 25px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(245, 240, 230, 0.38);
}

#cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    background-color: white;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    padding: 0 4px;
    border-radius: 999px;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(380px, 100%);
    height: 100dvh;
    background-color: #1a1a1a;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transition: right 0.3s ease;
    z-index: 1201;
    display: flex;
    flex-direction: column;
}

.cart-modal.open {
    right: 0;
}

.cart-header,
.cart-footer {
    padding: 20px;
    background-color: #232428;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--accent);
}

.cart-header h2 {
    margin: 0;
    font-size: 22px;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

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

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-info span {
    color: var(--accent);
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.quantity-controls button {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
}

.quantity-controls span {
    margin: 0 10px;
}

.checkout-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.84);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.checkout-modal-overlay.open {
    visibility: visible;
    opacity: 1;
}

.checkout-modal {
    background-color: #1a1a1a;
    width: 100%;
    max-width: 440px;
    max-height: min(92dvh, 920px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.checkout-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    max-height: calc(min(92dvh, 920px) - 72px);
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.profile-input {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

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

.profile-input {
    background-color: #1a1a1a;
}

/* ===== FOOTER ===== */
.site-footer {
    margin-top: 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.25s ease;
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.social-link:hover .fa-facebook { color: #1877F2; }
.social-link:hover .fa-instagram { color: #E4405F; }

/* ===== DECOR ===== */
#sakura-fall-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.sakura-petal {
    position: absolute;
    background-color: #F3EBDD;
    border-radius: 10px 0 10px 10px;
    opacity: 0.7;
    animation-name: fall, sway;
    animation-iteration-count: infinite;
    animation-timing-function: linear, ease-in-out;
}

@keyframes fall {
    0% { transform: translateY(-10vh); }
    100% { transform: translateY(110vh); }
}

@keyframes sway {
    0%, 100% { margin-left: 0; rotate: 0deg; }
    50% { margin-left: 50px; rotate: 45deg; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .desktop-nav {
        gap: 20px;
    }

    .desktop-actions {
        gap: 8px;
    }

    .header-btn,
    .phone-btn {
        padding: 10px 12px;
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weekly-hero-card {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 900px) {
    .desktop-nav,
    .desktop-actions {
        display: none;
    }

    .burger {
        display: inline-flex;
    }

    .header-inner {
        width: min(100%, calc(100% - 20px));
        min-height: 68px;
        gap: 12px;
    }

    .brand {
        font-size: 18px;
        gap: 10px;
        max-width: calc(100% - 60px);
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    #weekly-banner {
        margin-top: 0;
    }

    .hero-banner {
        min-height: 540px;
        padding: 0;
        align-items: stretch;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(8, 8, 12, 0.38) 0%,
            rgba(8, 8, 12, 0.24) 42%,
            rgba(8, 8, 12, 0.64) 100%
        );
    }

    .weekly-hero-card {
        width: 100%;
        max-width: none;
        min-height: 540px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 0;
        padding: 120px 18px 30px;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    .weekly-hero-media,
    .weekly-hero-topline,
    .weekly-old-price,
    .weekly-hero-badge {
        display: none;
    }

    .weekly-hero-content {
        width: 100%;
        max-width: 560px;
        text-align: center;
        align-items: center;
        gap: 14px;
    }

    .weekly-hero-content h1 {
        font-size: clamp(32px, 9vw, 54px);
        line-height: 0.96;
    }

    .weekly-hero-prices {
        justify-content: center;
    }

    .weekly-hero-list li {
        padding-left: 0;
        font-size: 16px;
        line-height: 1.26;
    }

    .weekly-hero-list li::before {
        display: none;
    }

    .weekly-order-btn {
        width: 100%;
        max-width: 320px;
        min-height: 56px;
        font-size: 18px;
    }

    .menu-section,
    #about-section,
    #reviews-section {
        width: min(100%, calc(100% - 20px));
        padding: 32px 0;
    }

    .section-title {
        margin-bottom: 22px;
    }

    .categories {
        gap: 10px;
        margin-bottom: 22px;
    }

    .category-btn {
        font-size: 15px;
        padding: 11px 18px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-card {
        max-width: 420px;
        margin: 0 auto;
    }

    .product-card img {
        height: 230px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price,
    .product-price-promo {
        font-size: 28px;
    }

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

    .about-container,
    .reviews-shell {
        padding: 22px !important;
    }

    #about-map {
        height: 260px !important;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .cart-icon {
        width: 58px;
        height: 58px;
        right: 16px;
        bottom: 16px;
        font-size: 24px;
    }

    .cart-modal {
        width: min(100%, 360px);
    }

    .checkout-modal {
        max-width: 100%;
        border-radius: 16px;
    }

    .address-row,
    .admin-four-grid,
    .admin-report-grid,
    .admin-flags {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .address-row .map-btn {
        width: 100%;
        margin-top: 0 !important;
    }

    #profile-overlay .checkout-modal,
    #admin-overlay .checkout-modal {
        max-width: 100% !important;
        width: 100% !important;
    }

    #profile-overlay .checkout-modal > div[style*="padding: 20px; color: white; max-height: 75vh; overflow-y: auto;"],
    #admin-overlay .checkout-modal > div[style*="padding: 20px; max-height: 80vh; overflow-y: auto;"] {
        padding: 16px !important;
    }

    #rating-modal > div,
    #custom-modal .modal-content {
        width: min(100%, 360px) !important;
        min-width: 0 !important;
        padding: 22px !important;
    }

    .sakura-petal {
        display: none !important;
    }
}

@media (max-width: 560px) {
    .header-inner {
        min-height: 64px;
    }

    .brand {
        font-size: 15px;
        line-height: 1.02;
    }

    .hero-banner {
        min-height: 500px;
    }

    .weekly-hero-card {
        min-height: 500px;
        padding: 110px 16px 28px;
    }

    .weekly-hero-content h1 {
        font-size: 30px;
    }

    .weekly-new-price {
        font-size: 28px;
    }

    .weekly-hero-meta,
    .weekly-hero-list li {
        font-size: 15px;
    }

    .section-title {
        font-size: 30px;
    }

    .category-btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .product-card img {
        height: 210px;
    }

    .product-info {
        padding: 16px 14px 8px;
    }

    .product-title {
        font-size: 22px;
    }

    .product-desc {
        font-size: 14px;
        min-height: 0;
    }

    .product-meta {
        padding: 0 14px;
        align-items: center;
    }

    .product-weight {
        font-size: 14px;
    }

    .add-to-cart-btn {
        width: calc(100% - 28px);
    }

    .cart-header,
    .cart-footer,
    .cart-items,
    .checkout-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mobile-nav {
        padding-left: 10px;
        padding-right: 10px;
    }
}
