/* Imports & Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

/* CSS Variables */
:root {
    --primary-color: #663e15;
    --secondary-color: #6b340d;
    --accent-color: #2cc062;
    --text-color: #000000;
    --light-bg: #FAF9F6;
    --white: #FAF9F6;
    --border-color: #E0E0E0;
    --gold: #dab43a;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);
    --primary-text: #663e15;
    --text-soft: #666666;
    --text-muted: #999999;
    --surface: #ffffff;
    --surface-2: #f8f9fa;
    --surface-3: #e9ecef;
    --text-strong: #333333;
    --star-off: #dddddd;
    --divider: rgba(0,0,0,0.1);
    --glass-note: rgba(255,255,255,0.3);
    --note-green-bg: #e8f5e8;
    --note-green-border: #c8e6c9;
    --note-warn-bg: #fff3cd;
    --note-warn-border: #ffecb5;
    color-scheme: light;
}

/* Dark Theme Variables */
html[data-theme="dark"] {
    --primary-text: #dcae74;
    --text-color: #f2ebe2;
    --light-bg: #1d1814;
    --white: #14110e;
    --border-color: #3f362d;
    --text-soft: #c4b9ac;
    --text-muted: #8f8579;
    --surface: #231e19;
    --surface-2: #2b251f;
    --surface-3: #38302a;
    --shadow: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.55);
    --glass: rgba(255,255,255,0.07);
    --glass-strong: rgba(255,255,255,0.11);
    --glass-line: rgba(255,255,255,0.14);
    --panel: rgba(30,25,20,0.97);
    --text-strong: #e6ddd2;
    --star-off: #675b4e;
    --divider: rgba(255,255,255,0.14);
    --glass-note: rgba(255,255,255,0.08);
    --note-green-bg: rgba(44,192,98,0.12);
    --note-green-border: rgba(44,192,98,0.3);
    --note-warn-bg: rgba(255,193,7,0.12);
    --note-warn-border: rgba(255,193,7,0.3);
    color-scheme: dark;
}

/* Base */
body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-weight: 500;
}

@media (max-width: 767px) {
    body {
        font-size: 15px;
        line-height: 1.4;
        overflow-x: hidden;
        width: 100%;
    }
}

h1, h2, h3, h4, h5, h6,
.section-title,
.product-title,
.footer-brand,
.buy-button,
.cart-popup-header h3,
.cart-item-name,
.footer-section-title,
.footer-contact-item .contact-text {
    font-weight: 600;
    letter-spacing: -0.3px;
}

.footer-description,
.product-price,
.cart-item-price,
.toast-message,
.footer-bottom {
    font-weight: 400;
}

html {
    scroll-padding-top: var(--header-height);
}

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

.container-wide {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Accessibility */
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    inset-inline-start: 8px;
    top: -70px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 5000;
    text-decoration: none;
}

.skip-link:focus {
    top: 8px;
}

/* Hero Intro */
.hero-intro {
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 20px 20px 0;
    text-align: center;
}

.hero-intro h1 {
    font-size: clamp(1.6rem, 4.5vw, 2.6rem);
    line-height: 1.4;
    color: var(--primary-text);
    margin: 0 0 12px;
    font-weight: 800;
}

.hero-intro p {
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    line-height: 1.8;
    color: #3a2a18;
    margin: 0 0 20px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.4;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 62, 21, 0.25);
}

.hero-btn-ghost {
    border: 2px solid var(--primary-color);
    color: var(--primary-text);
    background: transparent;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .hero-btn {
        min-height: 38px;
        padding: 7px 16px;
        font-size: 0.9rem;
    }
}

/* Hero Swiper Section */
.swiper-hero-section {
    padding: var(--header-height) 0 50px;
    background: transparent;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
}

.hero-image-swiper {
    width: 100%;
    padding: 0 20px;
    overflow: visible;
    perspective: 1200px;
}

.hero-image-card {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: box-shadow 0.4s ease;
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: inherit;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s ease;
}

.hero-image-card:hover img {
    transform: translateZ(0) scale(1.05);
}

@media (max-width: 992px) {
    .hero-image-card {
        border-radius: 18px;
    }
}

@media (max-width: 768px) {
    .swiper-hero-section {
        padding: var(--header-height) 0 30px;
    }

    .hero-image-swiper {
        padding: 0 15px;
    }

    .hero-image-card {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .swiper-hero-section {
        padding: var(--header-height) 0 25px;
    }

    .hero-image-swiper {
        padding: 0 10px;
    }

    .hero-image-card {
        border-radius: 14px;
    }
}

/* Products Section */
.products {
    padding: 60px 0;
    background: transparent;
    position: relative;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 14px auto 0;
    border-radius: 4px;
}

.section-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 10px;
}

@media (max-width: 767px) {
    .products {
        padding: 30px 0;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .products-grid > *:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 10px);
        justify-self: center;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
        padding: 0 12px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 26px;
        padding: 0 15px;
    }
}

@media (min-width: 1024px) {
    .products {
        padding: 80px 0;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        padding: 0 20px;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        gap: 26px;
        max-width: 1500px;
        padding: 0 20px;
    }
}

@media (min-width: 1400px) {
    .products-grid {
        gap: 34px;
        max-width: 1500px;
    }
}

@media (max-width: 479px) {
    .products {
        padding: 40px 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 8px;
    }
}

@media (max-width: 359px) {
    .products-grid {
        gap: 14px;
        padding: 0 6px;
    }
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    position: relative;
    opacity: 0;
    animation: fadeScaleUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-section {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.product-card:hover .product-image-section {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.product-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
    border-radius: 14px;
    transform: scale(1);
    will-change: transform;
}

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

.product-image-section .placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 0.75rem;
    text-align: center;
    width: 90%;
}

/* Add to cart icon button */
.add-to-cart-icon-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 5;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.add-to-cart-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.add-to-cart-icon-btn:hover {
    background: rgba(44, 192, 98, 0.35);
    border-color: rgba(44, 192, 98, 0.5);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(44, 192, 98, 0.2);
}

.add-to-cart-icon-btn:active {
    transform: scale(0.95);
}

.add-to-cart-icon-btn.checkmark-animation {
    background: rgba(44, 192, 98, 0.95);
    border-color: rgba(44, 192, 98, 1);
    cursor: default;
}

.add-to-cart-icon-btn.checkmark-animation svg {
    stroke: none;
}

/* Product Info */
.product-info-section {
    padding: 10px 4px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    text-align: center;
    background: transparent;
}

.product-info-section .product-title {
    order: 1;
    text-align: center;
    width: 100%;
}

.product-info-section .product-price-wrapper {
    order: 2;
    justify-content: center;
}

.product-info-section .product-ratings-container {
    order: 3;
    justify-content: center;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.4em;
    transition: color 0.3s ease;
}

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

.product-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.current-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-text);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.old-price {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
    line-height: 1.2;
}

/* Product Card Media Queries */
@media (min-width: 480px) and (max-width: 767px) {
    .product-title {
        font-size: 1rem;
    }

    .current-price {
        font-size: 1.25rem;
    }

    .old-price {
        font-size: 0.9rem;
    }

    .add-to-cart-icon-btn {
        width: 40px;
        height: 40px;
        bottom: 8px;
        right: 8px;
    }

    .add-to-cart-icon-btn svg {
        width: 19px;
        height: 19px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .product-info-section {
        padding: 12px 6px 0;
        gap: 6px;
    }

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

    .current-price {
        font-size: 1.35rem;
    }

    .old-price {
        font-size: 0.95rem;
    }

    .add-to-cart-icon-btn {
        width: 42px;
        height: 42px;
        bottom: 10px;
        right: 10px;
    }

    .add-to-cart-icon-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 1024px) {
    .product-image-section {
        border-radius: 16px;
    }

    .product-info-section {
        padding: 14px 6px 0;
        gap: 7px;
    }

    .product-title {
        font-size: 1.15rem;
        min-height: 2.8em;
    }

    .current-price {
        font-size: 1.55rem;
    }

    .old-price {
        font-size: 1rem;
    }

    .add-to-cart-icon-btn {
        width: 44px;
        height: 44px;
        bottom: 12px;
        right: 12px;
    }

    .add-to-cart-icon-btn svg {
        width: 21px;
        height: 21px;
    }
}

@media (min-width: 1400px) {
    .product-title {
        font-size: 1.25rem;
    }

    .current-price {
        font-size: 1.7rem;
    }

    .old-price {
        font-size: 1.05rem;
    }
}

@media (max-width: 479px) {
    .product-image-section {
        border-radius: 10px;
    }

    .product-info-section {
        padding: 8px 2px 0;
        gap: 4px;
    }

    .product-title {
        font-size: 0.82rem;
        min-height: 2.2em;
        line-height: 1.3;
    }

    .current-price {
        font-size: 1rem;
    }

    .old-price {
        font-size: 0.75rem;
    }

    .add-to-cart-icon-btn {
        width: 32px;
        height: 32px;
        bottom: 6px;
        right: 6px;
    }

    .add-to-cart-icon-btn svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 359px) {
    .product-title {
        font-size: 0.78rem;
    }

    .current-price {
        font-size: 0.95rem;
    }

    .old-price {
        font-size: 0.7rem;
    }

    .add-to-cart-icon-btn {
        width: 28px;
        height: 28px;
        bottom: 5px;
        right: 5px;
    }

    .add-to-cart-icon-btn svg {
        width: 13px;
        height: 13px;
    }
}

/* Product card animation delays */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.30s; }

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

