:root {
    /* Luxury Emerald & Gold Theme */
    --primary: #064e3b;
    /* Deep Emerald */
    --primary-light: #065f46;
    --accent: #d4af37;
    /* Metallic Gold */
    --accent-hover: #b8962e;
    --accent-soft: rgba(212, 175, 55, 0.1);
    --text-dark: #111827;
    --text-light: #4b5563;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-cream: #fffdf5;
    --border: #e5e7eb;
    --error: #ef4444;
    --success: #10b981;

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

button {
    font-family: inherit;
    outline: none;
    border: none;
    cursor: pointer;
    background: none;
}

h1,
h2,
h3,
h4,
.brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    height: 70px;
    /* Reduced from 85px */
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.main-logo {
    width: 40px;
    /* Reduced from 50px */
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    padding: 2px;
    background: white;
}

.brand-name {
    font-size: 1.3rem;
    /* Reduced from 1.6rem */
    color: var(--primary);
    letter-spacing: -0.01em;
}

.search-bar {
    flex: 0 1 400px;
    /* Reduced width */
    background: #f3f4f6;
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    /* Reduced padding */
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: var(--transition);
    border: 1.5px solid transparent;
}

.search-bar:focus-within {
    background: var(--bg-white);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    /* Reduced font */
    color: var(--text-dark);
}

.search-bar ion-icon {
    font-size: 1.1rem;
    color: var(--text-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    /* Reduced gap */
}

.icon-btn {
    position: relative;
    font-size: 1.5rem;
    /* Reduced from 1.8rem */
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d4af37;
    /* Consistent Gold */
    color: var(--primary);
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 50%;
    display: flex !important;
    /* Force display */
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
    pointer-events: none;
    line-height: 1;
}

/* Flash Sale Right-to-Left Marquee */
@keyframes flashSaleMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.flash-sale-marquee {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    animation: flashSaleMarquee 35s linear infinite;
    will-change: transform;
}

.flash-sale-marquee:hover {
    animation-play-state: paused;
}

/* Hero Section Slider - Premium Update */
.hero-slider {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1000 / 340;
    max-height: 480px;
    min-height: 220px;
    background: #042f24;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 10;
}

.hero-slide::after {
    display: none;
}

.hero-slide.active {
    opacity: 1;
    z-index: 12;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.slider-dots .dot {
    width: 15px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s ease;
}

.slider-dots .dot.active {
    background: var(--accent);
    width: 40px;
    box-shadow: 0 0 15px var(--accent);
}

.hero-content {
    pointer-events: none;
    z-index: 25;
}

.hero-animate {
    opacity: 0;
    animation: revealUp 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Bar */
.categories-bar {
    padding: 1rem 0;
    background: var(--bg-white);
    position: sticky;
    top: 70px;
    /* Matched new navbar height */
    z-index: 900;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.category-scroll {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 1rem;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    padding: 0.6rem 1.4rem;
    /* Reduced padding */
    border-radius: 9999px;
    background: var(--bg-light);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
    /* Reduced font */
    border: 1.5px solid var(--border);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.cat-btn:hover {
    background: var(--bg-white);
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cat-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 6px 12px rgba(6, 78, 59, 0.15);
}

.cat-scroll-arrow {
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    flex-shrink: 0;
}

.cat-scroll-arrow:hover {
    background: var(--bg-light);
    color: var(--accent);
    transform: scale(1.05);
}

.cat-scroll-arrow:active {
    transform: scale(0.95);
}

/* Product Cards */
.products-section {
    padding: 40px 0;
    /* Reduced from 80px */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    /* Reduced from 280px to allow more items */
    gap: 1.5rem;
    /* Reduced from 2.5rem */
}

.product-card {
    background: var(--bg-white);
    border-radius: 16px;
    /* Reduced from 20px */
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.product-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem;
    /* Reduced from 1.5rem */
}

.product-info h3 {
    font-size: 1rem;
    /* Specific font size for product titles */
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    /* Balanced price size */
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    /* Reduced padding */
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(6, 78, 59, 0.15);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
    padding: 0.75rem 1.75rem;
    /* Reduced padding */
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.2);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 380px;
    /* Reduced from 450px */
    max-width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15);
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.25rem;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-cream);
}

.cart-items {
    padding: 1.25rem;
    flex-grow: 1;
    overflow-y: auto;
}

.cart-footer {
    padding: 1.5rem;
    background: var(--bg-cream);
    border-top: 2px solid var(--bg-light);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 78, 59, 0.3);
    backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Modals */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    z-index: 3000;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.modal.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.product-page-container {
    animation: fadeIn 0.3s ease-out;
}

@media (max-width: 640px) {
    .modal {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        padding: 1rem !important;
    }

    .qv-title {
        font-size: 1.5rem !important;
    }

    .qv-price {
        font-size: 1.4rem !important;
    }

    .quick-view-modal {
        gap: 1rem !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Professional Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 4px solid var(--accent);
}

.footer h3,
.footer h4 {
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
}

.footer p,
.footer li {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Product Quick View */
.quick-view-modal {
    max-width: 900px !important;
    display: flex;
    gap: 2.5rem;
}

.quick-view-left {
    flex: 1;
}

.quick-view-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

.qv-image {
    width: 100%;
    border-radius: 12px;
}

.qv-title {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    color: var(--primary);
}

.qv-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #B12704;
    margin-bottom: 1rem;
}

.qv-desc {
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* Amazon Style Stars */
.stars {
    color: #ffa41c;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Horizontal Checkout Progress Bar */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
    padding: 0 1rem;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.step {
    background: white;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    position: relative;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.step.active {
    color: var(--primary);
}

.step.active .step-circle {
    background: var(--primary);
    transform: scale(1.1);
}

/* Payment Selection Grid */
.payment-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--accent);
    background: var(--bg-cream);
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Toasts / Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: toastSlide 0.3s ease-out;
}

@keyframes toastSlide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-bounce {
    animation: bounce 0.4s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Main Layout Structure */
.main-content-wrapper {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: flex-start;
}

.islamic-hub-aside {
    flex: 0 0 350px;
    position: sticky;
    top: 90px;
    background: #ffffff;
    padding: 2.22rem;
    border-radius: 30px;
    color: var(--text-dark);
    overflow: hidden;
    height: fit-content;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border: 2.5px solid var(--primary);
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    z-index: 10;
}

.store-main-content {
    flex: 1;
    min-width: 0;
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Laptops & Tablets (Small Screens) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }

    .islamic-hub-aside {
        flex: 0 0 300px;
        padding: 1.5rem;
    }

    .main-content-wrapper {
        gap: 1.5rem;
    }
}

/* Mobile Devices (Portrait & Landscape) */
@media (max-width: 991px) {
    .main-content-wrapper {
        flex-direction: column !important;
        margin-top: 1.5rem;
    }

    .islamic-hub-aside {
        flex: none !important;
        width: 100% !important;
        padding: 1.25rem !important;
        box-shadow: none !important;
        background: transparent !important;
        border: none !important;
        position: relative !important;
        top: 0 !important;
        z-index: 1 !important;
        height: auto !important;
        display: block !important;
    }

    .store-main-content {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }

    .search-bar {
        max-width: 160px;
        /* Further limited for safety */
    }

    .nav-link-text,
    .user-name-text {
        display: none !important;
    }

    .hero-slider {
        min-height: 400px !important;
    }

    .categories-bar {
        top: 60px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 0.8rem;
    }

    .logo-area img {
        height: 38px !important;
    }

    .brand-name {
        display: none !important;
    }

    .search-bar {
        flex: 1 !important;
        margin: 0 0.5rem !important;
        min-width: 80px !important;
    }

    .nav-actions {
        gap: 0.5rem !important;
        margin-left: 0 !important;
    }

    .icon-btn {
        font-size: 1.25rem !important;
    }

    .icon-btn {
        font-size: 1.35rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .product-info {
        padding: 0.8rem;
    }

    .product-info h3 {
        font-size: 0.85rem;
        height: 2.4em;
        overflow: hidden;
    }

    .hero-slider {
        min-height: 300px !important;
    }

    .category-scroll {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .cat-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Adjust Islam Hub Cards for Mobile */
    #prayer-widget,
    .sunnah-card,
    .islamic-hub-aside>div[style*="background"] {
        padding: 1.2rem !important;
        border-radius: 20px !important;
    }

    .prayer-row {
        padding: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    #top-date-bar .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .nav-actions {
        gap: 0.4rem;
    }

    .icon-btn {
        width: 35px;
        height: 35px;
    }
}

/* Common UI Elements */
.wa-float {
    position: fixed;
    bottom: 25px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    font-size: 0.9rem;
    animation: slideInWA 0.5s ease-out;
}

@keyframes slideInWA {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.wa-float:hover {
    transform: translateY(-5px) scale(1.05);
    background: #128C7E;
    box-shadow: 0 15px 30px rgba(18, 140, 126, 0.5);
}

.wa-float ion-icon {
    font-size: 1.6rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Empty Search State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 20px;
    border: 2px dashed #eee;
}

.empty-state ion-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Admin Chart Mockup */
.chart-container {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 1rem;
}

.chart-bar {
    flex: 1;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 1s ease-in-out;
}

.chart-bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #64748b;
}

/* Out of Stock Ribbon */
.oos-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 8px 16px;
    font-weight: 800;
    font-size: 0.9rem;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 5;
    pointer-events: none;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.product-card.oos {
    cursor: default;
}

.product-card.oos:hover img {
    transform: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 992px) {
    .main-content-wrapper {
        flex-direction: column !important;
    }
}


/* Amazon-style Zoom */
.img-zoom-container {
    position: relative;
    border-radius: 15px;
    /* Matches layout */
}

.img-zoom-lens {
    position: absolute;
    border: 1px solid #888;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.4);
    cursor: crosshair;
    display: none;
    z-index: 10;
}

.img-zoom-result {
    position: absolute;
    top: 0;
    left: 105%;
    /* Show to the right of the image */
    width: 600px;
    height: 600px;
    border: 1px solid #d4d4d4;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    border-radius: 12px;
}

/* --- Digital Tasbeeh Styles --- */

.tasbeeh-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 320px;
    background: #fff;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
    border: 3px solid var(--primary);
}

.tasbeeh-modal.open {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tasbeeh-counter {
    font-size: 4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
    background: #f7fcf8;
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid #eee;
}

.tasbeeh-clicker {
    width: 110px;
    height: 110px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    margin: 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    cursor: pointer;
    box-shadow: 0 8px 0 #b8962e;
    transition: all 0.1s;
}

.tasbeeh-clicker:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #b8962e;
}

/* --- Sunnah Reminder Card --- */
.sunnah-card {
    background: linear-gradient(135deg, #064e3b, #042f24);
    color: #fff;
    padding: 1.5rem;
    border-radius: 20px;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.sunnah-card::before {
    content: '۞';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    opacity: 0.1;
    color: var(--accent);
}

.sunnah-title {
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sunnah-text {
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Prayer Timings Styles */
.prayer-row {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prayer-row:hover {
    transform: translateX(10px);
    background: #f8fafc !important;
    border-color: var(--accent) !important;
    box-shadow: -5px 5px 15px rgba(6, 78, 59, 0.05);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hub-scroll-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hub-card {
    width: 100%;
    margin-bottom: 1rem;
    position: relative;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .hub-scroll-wrapper {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: 0.75rem !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .hub-card {
        margin: 0 !important;
        padding: 1rem !important;
        display: block !important;
        text-align: center !important;
        height: auto !important;
        overflow: hidden !important;
    }

    .wisdom-card {
        grid-column: 1 / -1 !important;
        /* Force full width on all mobile phones */
        padding: 1.8rem 1.2rem !important;
    }

    #duaArabic {
        font-size: 1.3rem !important;
        line-height: 1.6 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .sunnah-card::before {
        display: none !important;
    }
}

.quiz-card {
    background: #fff;
    border: 2px dashed var(--accent);
    padding: 1.5rem;
    border-radius: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
    background: #fffdf5;
    border-color: #b48a1d;
}

.quiz-start-pill {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #b48a1d);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    transition: all 0.2s ease;
}

.quiz-card:hover .quiz-start-pill {
    transform: scale(1.05);
}

/* --- ISLAMIC QUIZ MODAL STYLES --- */
.quiz-option-btn {
    width: 100%;
    text-align: left;
    padding: 1rem 1.2rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.quiz-option-btn:hover {
    border-color: var(--accent);
    background: #fffdf5;
    transform: translateX(4px);
}

.quiz-option-btn.selected {
    border-color: var(--primary);
    background: #ecfdf5;
    color: var(--primary);
    font-weight: 700;
}

.quiz-option-btn.correct {
    border-color: #10b981;
    background: #d1fae5;
    color: #065f46;
}

.quiz-option-btn.incorrect {
    border-color: #ef4444;
    background: #fee2e2;
    color: #991b1b;
}

.quiz-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 10px;
    transition: width 0.4s ease;
}

.wisdom-card {
    background: linear-gradient(145deg, var(--primary), #022c22);
    padding: 2.2rem;
    border-radius: 30px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 20px 45px rgba(6, 78, 59, 0.15);
    border: 2px solid var(--accent);
    overflow: hidden;
}

.quote-card {
    padding: 1.8rem;
    background: var(--bg-cream);
    border-radius: 20px;
    border: 2px dashed var(--accent);
    text-align: center;
    position: relative;
}


@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.5);
    }

    50% {
        transform: scaleY(1);
    }
}

/* Hero Slider Navigation Arrows */
.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.hero-slider-btn.prev-btn { left: 20px; }
.hero-slider-btn.next-btn { right: 20px; }

.hero-slider-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.hero-slider-btn ion-icon {
    font-size: 1.6rem;
}

@media (max-width: 768px) {
    /* Compact Mobile Navigation Arrows */
    .hero-slider-btn {
        width: 32px !important;
        height: 32px !important;
        border-width: 1px !important;
        background: rgba(0, 0, 0, 0.45) !important;
    }

    .hero-slider-btn ion-icon {
        font-size: 1.1rem !important;
    }

    .hero-slider-btn.prev-btn { left: 6px !important; }
    .hero-slider-btn.next-btn { right: 6px !important; }

    /* 1. Hero Banner Slider Responsiveness - Bold, Vibrant & Large Mobile Banner */
    .hero-slider {
        aspect-ratio: 2.2 / 1 !important;
        height: auto !important;
        min-height: 190px !important;
        max-height: 280px !important;
        border-radius: 16px !important;
        margin-bottom: 1rem !important;
        background: #042f24 !important;
    }

    .hero-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        background: #042f24 !important;
    }

    .get-app-banner-tab {
        bottom: 8px !important;
        padding: 0.4rem 1.1rem !important;
        font-size: 0.78rem !important;
        border-width: 1.5px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
    }

    .slider-dots {
        bottom: 6px !important;
    }

    .slider-dots .dot {
        width: 8px !important;
        height: 3px !important;
    }

    .slider-dots .dot.active {
        width: 20px !important;
    }

    /* 2. Header & Top Navigation Responsiveness */
    header {
        padding: 0.6rem 0 !important;
    }

    .header-content {
        gap: 0.5rem !important;
    }

    .search-bar {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.3rem 0 !important;
    }

    .search-bar input {
        padding: 0.45rem 1rem 0.45rem 2.3rem !important;
        font-size: 0.82rem !important;
        height: 36px !important;
        box-sizing: border-box !important;
    }

    .logo-container h1 {
        font-size: 1.1rem !important;
    }

    .search-bar {
        max-width: 100% !important;
        margin: 0.5rem 0 !important;
    }

    .search-bar input {
        padding: 0.6rem 1rem 0.6rem 2.5rem !important;
        font-size: 0.85rem !important;
    }

    /* 3. Category Filter Tabs */
    .category-pills {
        gap: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .cat-pill {
        padding: 0.4rem 0.9rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }

    /* 4. Product Cards Grid Responsiveness */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .product-card {
        padding: 0.75rem !important;
        border-radius: 14px !important;
    }

    .product-card img {
        height: 140px !important;
        object-fit: contain !important;
    }

    .product-card h3 {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        height: 2.4em !important;
        overflow: hidden !important;
    }

    .product-card .price {
        font-size: 0.95rem !important;
    }

    /* 5. Modals & Sidebars Responsiveness */
    .modal {
        width: 92vw !important;
        max-width: 92vw !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        padding: 1.25rem !important;
        border-radius: 20px !important;
    }

    .cart-sidebar {
        width: 88vw !important;
        max-width: 360px !important;
    }

    /* 6. Flash Sale Marquee Section */
    #flashSaleSection {
        padding: 1rem !important;
        border-radius: 14px !important;
    }

    /* 7. Islamic Knowledge Quiz & Wisdom Cards */
    .wisdom-card, .quote-card, .sunnah-card {
        padding: 1.25rem !important;
        border-radius: 18px !important;
    }

.google-review-box-card {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1.2rem !important;
    background: #ffffff !important;
    border: 2px solid var(--accent) !important;
    border-radius: 20px !important;
    padding: 1.2rem 1.8rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    /* 8. Google Reviews Sleek Mobile Card */
    #google-reviews-section {
        padding: 1rem 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .google-review-box-card {
        border: 2px solid var(--accent) !important;
        border-radius: 16px !important;
        padding: 1rem !important;
        flex-direction: column !important;
        gap: 0.85rem !important;
        text-align: center !important;
        justify-content: center !important;
    }

    #googleReviewBtn {
        padding: 0.6rem 1.3rem !important;
        font-size: 0.82rem !important;
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        aspect-ratio: 2.1 / 1 !important;
        min-height: 180px !important;
        max-height: 240px !important;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .product-card img {
        height: 130px !important;
    }

    .reviews-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 1.8rem !important;
    }

    .product-top-row {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    #mainProdImg {
        height: 280px !important;
    }
}