/* Handmade Flower Boutique - Luxury CSS Styling */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Luxury Palette */
    --color-pink-light: #F8E8EE;
    --color-pink-warm: #FDCEDF;
    --color-pink-deep: #D14D72;
    --color-purple-royal: #6A1B4D;
    
    /* Semantic Colors */
    --bg-main: #FFF;
    --bg-page: var(--color-pink-light);
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-footer: var(--color-purple-royal);
    --text-main: #333333;
    --text-muted: #666666;
    --text-accent: var(--color-purple-royal);
    --text-light: #FFFFFF;
    
    /* Layout Tokens */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-luxury: 0 10px 30px rgba(106, 27, 77, 0.08);
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.03);
    --radius-premium: 16px;
    --radius-pill: 50px;
    --border-glass: 1px solid rgba(255, 255, 255, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

body[dir="rtl"] {
    font-family: var(--font-ar);
}

body[dir="ltr"] {
    font-family: var(--font-en);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

/* Profile Page Responsive Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-purple-royal);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--color-pink-deep);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-pill);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--border-glass);
    box-shadow: var(--shadow-luxury);
    border-radius: var(--radius-premium);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(106, 27, 77, 0.12);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-pink-deep);
    color: var(--text-light);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-purple-royal);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-in-out;
}

body[dir="rtl"] .btn-primary::before {
    transform-origin: left;
}

.btn-primary:hover::before {
    transform: scaleX(1);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-purple-royal);
    color: var(--color-purple-royal);
}

.btn-secondary:hover {
    background-color: var(--color-purple-royal);
    color: var(--text-light);
}

.btn-icon {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--color-purple-royal);
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: var(--color-pink-deep);
    color: var(--text-light);
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-purple-royal);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--color-pink-deep);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--color-purple-royal);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-pink-deep);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-pink-deep);
    color: white;
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Slider Section */
.hero-slider {
    position: relative;
    height: 32vh; /* Reduced height for a more compact hero section */
    min-height: 230px;
    overflow: hidden;
}

@media (max-width: 576px) {
    /* Mobile: make hero slider shorter */
    .hero-slider {
        height: 22vh;
        min-height: 170px;
    }

    /* Show two product cards side‑by‑side on small screens */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Reduce product image height for better fit */
    .product-image-container {
        height: 180px;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(106, 27, 77, 0.4), rgba(253, 206, 223, 0.2));
}

body[dir="rtl"] .slide-overlay {
    background: linear-gradient(to left, rgba(106, 27, 77, 0.4), rgba(253, 206, 223, 0.2));
}

.slide-content {
    position: relative;
    z-index: 10;
    color: var(--text-light);
    max-width: 600px;
    transform: translateY(30px);
    transition: transform 0.8s ease-out;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.slide-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background: var(--color-pink-deep);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Category grid (Occasions) */
.occasions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.occasion-card {
    position: relative;
    flex: 1 1 200px;
    max-width: 224px;
    height: 250px;
    border-radius: var(--radius-premium);
    overflow: hidden;
    box-shadow: var(--shadow-luxury);
    cursor: pointer;
}

.occasion-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.occasion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(106, 27, 77, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 25px;
}

.occasion-title {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-tab-item {
    height: 100%;
}

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

.product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-container {
    position: relative;
    height: 320px;
    overflow: hidden;
    border-radius: var(--radius-premium) var(--radius-premium) 0 0;
    flex-shrink: 0;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-pink-deep);
    color: white;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: var(--radius-pill);
    z-index: 10;
}

body[dir="rtl"] .product-badge {
    left: auto;
    right: 15px;
}

.product-wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

body[dir="rtl"] .product-wishlist-btn {
    right: auto;
    left: 15px;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.85rem;
    color: var(--color-pink-deep);
    font-weight: 600;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-purple-royal);
    margin-bottom: 10px;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

.price-container {
    display: flex;
    flex-direction: column;
}

.price-original {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

.price-current {
    font-size: 1.3rem;
    font-weight: 750;
    color: var(--color-pink-deep);
}

/* Features Section */
.features-section {
    background-color: var(--color-pink-warm);
    border-radius: 30px;
    padding: 60px 40px;
    margin: 40px 0;
}

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

.feature-box {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-purple-royal);
    margin-bottom: 15px;
}

/* Testimonials / Customers */
.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.testimonial-card {
    flex: 0 0 350px;
    max-width: 85vw;
    scroll-snap-align: center;
    padding: 30px;
}

/* Testimonials Indicators */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.testimonials-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(106, 27, 77, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.testimonials-dots .dot.active {
    background-color: var(--color-purple-royal);
    transform: scale(1.25);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-purple-royal);
}

/* Footer styling */
footer {
    background-color: var(--bg-footer);
    color: var(--text-light);
    padding: 80px 0 20px;
    border-radius: 40px 40px 0 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-pink-warm);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: var(--color-pink-warm);
    padding-left: 5px;
}

body[dir="rtl"] .footer-col ul li a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Custom Live Search Box */
.search-form {
    position: relative;
}

.search-results-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: white;
    border-radius: var(--radius-premium);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 10px;
    display: none;
}

body[dir="rtl"] .search-results-box {
    left: auto;
    right: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
}

.search-result-item:hover {
    background-color: var(--color-pink-light);
}

.search-result-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.search-result-details {
    flex-grow: 1;
}

.search-result-title {
    font-weight: 600;
    color: var(--color-purple-royal);
    font-size: 0.95rem;
}

.search-result-price {
    color: var(--color-pink-deep);
    font-size: 0.85rem;
    font-weight: bold;
}

/* =============================================
   RESPONSIVE DESIGN - FULL COVERAGE
   Breakpoints: 1200px | 991px | 768px | 576px | 480px
   ============================================= */

/* --- Hamburger Menu Button (hidden on desktop) --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: var(--bg-card);
    border-radius: 10px;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-purple-royal);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(106,27,77,0.35);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.mobile-nav-overlay.active {
    display: block;
}

/* Mobile Drawer */
/* Mobile Drawer - default desktop state */
.mobile-drawer {
    display: none;
}

/* Mobile Drawer - mobile state */
@media (max-width: 991px) {
    .mobile-drawer {
        display: flex;
        visibility: hidden;
        position: fixed;
        top: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 1001;
        box-shadow: 0 0 40px rgba(106,27,77,0.2);
        flex-direction: column;
        padding: 30px 25px;
        gap: 10px;
        overflow-y: auto;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    }
    
    body[dir="rtl"] .mobile-drawer {
        right: 0;
        transform: translateX(100%);
    }

    body[dir="ltr"] .mobile-drawer {
        left: 0;
        transform: translateX(-100%);
    }

    .mobile-drawer.open {
        visibility: visible;
        transform: translateX(0) !important;
    }
}

.mobile-drawer-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-purple-royal);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-pink-warm);
    padding-bottom: 18px;
}