/* Product Ratings */
.product-ratings-container {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 22px !important;
    margin-top: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    order: 3;
}

.ratings-loading {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    opacity: 0.5 !important;
}

.stars-placeholder {
    color: #e5e7eb !important;
    font-size: 0.9rem !important;
    letter-spacing: 1px !important;
    direction: ltr !important;
}

.count-placeholder {
    font-size: 0.7rem !important;
    color: #9ca3af !important;
    font-weight: 400 !important;
}

.product-ratings {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    justify-content: center !important;
}

.product-stars {
    direction: ltr !important;
    font-size: 0.9rem !important;
    color: #ffc107 !important;
    display: flex !important;
    gap: 0 !important;
    height: 16px !important;
    align-items: center !important;
}

.product-stars .star {
    display: inline-block !important;
    line-height: 1 !important;
}

.product-stars .star.full {
    color: #ffc107 !important;
}

.product-stars .star.half {
    color: #ffc107 !important;
    opacity: 0.7 !important;
    position: relative !important;
}

.product-stars .star.empty {
    color: #e5e7eb !important;
}

.product-rating-info {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    line-height: 1 !important;
}

.rating-average {
    font-weight: 600 !important;
    color: var(--primary-text) !important;
    font-size: 0.75rem !important;
}

.rating-count {
    color: #9ca3af !important;
    font-size: 0.7rem !important;
    font-weight: 400 !important;
}

.no-ratings {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    opacity: 0.4 !important;
}

.empty-stars {
    color: #e5e7eb !important;
    font-size: 0.9rem !important;
    letter-spacing: 1px !important;
    direction: ltr !important;
}

.no-ratings-text {
    font-size: 0.7rem !important;
    color: #9ca3af !important;
    font-weight: 400 !important;
}

.product-content {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
}

.product-title {
    order: 1 !important;
    margin-bottom: 8px !important;
}

.product-price {
    order: 2 !important;
    margin-bottom: 0 !important;
}

.buy-button {
    order: 4 !important;
    margin-top: auto !important;
}

@media (max-width: 768px) {
    .product-stars {
        font-size: 0.8rem !important;
    }

    .product-rating-info {
        font-size: 0.7rem !important;
        gap: 3px !important;
    }

    .rating-average,
    .rating-count {
        font-size: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .product-ratings-container {
        min-height: 18px !important;
    }

    .product-stars {
        font-size: 0.7rem !important;
        height: 14px !important;
    }

    .stars-placeholder,
    .empty-stars {
        font-size: 0.7rem !important;
    }

    .product-rating-info {
        flex-direction: row !important;
        gap: 3px !important;
    }

    .count-placeholder,
    .no-ratings-text {
        font-size: 0.65rem !important;
    }
}

/* Loading Spinners & Checkmarks */
.loading-spinner-centered {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    border-top-color: #ffd700;
    border-right-color: #ffd700;
    animation: spinCentered 0.8s linear infinite;
    vertical-align: middle;
    margin: 0 auto;
}

@keyframes spinCentered {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.checkmark-svg {
    width: 26px;
    height: 26px;
    display: inline-block;
    vertical-align: middle;
    animation: checkmarkAppear 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.checkmark-svg .checkmark-circle-bg {
    animation: bgScale 0.3s ease-out forwards;
}

.checkmark-svg .checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeCircle 0.5s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards;
}

.checkmark-svg .checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes bgScale {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes strokeCircle {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmarkAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.buy-button.checkmark-animation,
.add-to-cart-btn.checkmark-animation {
    animation: buttonSuccessPulse 0.4s ease;
}

@keyframes buttonSuccessPulse {
    0% {
        transform: scale(1);
        background: rgba(44, 192, 98, 0.15);
        border-color: #2cc062;
    }
    50% {
        transform: scale(1.02);
        background: rgba(44, 192, 98, 0.25);
        border-color: #2cc062;
    }
    100% {
        transform: scale(1);
        background: transparent;
        border-color: #663e15;
    }
}

.buy-button:disabled,
.add-to-cart-btn:disabled {
    cursor: wait;
    opacity: 0.9;
}

/* Legacy spinner (white) */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

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

.buy-button .loading-spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

.buy-button:hover .loading-spinner {
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
}

/* Custom Design (Bank Card) */
.custom-design-section {
    padding: 40px 10px;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.bank-card {
    width: 550px;
    max-width: 550px;
    height: 220px;
    padding: 20px 25px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f0eb 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow:
        0 4px 12px rgba(101, 67, 33, 0.08),
        0 12px 30px rgba(101, 67, 33, 0.12),
        0 20px 50px rgba(101, 67, 33, 0.08);
    border: 1px solid rgba(218, 180, 58, 0.3);
    transition: all 0.4s ease;
    margin: 0 auto;
}

.bank-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(218, 180, 58, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.bank-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(218, 180, 58, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.bank-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 6px 16px rgba(101, 67, 33, 0.1),
        0 16px 40px rgba(101, 67, 33, 0.15),
        0 28px 70px rgba(218, 180, 58, 0.15);
    border-color: rgba(218, 180, 58, 0.6);
}

.bank-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.bank-card-logo {
    display: flex;
    align-items: center;
}

.bank-card-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.bank-card-vip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(218, 180, 58, 0.4);
    box-shadow: 0 2px 8px rgba(218, 180, 58, 0.1);
}

.bank-card-vip span {
    font-size: 0.85rem;
    font-weight: 800;
    color: #dab43a;
    letter-spacing: 3px;
    text-shadow: 0 1px 3px rgba(218, 180, 58, 0.3);
}

.bank-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bank-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c1810;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.bank-card-subtitle {
    font-size: 0.85rem;
    color: #7a6a5a;
    font-weight: 500;
    margin-bottom: 10px;
}

.bank-card-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.bank-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    width: 44px;
    height: 44px;
}

.bank-card-btn img {
    width: 44px;
    height: 44px;
    display: block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
}

.bank-card-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.bank-card-btn:hover img {
    transform: scale(1.1);
}

.bank-card-bottom {
    position: relative;
    z-index: 2;
    text-align: right;
}

.bank-card-custom {
    font-size: 0.7rem;
    font-weight: 700;
    color: #7a6a5a;
    letter-spacing: 2.5px;
}

@media (max-width: 768px) {
    .custom-design-section {
        padding: 35px 15px;
    }

    .bank-card {
        width: 100%;
        max-width: 500px;
        height: 215px;
        padding: 18px 22px;
    }

    .bank-card-title {
        font-size: 1.4rem;
    }

    .bank-card-logo img {
        height: 36px;
    }

    .bank-card-btn {
        width: 42px;
        height: 42px;
    }

    .bank-card-btn img {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .custom-design-section {
        padding: 30px 12px;
    }

    .bank-card {
        width: 100%;
        max-width: 100%;
        height: 200px;
        padding: 16px 18px;
        border-radius: 16px;
    }

    .bank-card-title {
        font-size: 1.2rem;
    }

    .bank-card-subtitle {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .bank-card-logo img {
        height: 32px;
    }

    .bank-card-vip {
        padding: 3px 10px;
    }

    .bank-card-vip span {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .bank-card-custom {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .bank-card-buttons {
        gap: 15px;
    }

    .bank-card-btn {
        width: 38px;
        height: 38px;
    }

    .bank-card-btn img {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 360px) {
    .bank-card {
        height: 185px;
        padding: 14px 15px;
    }

    .bank-card-title {
        font-size: 1.05rem;
    }

    .bank-card-subtitle {
        font-size: 0.75rem;
    }

    .bank-card-logo img {
        height: 28px;
    }

    .bank-card-btn {
        width: 34px;
        height: 34px;
    }

    .bank-card-btn img {
        width: 34px;
        height: 34px;
    }
}

/* Benefits */
.benefits-section {
    padding: 60px 0;
    background: transparent;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.benefit-card {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: inline-block;
}

.benefit-title {
    color: var(--primary-text);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.benefit-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.modern-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(224, 224, 224, 0.6);
}

@media (max-width: 767px) {
    .benefits-section {
        padding: 30px 0;
    }

    .benefits-grid {
        gap: 12px;
        padding: 0 8px;
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit-card {
        padding: 18px 12px;
    }

    .benefit-icon {
        font-size: 1.6rem;
    }

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

    .benefit-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Reviews Swiper */
.swiper-reviews-section {
    padding: 80px 0 60px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.swiper-reviews-section .section-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.hero-swiper {
    width: 100%;
    padding: 20px 0 40px;
    overflow: visible;
}

.hero-swiper .swiper-slide {
    width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-swiper .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.5;
    transform: scale(0.85);
}

.hero-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.hero-card {
    width: 100%;
    height: 100%;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.hero-swiper .swiper-slide:hover .hero-card img {
    transform: scale(1.05);
}

.hero-swiper-prev,
.hero-swiper-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-swiper-prev:after,
.hero-swiper-next:after {
    font-size: 18px;
    color: var(--primary-text);
    font-weight: bold;
}

.hero-swiper-prev:hover:after,
.hero-swiper-next:hover:after {
    color: rgb(11, 187, 20);
    transform: scale(1.1);
}

.hero-swiper-pagination {
    bottom: 5px;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 4px;
}

@media (max-width: 992px) {
    .hero-swiper-prev,
    .hero-swiper-next {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

@media (max-width: 768px) {
    .swiper-reviews-section {
        padding: 60px 0 40px;
    }

    .hero-swiper .swiper-slide {
        width: 240px;
        height: 320px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .hero-swiper .swiper-slide {
        width: 200px;
        height: 280px;
        border-radius: 14px;
    }

    .hero-swiper .swiper-slide:not(.swiper-slide-active) {
        transform: scale(0.8);
        opacity: 0.4;
    }
}

/* Footer */
.footer {
    background: var(--white);
    color: var(--text-color);
    padding: 30px 0 15px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-container {
    margin-bottom: 2px;
}

.footer-logo-img {
    height: 55px;
    width: 55px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.footer-brand {
    margin: 0;
    color: var(--primary-text);
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #666;
    max-width: 400px;
    margin: 2px auto 8px;
    padding: 0 15px;
}

.footer-contact-info {
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contact-item {
    font-size: 0.9rem;
    margin: 0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.contact-text {
    font-weight: 600;
    color: var(--primary-text);
    font-size: 0.9rem;
}

.footer-section-title {
    margin: 10px 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.footer-social-section {
    margin-top: 2px;
    width: 100%;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
    border: none;
    min-width: 44px;
    min-height: 44px;
}

.footer-social-icon:hover {
    transform: translateY(-3px) scale(1.1);
}

.footer-social-icon img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
    filter: brightness(1) saturate(1.2) contrast(1.1);
}

.footer-social-icon:hover img {
    filter: brightness(1.1) saturate(1.3) contrast(1.2);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 10px;
}

/* Footer Links */
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0 10px;
    padding: 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 0;
    background: transparent;
    border: none;
    opacity: 0.7;
}

.footer-links a:hover {
    color: var(--primary-text);
    opacity: 1;
    background: transparent;
    transform: translateY(-2px);
}

.footer-links-separator {
    color: var(--border-color);
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
}

@media (min-width: 768px) {
    .footer {
        padding: 25px 0 12px;
        margin-top: 25px;
    }

    .footer-content {
        gap: 10px;
    }

    .footer-logo-img {
        height: 50px;
        width: 50px;
    }

    .footer-brand {
        font-size: 1.5rem;
    }

    .footer-description {
        font-size: 0.8rem;
        max-width: 350px;
        margin: 2px auto 6px;
    }

    .footer-contact-item {
        font-size: 0.85rem;
    }

    .contact-text {
        font-size: 0.85rem;
    }

    .footer-section-title {
        font-size: 0.95rem;
        margin: 8px 0 6px 0;
    }

    .footer-social-icons {
        gap: 8px;
    }

    .footer-social-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }

    .footer-social-icon img {
        width: 24px;
        height: 24px;
    }

    .footer-bottom {
        padding-top: 12px;
        font-size: 0.65rem;
    }
}

@media (max-width: 767px) {
    .footer {
        padding: 20px 0 10px;
        margin-top: 20px;
    }

    .footer-logo-img {
        height: 40px;
        width: 40px;
    }

    .footer-brand {
        font-size: 1.3rem;
    }

    .footer-description {
        font-size: 0.75rem;
        margin: 3px auto 6px;
    }

    .footer-contact-item {
        font-size: 0.8rem;
    }

    .footer-social-icons {
        gap: 12px;
        margin-top: 10px;
    }

    .footer-social-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
    }

    .footer-social-icon img {
        width: 26px;
        height: 26px;
    }

    .footer-bottom {
        padding-top: 10px;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .footer-links a {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .footer {
        padding: 18px 0 8px;
        margin-top: 18px;
    }

    .footer-social-icons {
        gap: 10px;
    }

    .footer-social-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }

    .footer-social-icon img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 360px) {
    .footer-links {
        gap: 5px;
    }

    .footer-links a {
        font-size: 0.75rem;
        padding: 3px 6px;
    }

    .footer-links-separator {
        font-size: 1rem;
    }

    .footer-logo-img {
        height: 35px;
        width: 35px;
    }

    .footer-brand {
        font-size: 1.1rem;
    }

    .footer-description {
        font-size: 0.7rem;
        padding: 0 8px;
    }

    .footer-social-icons {
        gap: 8px;
    }

    .footer-social-icon {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
    }

    .footer-social-icon img {
        width: 22px;
        height: 22px;
    }
}

/* Cart Popup */
.cart-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 400px;
    height: 500px;
    background: rgba(250, 249, 246, 0.97);
    border-radius: 32px;
    border: 1px solid rgba(102, 62, 21, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    z-index: 1002;
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #000;
}

.cart-popup.active {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: cartModalFadeIn 0.3s ease;
}

@keyframes cartModalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

.cart-popup-header {
    padding: 20px;
    border-bottom: 2px solid rgba(102, 62, 21, 0.08);
    background: rgba(255, 255, 255, 0.6);
    position: relative;
    flex-shrink: 0;
    text-align: center;
}

.cart-popup-header h3 {
    margin: 0;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: normal;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.cart-items-count {
    color: #000;
    font-weight: 500;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-right: 5px;
}

.cart-close-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: #000;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.cart-close-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.1) rotate(90deg);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.cart-popup-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-popup-items::-webkit-scrollbar {
    width: 6px;
}

.cart-popup-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.cart-popup-items::-webkit-scrollbar-thumb {
    background: rgba(101, 67, 33, 0.4);
    border-radius: 10px;
}

.cart-popup-items::-webkit-scrollbar-thumb:hover {
    background: rgba(101, 67, 33, 0.6);
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    border: 1px solid rgba(102, 62, 21, 0.1);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.cart-item-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: #000;
    font-size: 0.9rem;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.cart-item-price {
    color: var(--primary-text);
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.4);
    padding: 3px 10px;
    border-radius: 30px;
    display: inline-block;
    border: 1px solid rgba(101, 67, 33, 0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.quantity-btn {
    background: var(--accent-color);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.cart-item-quantity .quantity-btn:first-child {
    background: #dc3545;
}

.quantity-number {
    min-width: 25px;
    text-align: center;
    font-weight: 600;
    color: #000;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.4);
    padding: 2px 6px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-item-remove {
    background: #dc3545;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
}

.cart-popup-footer {
    padding: 15px;
    border-top: 2px solid rgba(102, 62, 21, 0.08);
    background: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1rem;
    color: #000;
    background: rgba(0, 0, 0, 0.02);
    padding: 8px 12px;
    border-radius: 30px;
}

.cart-total span:last-child {
    color: var(--primary-text);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.4);
    padding: 3px 12px;
    border-radius: 30px;
    border: 1px solid rgba(101, 67, 33, 0.1);
    font-weight: 700;
}

.cart-actions {
    display: flex;
    gap: 8px;
}

.cart-btn-primary {
    flex: 1;
    background: rgba(44, 192, 98, 0.20);
    color: #0d4a2a;
    border: 1px solid rgba(44, 192, 98, 0.30);
    padding: 12px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(44, 192, 98, 0.12);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
    font-family: 'Cairo', sans-serif;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

.cart-btn-primary:hover {
    background: rgba(44, 192, 98, 0.30);
    border-color: rgba(44, 192, 98, 0.50);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(44, 192, 98, 0.20);
}

.cart-btn-primary:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

.cart-btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 12px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: normal;
    transition: all 0.3s;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #000;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    border: 1px solid rgba(102, 62, 21, 0.1);
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1));
}

.cart-empty p {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.cart-empty p:first-of-type {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.12);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

@media (min-width: 768px) {
    .cart-popup {
        width: 90%;
        max-width: 350px;
        height: 450px;
    background: rgba(250, 249, 246, 0.97);
    border: 1px solid rgba(102, 62, 21, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

    .cart-popup-header {
        padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(102, 62, 21, 0.08);
}

    .cart-popup-header h3 {
        font-size: 1.1rem;
    }

    .cart-popup-items {
        padding: 10px;
    }

    .cart-item {
        padding: 10px;
        margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(102, 62, 21, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

    .cart-item-name {
        font-size: 0.9rem;
    }

    .cart-item-price {
        font-size: 0.85rem;
    }

    .quantity-btn {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
    }

    .cart-item-remove {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }

    .cart-popup-footer {
        padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-top: 2px solid rgba(102, 62, 21, 0.08);
}

    .cart-total {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .cart-actions {
        flex-direction: column;
        gap: 8px;
    }

    .cart-btn-primary, .cart-btn-secondary {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .cart-popup {
        width: 92%;
        max-width: 300px;
        height: 420px;
    background: rgba(250, 249, 246, 0.97);
    border: 1px solid rgba(102, 62, 21, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

    .cart-popup-header h3 {
        font-size: 1rem;
    }

    .cart-item {
        padding: 8px;
        margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(102, 62, 21, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

    .cart-item-name {
        font-size: 0.85rem;
    }

    .cart-item-price {
        font-size: 0.8rem;
    }

    .quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }

    .cart-total {
        font-size: 0.95rem;
    }

    .cart-btn-primary, .cart-btn-secondary {
        padding: 9px;
        font-size: 0.85rem;
    }
}

/* Toast Notifications */
.toast-notification {
    position: fixed !important;
    top: -120px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) scale(0.95) !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12) !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    max-width: 90% !important;
    width: auto !important;
    min-width: auto !important;
    pointer-events: none !important;
    font-family: 'Cairo', sans-serif !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.toast-notification.show {
    top: 66px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) scale(1) !important;
    pointer-events: all !important;
}

.toast-notification.success {
    background: linear-gradient(rgba(44, 192, 98, 0.12), rgba(44, 192, 98, 0.12)), #ffffff !important;
    border: 1px solid rgba(44, 192, 98, 0.25) !important;
    box-shadow: 0 4px 30px rgba(44, 192, 98, 0.25) !important;
}

.toast-notification.success .toast-icon svg path {
    stroke: #2cc062 !important;
}

.toast-notification.error {
    background: linear-gradient(rgba(220, 53, 69, 0.12), rgba(220, 53, 69, 0.12)), #ffffff !important;
    border: 1px solid rgba(220, 53, 69, 0.25) !important;
    box-shadow: 0 4px 30px rgba(220, 53, 69, 0.25) !important;
}

.toast-notification.error .toast-icon svg line {
    stroke: #dc3545 !important;
}

.toast-notification.warning {
    background: linear-gradient(rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.12)), #ffffff !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    box-shadow: 0 4px 30px rgba(245, 158, 11, 0.25) !important;
}

.toast-notification.warning .toast-icon svg path,
.toast-notification.warning .toast-icon svg circle {
    stroke: #f59e0b !important;
}

.toast-notification.warning .toast-icon svg circle:last-child {
    fill: #f59e0b !important;
}

.toast-notification.info {
    background: linear-gradient(rgba(79, 70, 229, 0.12), rgba(79, 70, 229, 0.12)), #ffffff !important;
    border: 1px solid rgba(79, 70, 229, 0.25) !important;
    box-shadow: 0 4px 30px rgba(79, 70, 229, 0.25) !important;
}

.toast-notification.info .toast-icon svg circle {
    stroke: #4f46e5 !important;
}

.toast-notification.info .toast-icon svg line {
    stroke: #4f46e5 !important;
}

.toast-content {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.toast-icon {
    width: 22px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.toast-icon svg {
    width: 20px !important;
    height: 20px !important;
    animation: toastIconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes toastIconPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.toast-text-content {
    flex: 0 1 auto !important;
    min-width: 0 !important;
}

.toast-message {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
}

.toast-notification.success .toast-message {
    color: #0d4a2a !important;
}

.toast-notification.error .toast-message {
    color: #7f1d1d !important;
}

.toast-notification.warning .toast-message {
    color: #78350f !important;
}

.toast-notification.info .toast-message {
    color: #312e81 !important;
}

@media (min-width: 768px) {
    .toast-notification {
        width: 280px;
        right: 10px;
        left: 10px;
        margin: 0 auto;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12) !important;
}
}

@media (max-width: 768px) {
    .toast-notification {
        padding: 8px 14px !important;
        border-radius: 8px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12) !important;
}

    .toast-notification.show {
        top: 58px !important;
    }

    .toast-message {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .toast-notification {
        padding: 6px 12px !important;
        border-radius: 6px !important;
        width: 260px;
        right: 10px;
        top: 15px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12) !important;
}

    .toast-notification.show {
        top: 51px !important;
    }

    .toast-message {
        font-size: 0.75rem !important;
        max-width: 250px;
    }
}

/* Glass Product Toast (Add to Cart) — True Glass */
.glass-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 30px;
    box-shadow: 0 12px 40px -8px rgba(102, 62, 21, 0.28), 0 4px 16px -4px rgba(0, 0, 0, 0.12);
    padding: 10px 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90%;
    width: auto;
    min-width: 320px;
    pointer-events: none;
}

.glass-toast.show {
    top: 76px;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    pointer-events: all;
}

.glass-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.glass-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-toast-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    animation: toastIconPop 0.3s ease-out 0.3s forwards;
    opacity: 0;
    transform: scale(0.8);
}

.glass-toast-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.toast-main-text {
    font-weight: 600;
    color: #2c1810;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9),
                 0 0 8px rgba(255, 255, 255, 0.6);
}

.toast-product-name {
    font-weight: 700;
    color: #4a2a0f;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9),
                 0 0 8px rgba(255, 255, 255, 0.6);
}

.toast-details {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(102, 62, 21, 0.07);
    padding: 2px 12px;
    border-radius: 20px;
    border: none;
}

.toast-quantity {
    font-weight: 700;
    color: #2c1810;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.toast-price {
    font-weight: 700;
    color: #0d4a2a;
    font-size: 0.9rem;
    background: rgba(44, 192, 98, 0.18);
    padding: 2px 10px;
    border-radius: 16px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.glass-toast-action {
    background: rgba(44, 192, 98, 0.20);
    border: none;
    color: #0d4a2a;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.2px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.glass-toast-action:hover {
    background: rgba(44, 192, 98, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(44, 192, 98, 0.20);
}

.glass-toast-action:active {
    transform: scale(0.95);
}

@media (min-width: 1024px) {
    .glass-toast {
        padding: 12px 24px;
        min-width: 380px;
        border-radius: 35px;
        background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 40px -8px rgba(102, 62, 21, 0.28), 0 4px 16px -4px rgba(0, 0, 0, 0.12);
}

    .glass-toast.show {
        top: 82px;
    }

    .glass-toast-content {
        gap: 14px;
    }

    .glass-toast-icon {
        width: 36px;
        height: 36px;
    }

    .toast-main-text {
        font-size: 1.1rem;
    }

    .toast-product-name {
        font-size: 1.1rem;
    }

    .toast-details {
        padding: 3px 14px;
        border-radius: 24px;
    background: rgba(102, 62, 21, 0.07);
}

    .toast-quantity {
        font-size: 1.05rem;
    }

    .toast-price {
        font-size: 1rem;
        padding: 3px 14px;
        border-radius: 20px;
        background: rgba(44, 192, 98, 0.18);
    }

    .glass-toast-action {
        padding: 6px 20px;
        font-size: 0.85rem;
        height: 34px;
        border-radius: 24px;
        background: rgba(44, 192, 98, 0.20);
    }

    .glass-toast-action:hover {
        background: rgba(44, 192, 98, 0.35);
    }
}

@media (max-width: 768px) {
    .glass-toast {
        top: -90px;
        min-width: auto;
        width: 92%;
        padding: 8px 16px;
        border-radius: 28px;
        background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 40px -8px rgba(102, 62, 21, 0.28), 0 4px 16px -4px rgba(0, 0, 0, 0.12);
}

    .glass-toast.show {
        top: 70px;
    }

    .glass-toast-content {
        gap: 10px;
    }

    .glass-toast-icon {
        width: 28px;
        height: 28px;
    }

    .toast-main-text {
        font-size: 0.9rem;
    }

    .toast-product-name {
        font-size: 0.9rem;
    }

    .toast-details {
        padding: 2px 10px;
        border-radius: 18px;
    background: rgba(102, 62, 21, 0.07);
}

    .toast-quantity {
        font-size: 0.9rem;
    }

    .toast-price {
        font-size: 0.85rem;
        padding: 2px 10px;
        border-radius: 14px;
        background: rgba(44, 192, 98, 0.18);
    }

    .glass-toast-action {
        padding: 4px 14px;
        font-size: 0.75rem;
        height: 28px;
        border-radius: 18px;
        background: rgba(44, 192, 98, 0.20);
    }

    .glass-toast-action:hover {
        background: rgba(44, 192, 98, 0.35);
    }
}

@media (max-width: 480px) {
    .glass-toast {
        top: -80px;
        padding: 6px 12px;
        border-radius: 24px;
        width: 95%;
        min-width: auto;
        background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 40px -8px rgba(102, 62, 21, 0.28), 0 4px 16px -4px rgba(0, 0, 0, 0.12);
}

    .glass-toast.show {
        top: 62px;
    }

    .glass-toast-content {
        gap: 8px;
        flex-wrap: wrap;
    }

    .glass-toast-info {
        gap: 4px;
        justify-content: center;
    }

    .toast-main-text {
        font-size: 0.8rem;
    }

    .toast-product-name {
        font-size: 0.8rem;
    }

    .glass-toast-icon {
        width: 24px;
        height: 24px;
    }

    .toast-details {
        padding: 1px 8px;
        border-radius: 14px;
    background: rgba(102, 62, 21, 0.07);
}

    .toast-quantity {
        font-size: 0.8rem;
    }

    .toast-price {
        font-size: 0.75rem;
        padding: 1px 8px;
        border-radius: 12px;
        background: rgba(44, 192, 98, 0.18);
    }

    .glass-toast-action {
        padding: 3px 10px;
        font-size: 0.65rem;
        height: 24px;
        border-radius: 14px;
        background: rgba(44, 192, 98, 0.20);
    }

    .glass-toast-action:hover {
        background: rgba(44, 192, 98, 0.35);
    }
}

@media (max-width: 360px) {
    .glass-toast {
        top: -70px;
        padding: 5px 10px;
        border-radius: 20px;
        width: 96%;
        background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 40px -8px rgba(102, 62, 21, 0.28), 0 4px 16px -4px rgba(0, 0, 0, 0.12);
}

    .glass-toast.show {
        top: 56px;
    }

    .toast-main-text {
        font-size: 0.75rem;
    }

    .toast-product-name {
        font-size: 0.75rem;
    }

    .toast-details {
        padding: 1px 6px;
        border-radius: 12px;
    background: rgba(102, 62, 21, 0.07);
}

    .toast-quantity {
        font-size: 0.75rem;
    }

    .toast-price {
        font-size: 0.7rem;
        padding: 1px 6px;
        border-radius: 10px;
        background: rgba(44, 192, 98, 0.18);
    }

    .glass-toast-action {
        font-size: 0.6rem;
        padding: 2px 8px;
        height: 22px;
        border-radius: 12px;
        background: rgba(44, 192, 98, 0.20);
    }

    .glass-toast-action:hover {
        background: rgba(44, 192, 98, 0.35);
    }
}

/* Back to Top Button: two tiny arrows, no border / no frame */
.back-to-top-btn{position:fixed;bottom:22px;left:18px;width:26px;height:34px;padding:0;margin:0;background:none!important;border:0!important;border-radius:0;outline:0;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;color:var(--primary-text);cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:999;opacity:0;visibility:hidden;transform:translateY(14px);transition:opacity .35s,visibility .35s,transform .35s,color .25s;-webkit-tap-highlight-color:transparent}
.back-to-top-btn.visible{opacity:.85;visibility:visible;transform:none}
.back-to-top-btn:hover{opacity:1;color:#2cc062}
.back-to-top-btn:focus,.back-to-top-btn:active{outline:0;background:none!important}
.back-to-top-btn svg{width:14px;height:19px;overflow:visible;stroke:currentColor;filter:drop-shadow(0 2px 3px rgba(0,0,0,.25))}
.back-to-top-btn svg path:first-child{opacity:.45;animation:bttRise 1.7s ease-in-out infinite}
.back-to-top-btn svg path:last-child{animation:bttRise 1.7s ease-in-out .22s infinite}
@keyframes bttRise{0%,100%{transform:translateY(0)}50%{transform:translateY(-2.5px)}}
@media (prefers-reduced-motion:reduce){.back-to-top-btn svg path{animation:none!important}}
@media (max-width:767px){.back-to-top-btn{bottom:16px;left:12px}}

/* Pull to Refresh Indicator */
.pull-indicator {
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: var(--shadow-hover);
    z-index: 1003;
    transition: top 0.3s ease;
}

.pull-indicator.active {
    top: 20px;
}

/* Preloader (Pulse S) */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 249, 246, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.pulse-s-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.s-char {
    font-family: 'Cairo', sans-serif;
    font-size: 150px;
    font-weight: 800;
    color: var(--primary-text);
    text-shadow: 0 5px 15px rgba(102, 62, 21, 0.3);
    animation: pulse 2s infinite ease-in-out;
    line-height: 1;
    transform-origin: center;
}

.loading-text {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-text);
    opacity: 0.8;
    letter-spacing: 1px;
    animation: fadeInOut 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.20);
        opacity: 1;
        text-shadow: 0 8px 25px rgba(102, 62, 21, 0.4);
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .s-char {
        font-size: 95px;
    }

    .loading-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .s-char {
        font-size: 90px;
    }

    .loading-text {
        font-size: 18px;
    }
}

/* Glass Auth & Profile Modals */
.glass-auth-modal,
.glass-profile-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 15px;
}

.glass-auth-modal.active,
.glass-profile-modal.active {
    opacity: 1;
    visibility: visible;
}

.glass-modal-content {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2),
                0 5px 15px rgba(0, 0, 0, 0.1),
                inset 0 0 1px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.glass-auth-modal.active .glass-modal-content,
.glass-profile-modal.active .glass-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.glass-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.4);
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.glass-modal-title {
    margin: 0;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.auth-tabs {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.5);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(224, 224, 224, 0.4);
    flex: 1;
}

.auth-tab {
    flex: 1;
    padding: 10px 15px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.auth-tab:hover {
    background: rgba(44, 192, 98, 0.1);
    color: var(--accent-color);
}

.auth-tab.active {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(44, 192, 98, 0.3);
}

.glass-close-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(224, 224, 224, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 5px;
}

.glass-close-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    transform: rotate(90deg);
}

.glass-modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.auth-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-tab-content.active {
    display: block;
}

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

.glass-input-group {
    margin-bottom: 20px;
}

.glass-input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.glass-input-group input,
.glass-input-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(224, 224, 224, 0.5);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.glass-input-group input:focus,
.glass-input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(44, 192, 98, 0.2);
}

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

.glass-form-footer {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.glass-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: 'Cairo', sans-serif;
}

.glass-btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #25a852);
    color: white;
    border: 1px solid rgba(44, 192, 98, 0.3);
}

.glass-btn-primary:hover {
    background: linear-gradient(135deg, #25a852, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 192, 98, 0.3);
}

.glass-btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-color);
    border: 1px solid rgba(224, 224, 224, 0.5);
}

.glass-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.glass-btn-danger {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.glass-btn-danger:hover {
    background: rgba(220, 38, 38, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.glass-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-loading {
    display: none;
}

.user-info-section {
    animation: fadeIn 0.5s ease;
}

.user-info-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(224, 224, 224, 0.4);
    text-align: center;
}

.user-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(101, 67, 33, 0.2);
}

.user-details {
    text-align: right;
}

.user-name {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.user-detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.3);
}

.user-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 120px;
    text-align: left;
}

.detail-value {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    flex: 1;
    padding-right: 10px;
}

.profile-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.edit-profile-section {
    animation: fadeIn 0.5s ease;
}

.loading-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 15px;
    color: #666;
    font-size: 0.95rem;
}

.glass-messages {
    padding: 0 25px 20px;
}

.glass-message {
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    animation: slideInUp 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.glass-message.success {
    background: rgba(21, 128, 61, 0.15);
    color: #047857;
    border-color: rgba(21, 128, 61, 0.3);
}

.glass-message.error {
    background: rgba(185, 28, 28, 0.15);
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.3);
}

.glass-message.info {
    background: rgba(55, 48, 163, 0.15);
    color: #3730a3;
    border-color: rgba(55, 48, 163, 0.3);
}

.glass-modal-body::-webkit-scrollbar {
    width: 6px;
}

.glass-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.glass-modal-body::-webkit-scrollbar-thumb {
    background: rgba(101, 67, 33, 0.3);
    border-radius: 10px;
}

.glass-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(101, 67, 33, 0.5);
}

@media (max-width: 768px) {
    .glass-modal-content {
        max-width: 90%;
        max-height: 85vh;
    background: rgba(255, 255, 255, 0.97);
}

    .glass-modal-header {
        padding: 15px 20px;
    }

    .glass-modal-body {
        padding: 20px;
        max-height: 65vh;
    }

    .auth-tab {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .glass-input-group input,
    .glass-input-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .glass-btn {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .user-detail {
        flex-direction: column;
        gap: 5px;
    }

    .detail-label {
        min-width: auto;
        text-align: right;
    }

    .detail-value {
        text-align: right;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .glass-modal-content {
        max-width: 95%;
        border-radius: 15px;
    background: rgba(255, 255, 255, 0.97);
}

    .glass-modal-header {
        padding: 12px 15px;
    }

    .glass-modal-body {
        padding: 15px;
        max-height: 70vh;
    }

    .auth-tabs {
        padding: 3px;
    }

    .auth-tab {
        padding: 7px 10px;
        font-size: 0.85rem;
    }

    .glass-close-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .glass-input-group {
        margin-bottom: 15px;
    }

    .glass-input-group label {
        font-size: 0.85rem;
    }

    .glass-form-footer {
        flex-direction: column;
        gap: 8px;
    }

    .profile-actions {
        flex-direction: column;
        gap: 8px;
    }

    .user-info-card {
        padding: 15px;
    }

    .user-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .user-name {
        font-size: 1.1rem;
    }

    .glass-messages {
        padding: 0 15px 15px;
    }
}

@media (max-height: 600px) {
    .glass-modal-body {
        max-height: 50vh;
    }

    .glass-input-group {
        margin-bottom: 12px;
    }

    .glass-btn {
        padding: 10px 12px;
    }
}

/* Auth Modal Enhancements */
#auth-modal .glass-modal-content {
    background: var(--white);
    border-color: rgba(102, 62, 21, 0.12);
}

#auth-modal .glass-modal-header {
    background: var(--white);
    border-bottom-color: rgba(102, 62, 21, 0.12);
}

#auth-modal .auth-tabs {
    background: rgba(102, 62, 21, 0.07);
    border-color: rgba(102, 62, 21, 0.1);
}

#auth-modal .auth-tab:hover {
    background: rgba(102, 62, 21, 0.1);
    color: var(--primary-text);
}

#auth-modal .auth-tab.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(102, 62, 21, 0.3);
}

#auth-modal .glass-input-group label {
    color: var(--primary-text);
}

#auth-modal .glass-input-group input,
#auth-modal .glass-input-group textarea {
    background: #fff;
    border-color: rgba(102, 62, 21, 0.18);
}

#auth-modal .glass-input-group input:focus,
#auth-modal .glass-input-group textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 62, 21, 0.15);
}

#auth-modal .glass-btn-primary {
    background: linear-gradient(135deg, #7b4a1b, var(--primary-color));
    color: var(--white);
    border-color: rgba(102, 62, 21, 0.4);
}

#auth-modal .glass-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), #53320f);
    box-shadow: 0 8px 20px rgba(102, 62, 21, 0.3);
}

#auth-modal .glass-close-btn:hover {
    color: var(--primary-text);
}

/* Password Field Tools */
.pw-wrap {
    position: relative;
}

.pw-wrap input {
    padding-inline-end: 46px;
}

.pw-toggle {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #a2937f;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.pw-toggle:hover,
.pw-toggle.is-on {
    color: var(--primary-text);
}

.pw-toggle:hover {
    background: rgba(102, 62, 21, 0.08);
}

.pw-toggle__slash {
    opacity: 0;
    transition: opacity 0.2s;
}

.pw-toggle.is-on .pw-toggle__slash {
    opacity: 1;
}

.pw-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.pw-strength[hidden] {
    display: none;
}

.pw-strength__bar {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(102, 62, 21, 0.12);
    overflow: hidden;
}

.pw-strength__bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: #d9534f;
    transition: width 0.35s ease, background 0.35s ease;
}

.pw-strength__txt {
    min-width: 42px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: end;
    color: #d9534f;
    transition: color 0.35s ease;
}

.pw-strength[data-score="1"] .pw-strength__bar i { width: 25%; }
.pw-strength[data-score="2"] .pw-strength__bar i { width: 50%; background: #e8a33d; }
.pw-strength[data-score="3"] .pw-strength__bar i { width: 75%; background: #8fbf3a; }
.pw-strength[data-score="4"] .pw-strength__bar i { width: 100%; background: var(--accent-color); }
.pw-strength[data-score="2"] .pw-strength__txt { color: #c98621; }
.pw-strength[data-score="3"] .pw-strength__txt { color: #6f9a1f; }
.pw-strength[data-score="4"] .pw-strength__txt { color: #1f8a49; }

/* About & Privacy Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 15px;
}

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

.modal-content {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-xlarge {
    max-width: 800px;
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.4);
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-title {
    margin: 0;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-icon {
    font-size: 1.4rem;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(224, 224, 224, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-weight: 600;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(102, 62, 21, 0.3);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 62, 21, 0.5);
}

.modal-section {
    margin-bottom: 28px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-text);
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(102, 62, 21, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    font-size: 1.2rem;
}

.modal-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0 0 12px 0;
    font-weight: 400;
}

.modal-text:last-child {
    margin-bottom: 0;
}

.note-text {
    background: rgba(102, 62, 21, 0.05);
    padding: 10px 14px;
    border-radius: 12px;
    border-right: 3px solid var(--primary-color);
    font-size: 0.85rem;
    margin-top: 8px;
}

.modal-list {
    margin: 0 0 12px 0;
    padding-right: 20px;
    list-style-type: none;
}

.modal-list li {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 8px;
    position: relative;
    padding-right: 20px;
    font-weight: 400;
}

.modal-list li::before {
    content: "•";
    color: var(--primary-text);
    font-size: 1.2rem;
    position: absolute;
    right: 0;
    top: -2px;
}

.values-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.value-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.value-icon {
    width: 36px;
    height: 36px;
    background: rgba(102, 62, 21, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.value-content {
    flex: 1;
}

.value-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-text);
    margin: 0 0 4px 0;
}

.value-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    font-weight: 400;
}

.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(224, 224, 224, 0.3);
}

.contact-info-icon {
    width: 32px;
    height: 32px;
    background: rgba(102, 62, 21, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-info-item strong {
    font-size: 0.9rem;
    color: var(--primary-text);
    display: block;
    margin-bottom: 2px;
}

.contact-info-item div {
    font-size: 0.85rem;
    line-height: 1.5;
}

.contact-badge {
    display: inline-block;
    background: rgba(102, 62, 21, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--primary-text);
    margin-right: 8px;
}

.modal-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-text);
    margin: 15px 0 8px 0;
    padding-right: 5px;
}

.modal-subtitle:first-of-type {
    margin-top: 5px;
}

.contact-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2px 0 4px;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 80vh;
    background: rgba(255, 255, 255, 0.97);
}

    .modal-header {
        padding: 14px 18px;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-icon {
        font-size: 1.2rem;
    }

    .modal-close-btn {
        width: 32px;
        height: 32px;
    }

    .modal-body {
        padding: 18px;
    }

    .modal-section-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .modal-text {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .modal-list li {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
}

    .modal-header {
        padding: 12px 15px;
    }

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

    .modal-icon {
        font-size: 1.1rem;
    }

    .modal-close-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .modal-body {
        padding: 15px;
    }

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

    .modal-section-title {
        font-size: 0.95rem;
        padding-bottom: 4px;
    }

    .section-icon {
        font-size: 1rem;
    }

    .modal-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .note-text {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .modal-list li {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .value-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .value-title {
        font-size: 0.9rem;
    }

    .value-text {
        font-size: 0.8rem;
    }

    .contact-info-item {
        padding: 8px 12px;
    }

    .contact-info-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .contact-info-item strong {
        font-size: 0.85rem;
    }

    .contact-info-item div {
        font-size: 0.8rem;
    }

    .contact-badge {
        font-size: 0.65rem;
        padding: 1px 6px;
    }

    .modal-subtitle {
        font-size: 0.9rem;
        margin: 12px 0 6px;
    }

    .contact-number {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .modal-title {
        font-size: 0.95rem;
    }

    .modal-icon {
        font-size: 1rem;
    }

    .modal-close-btn {
        width: 26px;
        height: 26px;
    }

    .modal-body {
        padding: 12px;
    }

    .modal-section-title {
        font-size: 0.9rem;
    }

    .modal-text {
        font-size: 0.75rem;
    }

    .value-item {
        gap: 8px;
    }

    .value-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .contact-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* Quantity Input */
.quantity-input {
    width: 42px;
    height: 32px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-family: 'Cairo', sans-serif;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(44, 192, 98, 0.1);
}

.cart-item-quantity .quantity-input {
    width: 40px;
    height: 30px;
    font-size: 0.9rem;
}

.order-item-quantity-controls .quantity-input {
    width: 45px;
    height: 32px;
    font-size: 0.95rem;
}

/* Skeleton Loading Cards */
.product-card-skeleton {
    overflow: hidden;
    pointer-events: none;
    animation: none !important;
    opacity: 1 !important;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid rgba(224, 224, 224, 0.2);
}

.product-card-skeleton .skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e9ecef;
    position: relative;
    overflow: hidden;
}

.product-card-skeleton .skeleton-content {
    padding: 20px 22px 24px;
}

.product-card-skeleton .skeleton-line {
    height: 14px;
    border-radius: 8px;
    background: #e9ecef;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.product-card-skeleton .skeleton-title {
    width: 75%;
    height: 20px;
    margin-bottom: 16px;
}

.product-card-skeleton .skeleton-price {
    width: 40%;
    height: 24px;
    margin-bottom: 10px;
}

.product-card-skeleton .skeleton-rating {
    width: 55%;
    height: 14px;
    margin-bottom: 18px;
}

.product-card-skeleton .skeleton-button {
    height: 46px;
    width: 100%;
    border-radius: 50px;
    background: #e9ecef;
    margin-top: 6px;
}

.product-card-skeleton .skeleton-image::after,
.product-card-skeleton .skeleton-line::after,
.product-card-skeleton .skeleton-button::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.7),
        transparent
    );
    animation: skeletonShimmer 1.6s infinite;
}

.product-card-skeleton .skeleton-image::after {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
}

@keyframes skeletonShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Error States (Products) */
.products-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff5f5;
    border-radius: 20px;
    border: 2px solid #fecaca;
}

.products-error .error-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.products-error h3 {
    font-size: 1.3rem;
    color: #991b1b;
    margin-bottom: 10px;
    font-weight: 700;
}

.products-error p {
    color: #991b1b;
    font-size: 1rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.products-error .retry-btn {
    padding: 12px 32px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.products-error .retry-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.products-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    background: transparent;
    animation: fadeInOverlay 0.4s ease;
}

.products-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 35px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.products-overlay-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(102, 62, 21, 0.15);
    border-top-color: var(--primary-color);
    border-right-color: var(--primary-color);
    border-radius: 50%;
    animation: spinOverlay 1s linear infinite;
}

.products-overlay-message {
    color: var(--primary-text);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    line-height: 1.5;
    font-family: 'Cairo', sans-serif;
}

@keyframes spinOverlay {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 480px) {
    .products-overlay-content {
        padding: 20px 25px;
        gap: 12px;
        border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
}

    .products-overlay-spinner {
        width: 34px;
        height: 34px;
        border-width: 2.5px;
    }

    .products-overlay-message {
        font-size: 0.85rem;
    }

    .products-error {
        padding: 40px 15px;
    }

    .products-error h3 {
        font-size: 1.1rem;
    }

    .products-error p {
        font-size: 0.9rem;
    }

    .products-error .retry-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

/* Print */
@media print {
    .action-buttons,
    .whatsapp-contact,
    .contact-info {
        display: none !important;
    }
}

/* وميض السعر لما يتغيّر لحظياً من لوحة الأدمن */
.price-updated {
    animation: egyPriceFlash 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes egyPriceFlash {
    0%   { transform: scale(1.14); filter: drop-shadow(0 0 8px rgba(44, 192, 98, 0.7)); }
    100% { transform: scale(1);    filter: drop-shadow(0 0 0 rgba(44, 192, 98, 0)); }
}


/* Dark Theme */
@media screen {
    html[data-theme="dark"] .hero-intro p { color: #d9cdbd; }
    html[data-theme="dark"] .hero-btn-primary { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45); }
    html[data-theme="dark"] .hero-btn-ghost { border-color: var(--primary-text); }

    html[data-theme="dark"] .hero-image-card {
        background: var(--surface-2);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    }
    html[data-theme="dark"] .hero-swiper .swiper-slide { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45); }
    html[data-theme="dark"] .hero-swiper .swiper-slide-active { box-shadow: 0 20px 35px rgba(0, 0, 0, 0.55); }
    html[data-theme="dark"] .hero-swiper-pagination .swiper-pagination-bullet { background: rgba(255, 255, 255, 0.4); }

    html[data-theme="dark"] .section-subtitle,
    html[data-theme="dark"] .swiper-reviews-section .section-subtitle { color: var(--text-muted); }

    html[data-theme="dark"] .product-image-section {
        background: var(--surface-2);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    }
    html[data-theme="dark"] .product-card:hover .product-image-section { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); }
    html[data-theme="dark"] .product-image-section .placeholder,
    html[data-theme="dark"] .old-price { color: var(--text-muted); }
    html[data-theme="dark"] .product-title { color: var(--text-color); }

    html[data-theme="dark"] .stars-placeholder,
    html[data-theme="dark"] .product-stars .star.empty,
    html[data-theme="dark"] .empty-stars { color: #675b4e !important; }
    html[data-theme="dark"] .count-placeholder,
    html[data-theme="dark"] .rating-count,
    html[data-theme="dark"] .no-ratings-text { color: var(--text-muted) !important; }
    html[data-theme="dark"] .product-rating-info { color: var(--text-soft) !important; }

    html[data-theme="dark"] .bank-card {
        background: linear-gradient(135deg, #352d26 0%, #26201b 100%);
        border-color: rgba(218, 180, 58, 0.38);
        box-shadow:
            0 4px 12px rgba(0, 0, 0, 0.4),
            0 12px 30px rgba(0, 0, 0, 0.45),
            0 20px 50px rgba(0, 0, 0, 0.35);
    }
    html[data-theme="dark"] .bank-card:hover {
        box-shadow:
            0 6px 16px rgba(0, 0, 0, 0.45),
            0 16px 40px rgba(0, 0, 0, 0.5),
            0 28px 70px rgba(218, 180, 58, 0.18);
    }
    html[data-theme="dark"] .bank-card-vip { background: rgba(255, 255, 255, 0.06); }
    html[data-theme="dark"] .bank-card-title { color: var(--text-color); }
    html[data-theme="dark"] .bank-card-subtitle,
    html[data-theme="dark"] .bank-card-custom { color: var(--text-soft); }
    html[data-theme="dark"] .bank-card-btn img { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)); }

    html[data-theme="dark"] .benefit-card {
        background: var(--surface);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    html[data-theme="dark"] .benefit-description { color: var(--text-soft); }
    html[data-theme="dark"] .modern-card {
        background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
        border-color: rgba(255, 255, 255, 0.08);
    }

    html[data-theme="dark"] .footer-description,
    html[data-theme="dark"] .footer-contact-item { color: var(--text-soft); }
    html[data-theme="dark"] .footer-bottom { color: var(--text-muted); }
    html[data-theme="dark"] .footer-logo-img { border-color: var(--border-color); }

    html[data-theme="dark"] .cart-popup {
        background: rgba(26, 21, 17, 0.97);
        border-color: var(--glass-line);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
        color: var(--text-color);
    }
    html[data-theme="dark"] .cart-popup-header,
    html[data-theme="dark"] .cart-popup-footer {
        background: var(--glass);
        border-color: var(--glass-line);
    }
    html[data-theme="dark"] .cart-popup-header h3,
    html[data-theme="dark"] .cart-items-count,
    html[data-theme="dark"] .cart-item-name,
    html[data-theme="dark"] .cart-total,
    html[data-theme="dark"] .quantity-number,
    html[data-theme="dark"] .cart-empty,
    html[data-theme="dark"] .cart-empty p { color: var(--text-color); text-shadow: none; }
    html[data-theme="dark"] .cart-items-count { background: var(--glass-strong); }
    html[data-theme="dark"] .cart-close-btn {
        background: var(--glass-strong);
        border-color: var(--glass-line);
        color: var(--text-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    html[data-theme="dark"] .cart-close-btn:hover { background: rgba(255, 255, 255, 0.18); }
    html[data-theme="dark"] .cart-popup-items::-webkit-scrollbar-track { background: var(--glass); }
    html[data-theme="dark"] .cart-popup-items::-webkit-scrollbar-thumb { background: rgba(220, 174, 116, 0.4); }
    html[data-theme="dark"] .cart-popup-items::-webkit-scrollbar-thumb:hover { background: rgba(220, 174, 116, 0.6); }
    html[data-theme="dark"] .cart-item {
        background: var(--glass);
        border-color: var(--glass-line);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    html[data-theme="dark"] .cart-item:hover {
        background: var(--glass-strong);
        border-color: rgba(255, 255, 255, 0.22);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }
    html[data-theme="dark"] .cart-item-price,
    html[data-theme="dark"] .cart-total span:last-child {
        background: var(--glass-strong);
        border-color: var(--glass-line);
    }
    html[data-theme="dark"] .quantity-number {
        background: var(--glass-strong);
        border-color: var(--glass-line);
    }
    html[data-theme="dark"] .cart-total { background: rgba(255, 255, 255, 0.03); }
    html[data-theme="dark"] .cart-btn-primary {
        background: rgba(44, 192, 98, 0.2);
        color: #8ff0b4;
        border-color: rgba(44, 192, 98, 0.4);
        text-shadow: none;
    }
    html[data-theme="dark"] .cart-btn-primary:hover { background: rgba(44, 192, 98, 0.32); }
    html[data-theme="dark"] .cart-btn-secondary {
        background: var(--glass-strong);
        color: var(--text-color);
        border-color: var(--glass-line);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    html[data-theme="dark"] .cart-empty {
        background: var(--glass);
        border-color: var(--glass-line);
    }
    html[data-theme="dark"] .cart-overlay { background: rgba(0, 0, 0, 0.5); }

    html[data-theme="dark"] .toast-notification {
        background: rgba(30, 25, 20, 0.97) !important;
        border-color: var(--glass-line) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    }
    html[data-theme="dark"] .toast-notification.success {
        background: linear-gradient(rgba(44, 192, 98, 0.16), rgba(44, 192, 98, 0.16)), rgba(24, 19, 15, 0.97) !important;
        border-color: rgba(44, 192, 98, 0.35) !important;
    }
    html[data-theme="dark"] .toast-notification.error {
        background: linear-gradient(rgba(220, 53, 69, 0.18), rgba(220, 53, 69, 0.18)), rgba(24, 19, 15, 0.97) !important;
        border-color: rgba(220, 53, 69, 0.4) !important;
    }
    html[data-theme="dark"] .toast-notification.warning {
        background: linear-gradient(rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.16)), rgba(24, 19, 15, 0.97) !important;
        border-color: rgba(245, 158, 11, 0.4) !important;
    }
    html[data-theme="dark"] .toast-notification.info {
        background: linear-gradient(rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.2)), rgba(24, 19, 15, 0.97) !important;
        border-color: rgba(129, 140, 248, 0.4) !important;
    }
    html[data-theme="dark"] .toast-notification.success .toast-message { color: #8ff0b4 !important; }
    html[data-theme="dark"] .toast-notification.error .toast-message { color: #fca5a5 !important; }
    html[data-theme="dark"] .toast-notification.warning .toast-message { color: #fcd34d !important; }
    html[data-theme="dark"] .toast-notification.info .toast-message { color: #c7d2fe !important; }
    html[data-theme="dark"] .toast-notification.info .toast-icon svg circle,
    html[data-theme="dark"] .toast-notification.info .toast-icon svg line { stroke: #a5b4fc !important; }

    html[data-theme="dark"] .glass-toast,
    html[data-theme="dark"] .payment-toast {
        background: rgba(30, 25, 20, 0.96);
        box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--glass-line) inset;
    }
    html[data-theme="dark"] .toast-main-text,
    html[data-theme="dark"] .toast-product-name,
    html[data-theme="dark"] .toast-quantity { color: var(--text-color); text-shadow: none; }
    html[data-theme="dark"] .toast-details { background: var(--glass); }
    html[data-theme="dark"] .toast-price { color: #8ff0b4; background: rgba(44, 192, 98, 0.2); text-shadow: none; }
    html[data-theme="dark"] .glass-toast-action { color: #8ff0b4; background: rgba(44, 192, 98, 0.22); text-shadow: none; }
    html[data-theme="dark"] .glass-toast-action:hover { background: rgba(44, 192, 98, 0.36); }

    html[data-theme="dark"] .back-to-top-btn svg { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }

    html[data-theme="dark"] .preloader { background: rgba(20, 17, 14, 0.92); }
    html[data-theme="dark"] .s-char { color: var(--primary-text); text-shadow: 0 5px 15px rgba(220, 174, 116, 0.3); }
    html[data-theme="dark"] .wave-loader span { background: var(--primary-text); }

    html[data-theme="dark"] .glass-auth-modal,
    html[data-theme="dark"] .glass-profile-modal { background: rgba(0, 0, 0, 0.75); }
    html[data-theme="dark"] .glass-modal-content,
    html[data-theme="dark"] .modal-content {
        background: var(--panel);
        border-color: var(--glass-line);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), inset 0 0 1px rgba(255, 255, 255, 0.2);
    }
    html[data-theme="dark"] .glass-modal-header,
    html[data-theme="dark"] .modal-header {
        background: var(--glass);
        border-bottom-color: var(--glass-line);
    }
    html[data-theme="dark"] .auth-tabs {
        background: var(--glass);
        border-color: var(--glass-line);
    }
    html[data-theme="dark"] .auth-tab:hover { background: rgba(44, 192, 98, 0.14); }
    html[data-theme="dark"] .glass-close-btn,
    html[data-theme="dark"] .modal-close-btn {
        background: var(--glass-strong);
        border-color: var(--glass-line);
        color: var(--text-soft);
    }
    html[data-theme="dark"] .glass-close-btn:hover,
    html[data-theme="dark"] .modal-close-btn:hover {
        background: rgba(255, 255, 255, 0.18);
        color: var(--text-color);
    }
    html[data-theme="dark"] .glass-input-group input,
    html[data-theme="dark"] .glass-input-group textarea {
        background: var(--glass-strong);
        border-color: var(--glass-line);
        color: var(--text-color);
    }
    html[data-theme="dark"] .glass-input-group input:focus,
    html[data-theme="dark"] .glass-input-group textarea:focus { background: rgba(255, 255, 255, 0.14); }
    html[data-theme="dark"] .glass-btn-secondary {
        background: var(--glass-strong);
        border-color: var(--glass-line);
    }
    html[data-theme="dark"] .glass-btn-secondary:hover { background: rgba(255, 255, 255, 0.18); }
    html[data-theme="dark"] .user-info-card {
        background: var(--glass);
        border-color: var(--glass-line);
    }
    html[data-theme="dark"] .user-detail { border-bottom-color: var(--glass-line); }
    html[data-theme="dark"] .detail-label,
    html[data-theme="dark"] .loading-profile { color: var(--text-soft); }
    html[data-theme="dark"] .glass-message { border-color: var(--glass-line); }
    html[data-theme="dark"] .glass-message.success { background: rgba(34, 197, 94, 0.16); color: #86efac; border-color: rgba(34, 197, 94, 0.35); }
    html[data-theme="dark"] .glass-message.error { background: rgba(239, 68, 68, 0.16); color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }
    html[data-theme="dark"] .glass-message.info { background: rgba(99, 102, 241, 0.18); color: #c7d2fe; border-color: rgba(129, 140, 248, 0.35); }
    html[data-theme="dark"] .glass-modal-body::-webkit-scrollbar-track,
    html[data-theme="dark"] .modal-body::-webkit-scrollbar-track { background: var(--glass); }
    html[data-theme="dark"] .glass-modal-body::-webkit-scrollbar-thumb,
    html[data-theme="dark"] .modal-body::-webkit-scrollbar-thumb { background: rgba(220, 174, 116, 0.35); }

    html[data-theme="dark"] #auth-modal .glass-modal-content {
        background: var(--surface);
        border-color: var(--glass-line);
    }
    html[data-theme="dark"] #auth-modal .glass-modal-header {
        background: var(--surface);
        border-bottom-color: var(--glass-line);
    }
    html[data-theme="dark"] #auth-modal .auth-tabs {
        background: var(--glass);
        border-color: var(--glass-line);
    }
    html[data-theme="dark"] #auth-modal .auth-tab:hover { background: var(--glass-strong); }
    html[data-theme="dark"] #auth-modal .auth-tab.active { color: #fff; }
    html[data-theme="dark"] #auth-modal .glass-input-group input,
    html[data-theme="dark"] #auth-modal .glass-input-group textarea {
        background: var(--surface-2);
        border-color: var(--glass-line);
    }
    html[data-theme="dark"] #auth-modal .glass-input-group input:focus,
    html[data-theme="dark"] #auth-modal .glass-input-group textarea:focus {
        background: var(--surface-3);
        box-shadow: 0 0 0 3px rgba(220, 174, 116, 0.22);
    }
    html[data-theme="dark"] #auth-modal .glass-btn-primary { color: #fff; }
    html[data-theme="dark"] .pw-toggle { color: #a99a86; }
    html[data-theme="dark"] .pw-toggle:hover { background: var(--glass-strong); }
    html[data-theme="dark"] .pw-strength__bar { background: var(--glass-strong); }

    html[data-theme="dark"] .modal-overlay { background: rgba(0, 0, 0, 0.7); }
    html[data-theme="dark"] .modal-section-title { border-bottom-color: rgba(220, 174, 116, 0.3); }
    html[data-theme="dark"] .note-text { background: rgba(220, 174, 116, 0.08); }
    html[data-theme="dark"] .value-icon,
    html[data-theme="dark"] .contact-info-icon,
    html[data-theme="dark"] .contact-badge { background: rgba(220, 174, 116, 0.14); }
    html[data-theme="dark"] .contact-info-item {
        background: var(--glass);
        border-color: var(--glass-line);
    }

    html[data-theme="dark"] .quantity-input {
        background: var(--surface-2);
        color: var(--text-color);
    }

    html[data-theme="dark"] .product-card-skeleton {
        background: var(--surface-2);
        border-color: var(--glass-line);
    }
    html[data-theme="dark"] .product-card-skeleton .skeleton-image,
    html[data-theme="dark"] .product-card-skeleton .skeleton-line,
    html[data-theme="dark"] .product-card-skeleton .skeleton-button { background: var(--surface-3); }
    html[data-theme="dark"] .product-card-skeleton .skeleton-image::after,
    html[data-theme="dark"] .product-card-skeleton .skeleton-line::after,
    html[data-theme="dark"] .product-card-skeleton .skeleton-button::after {
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    }

    html[data-theme="dark"] .products-error {
        background: rgba(220, 38, 38, 0.12);
        border-color: rgba(248, 113, 113, 0.4);
    }
    html[data-theme="dark"] .products-error h3,
    html[data-theme="dark"] .products-error p { color: #fca5a5; }
    html[data-theme="dark"] .products-overlay-content {
        background: var(--panel);
        border-color: var(--glass-line);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    }
    html[data-theme="dark"] .products-overlay-spinner {
        border-color: rgba(220, 174, 116, 0.2);
        border-top-color: var(--primary-text);
        border-right-color: var(--primary-text);
    }
}


/* Loading Safeguards */
.preloader { animation: preloaderFailsafe 0.4s ease 3s forwards; }

@keyframes preloaderFailsafe {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.swiper { position: relative; overflow: hidden; margin-inline: auto; padding: 0; z-index: 1; }
.swiper-wrapper { position: relative; width: 100%; height: 100%; display: flex; box-sizing: content-box; }
.swiper-slide { flex-shrink: 0; position: relative; width: 100%; height: 100%; }