.mobile-drawer a {
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-purple-royal);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
}

.mobile-drawer a:hover,
.mobile-drawer a.active {
    background-color: var(--color-pink-light);
    color: var(--color-pink-deep);
}

.mobile-drawer a i {
    width: 20px;
    text-align: center;
}

.mobile-drawer .drawer-divider {
    height: 1px;
    background: var(--color-pink-warm);
    margin: 8px 0;
}

/* =============================================
   LARGE DESKTOP (1200px+)
   ============================================= */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* =============================================
   MEDIUM DESKTOP & LAPTOPS (992px to 1200px)
   ============================================= */
@media (max-width: 1200px) and (min-width: 992px) {
    .header-container {
        gap: 15px;
    }
    .logo {
        font-size: 1.25rem;
        white-space: nowrap;
    }
    .search-form input {
        width: 170px !important;
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }
    .nav-links {
        gap: 15px;
    }
    .nav-links a {
        font-size: 0.9rem;
    }
    .header-actions {
        gap: 8px;
    }
    .header-actions .btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* =============================================
   TABLET LANDSCAPE (max-width: 991px)
   ============================================= */
@media (max-width: 991px) {

    /* --- Responsive Grids Overrides --- */
    .container > div[style*="grid-template-columns: 300px 1fr"],
    .container > div[style*="grid-template-columns: 2fr 1fr"],
    .container > form > div[style*="grid-template-columns: 1.8fr 1.2fr"],
    .container > div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 2fr"],
    div[style*="grid-template-columns:1fr 2fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* --- Header --- */
    .nav-links {
        display: none;
    }

    .search-form {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .header-container {
        height: 68px;
    }

    .logo {
        font-size: 1.2rem;
        white-space: nowrap;
    }

    /* Reduce icon sizes a bit */
    .btn-icon {
        width: 40px;
        height: 40px;
    }

    .header-actions {
        gap: 10px;
    }

    /* Hide unnecessary actions in header on mobile/tablet to prevent layout overlap */
    .header-actions #dark-mode-toggle,
    .header-actions #lang-toggle,
    .header-actions a[href*="wishlist"],
    .header-actions a[href*="profile"],
    .header-actions a[href*="login"] {
        display: none !important;
    }

    /* --- Hero Slider --- */
    .slide-content h2 {
        font-size: 2.8rem;
    }

    .slide-content p {
        font-size: 1.05rem;
    }

    /* --- Products --- */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* --- Occasions --- */
    .occasions-grid {
        gap: 20px;
    }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* --- Section Padding --- */
    .section-padding {
        padding: 60px 0;
    }

    /* --- Section Title --- */
    .section-title {
        font-size: 1.9rem;
    }
}

/* =============================================
   TABLET PORTRAIT (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {

    /* --- Header --- */
    .header-container {
        height: 62px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .header-actions {
        gap: 8px;
    }

    /* Hide profile name button text, keep icon only */
    .header-actions .btn.btn-primary span.name-text {
        display: none;
    }

    /* --- Hero Slider --- */
    .hero-slider {
        height: 30vh;
        min-height: 200px;
    }

    .slide-content {
        padding: 0 15px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* --- Occasions --- */
    .occasions-grid {
        gap: 15px;
    }

    .occasion-card {
        height: 200px;
    }

    /* --- Products --- */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

    /* --- Features --- */
    .features-section {
        padding: 40px 20px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    /* --- Testimonials --- */
    .testimonial-card {
        flex: 0 0 290px;
    }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    footer {
        padding: 50px 0 15px;
        border-radius: 25px 25px 0 0;
    }

    /* --- Section --- */
    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    /* --- Profile Page Grid --- */
    section .container > div[style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* =============================================
   MOBILE LARGE (max-width: 576px)
   ============================================= */
@media (max-width: 576px) {

    /* --- Container --- */
    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* --- Header --- */
    .header-container {
        height: 58px;
    }

    .logo {
        font-size: 1rem;
    }

    .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    /* --- Hero Slider --- */
    .hero-slider {
        height: 32.5vh;
        min-height: 190px;
    }

    /* Mobile Drawer (Sidebar) width reduced to half */
    .mobile-drawer {
        width: 50% !important;
        min-width: 200px !important;
        padding: 30px 15px !important;
    }

    .slide-content h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .slide-content p {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* --- Occasions --- */
    .occasions-grid {
        gap: 12px;
    }

    .occasion-card {
        height: 160px;
    }

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

    /* --- Products --- */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    /* --- Section Title --- */
    .section-title {
        font-size: 1.5rem;
    }

    /* --- Cart/Checkout/Profile inner grids & sub-grids --- */
    div[style*="display: grid"],
    div[style*="display:grid"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* --- Cart table fix --- */
    table {
        font-size: 0.85rem;
    }

    /* --- Features --- */
    .feature-icon {
        font-size: 2rem;
    }

    /* --- Testimonials --- */
    .testimonials-slider {
        gap: 15px;
    }

    .testimonial-card {
        flex: 0 0 260px;
        padding: 20px;
    }

    /* --- Footer --- */
    footer {
        padding: 40px 0 15px;
        border-radius: 20px 20px 0 0;
    }

    .footer-col h3 {
        font-size: 1.1rem;
    }
}

/* =============================================
   MOBILE SMALL (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {

    .hero-slider {
        height: 30vh;
        min-height: 160px;
    }

    .slide-content h2 {
        font-size: 1.4rem;
    }

    .occasions-grid {
        gap: 10px;
    }

    .occasion-card {
        height: 130px;
    }

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

    .section-padding {
        padding: 35px 0;
    }

    .section-title {
        font-size: 1.3rem;
    }

    /* Make search results 100% wide on small screens */
    .search-results-box {
        width: 95vw;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Premium Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(106, 27, 77, 0.12), transparent);
    margin: 0 auto;
    width: 80%;
}

/* =============================================
   MOBILE RESPONSIVENESS PATCHES
   ============================================= */

/* Glass Card padding reduction on small screens */
@media (max-width: 576px) {
    .glass-card {
        padding: 20px !important;
    }
}

/* Product Detail Page Gallery Height */
.product-detail-main-img {
    height: 500px;
}
@media (max-width: 768px) {
    .product-detail-main-img {
        height: 350px;
    }
}

/* Product Detail Page Quantity + Buy button stacking */
@media (max-width: 480px) {
    .product-actions-wrap {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .product-actions-wrap .btn {
        width: 100% !important;
    }
}

/* Tracking Page Vertical Progress Bar on Mobile */
.tracking-progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
}
.progress-line {
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-pink-warm);
    z-index: 0;
}
body[dir="rtl"] .progress-line {
    left: auto;
    right: 0;
}
.progress-line-fill {
    position: absolute;
    top: 25px;
    left: 0;
    width: var(--progress-pct, 0%);
    height: 4px;
    background: linear-gradient(to right, var(--color-pink-deep), var(--color-purple-royal));
    z-index: 1;
    transition: width 1s ease;
}
body[dir="rtl"] .progress-line-fill {
    left: auto;
    right: 0;
    background: linear-gradient(to left, var(--color-pink-deep), var(--color-purple-royal));
}
.tracking-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}
.tracking-step-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.4s;
}
.tracking-step-text {
    font-size: 0.8rem;
    margin-top: 10px;
    max-width: 80px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 576px) {
    .tracking-progress-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding-left: 10px;
    }
    body[dir="rtl"] .tracking-progress-bar {
        padding-left: 0;
        padding-right: 10px;
    }
    .progress-line {
        top: 0;
        left: 35px;
        width: 4px;
        height: 100%;
    }
    body[dir="rtl"] .progress-line {
        left: auto;
        right: 35px;
    }
    .progress-line-fill {
        top: 0;
        left: 35px;
        width: 4px;
        height: var(--progress-pct, 0%);
        transition: height 1s ease;
        background: linear-gradient(to bottom, var(--color-pink-deep), var(--color-purple-royal));
    }
    body[dir="rtl"] .progress-line-fill {
        left: auto;
        right: 35px;
        background: linear-gradient(to bottom, var(--color-pink-deep), var(--color-purple-royal));
    }
    .tracking-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
        flex: none;
        width: 100%;
    }
    body[dir="rtl"] .tracking-step {
        text-align: right;
        flex-direction: row-reverse;
    }
    .tracking-step-circle {
        margin: 0;
        flex-shrink: 0;
    }
    .tracking-step-text {
        margin: 0;
        max-width: none;
        font-size: 0.95rem;
    }
}

/* Homepage & Header Responsiveness Patches */
@media (max-width: 991px) {
    /* Center text inside footer columns on mobile/tablet */
    .footer-col {
        text-align: center !important;
    }
    .footer-col div {
        justify-content: center !important;
    }
    .footer-col form {
        justify-content: center !important;
    }
    .footer-col ul li a:hover {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 576px) {
    /* 1. Header hamburger button styling alignment */
    .hamburger-btn {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        gap: 4px !important;
    }
    .hamburger-btn span {
        width: 18px !important;
    }
    .hamburger-btn.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg) !important;
    }
    .hamburger-btn.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg) !important;
    }

    /* 2. Hero slider clean-up & readability */
    .slider-btn {
        display: none !important;
    }
    .slide-overlay {
        background: rgba(0, 0, 0, 0.45) !important;
    }
    .slide-content {
        text-align: center !important;
        margin: 0 auto !important;
    }

    /* 3. Occasions grid 2-column layout */
    .occasions-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .occasion-card {
        max-width: none !important;
        height: 140px !important;
        flex: none !important;
    }



    /* 5. Features Section - Floating Glass Cards */
    .features-section {
        padding: 30px 10px !important;
    }
    .features-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    .feature-box {
        background: rgba(255, 255, 255, 0.45) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        border-radius: 16px !important;
        padding: 15px 8px !important;
        box-shadow: var(--shadow-soft) !important;
    }
    .feature-icon {
        font-size: 1.5rem !important;
        margin-bottom: 8px !important;
    }
    .feature-box h4 {
        font-size: 0.85rem !important;
        margin-bottom: 5px !important;
    }
    .feature-box p {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
    }
}



