/* 
   PIYU GRUH UDHYOG 
   Premium UI/UX Design System 
*/

@font-face {
    font-family: 'Unageo';
    src: url('../fonts/Unageo.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #1A4329; /* Forest Green */
    --primary-hover: #10331C;
    --secondary-color: #385C42; /* Lighter Forest Green */
    --accent-color: #D49A24; /* Golden Mustard */
    --bg-light: #FAF8F1; /* Warm Ivory */
    --text-main: #333333;
    --text-muted: #7f8c8d;
    --white: #ffffff;
    --shadow-sm: 0 4px 10px rgba(26, 67, 41, 0.05);
    --shadow-md: 0 8px 20px rgba(26, 67, 41, 0.08);
    --shadow-lg: 0 15px 30px rgba(26, 67, 41, 0.12);
    --shadow-3d: 0 20px 40px rgba(26, 67, 41, 0.18);
    --radius-md: 12px;
    --radius-lg: 20px;
    --glass-bg: rgba(250, 248, 241, 0.95);
    --glass-border: 1px solid rgba(212, 154, 36, 0.15);
    
    /* New Premium Variables */
    --shadow-premium: 0 10px 40px rgba(26, 67, 41, 0.04);
    --texture-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Typography */
html {
    /* Do NOT put overflow-x: hidden on HTML as it breaks iOS vertical scrolling */
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Unageo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .serif-font {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navigation */
.navbar {
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary, .btn-brand {
    background: linear-gradient(135deg, var(--accent-color), #e3a930);
    border: none;
    color: var(--primary-color);
    font-family: 'Unageo', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 50rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(212, 154, 36, 0.3);
}

.btn-primary:hover, .btn-brand:hover {
    background: linear-gradient(135deg, #eaba45, #c98e1d);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 154, 36, 0.45);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
    font-family: 'Unageo', sans-serif;
    font-weight: 600;
    padding: 0.65rem 1.65rem;
    border-radius: 50rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 67, 41, 0.25);
}

@media (max-width: 768px) {
    .btn-primary, .btn-brand {
        padding: 0.5rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    .btn-outline-primary {
        padding: 0.45rem 1.15rem !important;
        font-size: 0.9rem !important;
    }
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.product-card .card-img-top {
    transition: transform 0.6s ease;
}
.product-card:hover .card-img-top {
    transform: scale(1.08);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    box-shadow: var(--shadow-sm);
}

/* Mobile UI Audit Fixes */
@media (max-width: 767.98px) {
    /* Prevent bottom nav overlapping content */
    body {
        padding-bottom: 75px !important;
    }
    
    /* Product Grid & Card Spacing */
    .row.g-4 {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }
    .product-card .card-body {
        padding: 10px 12px !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .product-card .card-title {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
        height: 2.6em; /* 2 lines */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        white-space: normal;
        margin-bottom: 8px !important;
    }
    .product-card .btn {
        margin-top: 8px;
    }
    .floating-whatsapp {
        bottom: 85px !important; /* Move above bottom nav */
    }
    .hero-badge::before, .hero-badge::after {
        display: none !important;
    }
    /* Feature Icons */
    .feature-icon-circle {
        width: 70px !important;
        height: 70px !important;
    }
    .feature-icon-circle i {
        font-size: 1.8rem !important;
    }
}

/* Feature Icons Desktop */
.feature-icon-circle {
    width: 100px;
    height: 100px;
}
.feature-icon-circle i {
    font-size: 2.5rem;
}

/* Swiper Customizations */
.swiper-pagination {
    position: relative !important;
    margin-top: 15px !important;
    bottom: 0 !important;
}
.swiper {
    padding-bottom: 5px !important;
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f1f2f6; /* Placeholder background */
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-card .card-body {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.product-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 5rem 0;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Forms & Inputs */
.form-control, .form-select {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    border: 1px solid #dfe6e9;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.1);
}

/* Badges */
.badge-premium {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.5em 0.8em;
    border-radius: 20px;
    font-weight: 500;
}

/* Heart Icon (Wishlist) */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: #b2bec3;
    transition: all 0.3s ease;
    z-index: 10;
}

.wishlist-btn:hover, .wishlist-btn.active {
    color: #ff4757;
    transform: scale(1.1);
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .btn-primary, .btn-outline-primary {
        padding: 0.5rem 1rem;
    }
}

/* Premium UI / Glassmorphism / 3D Animations */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);
}

.animate-3d-hover {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.animate-3d-hover:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    box-shadow: -5px 15px 30px rgba(0,0,0,0.1);
}

.btn-3d {
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 #b33900, 0 5px 15px rgba(0,0,0,0.15);
    transform: translateY(0);
}
.btn-3d:active {
    transform: translateY(4px) !important;
    box-shadow: 0 0 0 #b33900, 0 2px 5px rgba(0,0,0,0.15) !important;
}

.premium-card {
    border: none;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow:  20px 20px 60px #d9d9d9, -20px -20px 60px #ffffff;
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password Toggle Eye Icon wrapper */
.password-wrapper {
    position: relative;
}
.password-wrapper .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
}
.password-wrapper .toggle-password:hover {
    color: var(--primary-color);
}


/* Imported from home.php for global aesthetic */
:root {
    --brand-warm-bg: #fdfaf5;
    --brand-primary: #a32e18; /* Falguni Red */
    --brand-primary-hover: #8c2513;
    --brand-text: #333333;
    --brand-muted: #757575;
}

/* Typography */
.section-title {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--brand-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Custom Buttons */
.btn-brand {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    transition: all 0.3s ease;
}
.btn-brand:hover {
    background-color: #c98e1d;
    color: var(--primary-color);
    box-shadow: var(--shadow-premium);
    transform: translateY(-2px);
}

.btn-brand-outline {
    background-color: transparent;
    color: var(--brand-primary);
    font-weight: 600;
    border: 2px solid var(--brand-primary);
    border-radius: 4px;
    padding: 8px 22px;
    transition: all 0.3s ease;
}
.btn-brand-outline:hover {
    background-color: var(--brand-primary);
    color: #fff;
}

/* Product Cards */
.product-card {
    background: #fff;
    border: none; /* Removing harsh borders */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}
.product-img-wrap {
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
}
.product-img-wrap img {
    max-height: 100%;
    object-fit: contain;
}
.product-info {
    padding: 1rem;
    text-align: center;
}
.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: 1rem;
}

/* Category Circles */
.category-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px auto;
    border: 3px solid #fdfaf5;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.category-card-wrap:hover .category-circle {
    border-color: var(--primary-color);
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 10px 25px rgba(163, 46, 24, 0.15);
}
.category-name {
    font-weight: 600;
    color: var(--brand-text);
}

/* Review Cards */
.review-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: none;
    height: 100%;
}
.star-rating {
    color: #FFD700;
    margin-bottom: 0.5rem;
}

/* Promotional Banners */
.promo-banner {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin: 3rem 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.promo-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer Banner */
.footer-banner {
    background-color: #f7e9d7; /* Warm earthy beige */
    padding: 3rem 0;
    text-align: center;
    border-top: 2px solid rgba(140, 43, 29, 0.1);
    margin-top: 4rem;
}

/* Horizontal scrolling wrapper for mobile/desktop */
.scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1.5rem;
    padding-left: 1rem; /* Full bleed padding */
    padding-right: 1rem;
    margin-left: -1rem; /* Offset container padding */
    margin-right: -1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
}
.scroll-wrapper::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.scroll-item {
    flex: 0 0 auto;
    width: 260px; /* Standard app-like card width */
    scroll-snap-align: start;
}

/* Trust Badges */
.trust-badge {
    background: #fff;
    border-radius: 12px;
    padding: 20px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(163, 46, 24, 0.08);
}

/* Tagline Animation */
.tagline-gujarati {
    opacity: 0;
    animation: fadeInTagline 1s ease forwards 0.5s;
}
@keyframes fadeInTagline {
    to { opacity: 1; }
}

/* -------------------------------------
   MOBILE UI OVERHAUL 
--------------------------------------*/
@media (max-width: 767.98px) {
    /* Global App Feel */
    body {
        padding-bottom: 75px !important;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        overscroll-behavior-y: none; /* Prevent pull-to-refresh glow if needed */
    }

    /* Disable text selection on UI elements */
    .btn, .nav-link, .bottom-nav-item, .category-circle {
        user-select: none;
        -webkit-user-select: none;
    }

    /* Modern Bottom Navigation Bar (Material Design 3 style) */
    .bottom-nav-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        height: 70px;
        z-index: 1040;
        padding-bottom: env(safe-area-inset-bottom);
        border-top: none !important;
    }

    /* Cart Drawer Mobile Fullscreen & Priority */
    #cartSlider {
        z-index: 1060 !important;
    }
    .offcanvas-backdrop {
        z-index: 1055 !important;
    }
    @media (max-width: 576px) {
        #cartSlider {
            width: 100% !important;
            height: 100dvh !important;
            max-height: 100dvh !important;
        }
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.7rem;
        font-family: 'Unageo', sans-serif;
        font-weight: 600;
        width: 25%;
        height: 100%;
        transition: all 0.2s ease;
        position: relative;
    }

    /* Icon Pill Container for Active State */
    .bottom-nav-item .icon-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 30px;
        border-radius: 16px;
        margin-bottom: 4px;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .bottom-nav-item i {
        font-size: 1.35rem;
        transition: transform 0.2s ease;
    }

    .bottom-nav-item.active {
        color: var(--primary-color);
    }

    .bottom-nav-item.active .icon-wrapper {
        background-color: rgba(26, 67, 41, 0.12); /* Light primary bg */
    }

    .bottom-nav-item.active i {
        font-weight: bold;
        transform: scale(1.1);
    }

    /* Product Grid Adjustments for Mobile (2 Columns) */
    .row-cols-md-3 > .col {
        width: 50%; /* Override to ensure 2 columns on mobile */
        padding-right: 8px;
        padding-left: 8px;
    }

    .product-card .card-body {
        padding: 10px !important;
    }

    .product-card .card-title {
        font-size: 0.85rem !important;
        margin-bottom: 2px !important;
    }

    .product-card .card-text {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
    }

    .product-card .btn {
        font-size: 0.7rem !important;
        padding: 6px 0 !important;
    }

    /* Hide desktop specific elements */
    .desktop-only {
        display: none !important;
    }
}

/* -------------------------------------
   FALGUNI STYLE OVERRIDES 
--------------------------------------*/
.hero-banner-section {
    border-bottom: 5px solid var(--accent-color);
}

.hanging-board {
    background: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    border: 2px solid #eaeaea;
    display: inline-block;
}

.hanging-board::before,
.hanging-board::after {
    content: '';
    position: absolute;
    top: -20px;
    width: 2px;
    height: 20px;
    background: #fff;
}

.hanging-board::before {
    left: 20%;
}

.hanging-board::after {
    right: 20%;
}

.hanging-board-small {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 0 0 8px 8px;
    font-size: 0.8rem;
    font-weight: bold;
}

.text-shadow-premium {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.bg-light-custom {
    background-color: #faf9f6;
}

.falguni-product-card {
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}

.falguni-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium) !important;
}

.falguni-add-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4a38 100%);
    color: #ffffff;
    border: none;
    border-radius: 50rem; /* Pill shape */
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(17, 58, 41, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.falguni-add-btn:hover {
    background: linear-gradient(135deg, #1a4a38 0%, var(--primary-color) 100%);
    color: #fce07f;
    box-shadow: 0 6px 15px rgba(17, 58, 41, 0.3);
    transform: translateY(-2px);
}

.category-circle-falguni {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.category-circle-falguni img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-circle-falguni:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.falguni-review-card {
    border-radius: 8px;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}

.falguni-story-box {
    border: none;
    box-shadow: var(--shadow-premium) !important;
}

.swiper-navigation-custom .btn {
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #eaeaea;
    color: #555;
}

.swiper-navigation-custom .btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Ensure swiper slides stretch to same height */
.swiper-slide {
    height: auto;
}

/* ==========================================================================
   SHOPIFY-STYLE PRODUCT CARD DESIGN SYSTEM
   Based on modern premium Shopify e-commerce (Falguni Food reference)
   in Piyu Gruh brand palette (Deep Forest Green #113a29 & Gold accents)
   ========================================================================== */

.shopify-product-card, .falguni-product-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #ededed !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
}

.shopify-product-card:hover, .falguni-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(17, 58, 41, 0.1) !important;
    border-color: #cbd5e1 !important;
}

/* Image Container with Absolute Aspect-Ratio Locking (Prevents Image Distortion & Card Blowouts) */
.shopify-img-box, .falguni-product-card .product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #fbf9f6 !important; /* Warm subtle artisan background like Falguni */
    overflow: hidden;
    border-bottom: 1px solid #f3f3f3 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.shopify-img-box > a, .falguni-product-card .product-img-wrapper > a {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shopify-img, .falguni-product-card .product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    display: block;
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.shopify-product-card:hover .shopify-img, 
.falguni-product-card:hover .product-img-wrapper img {
    transform: scale(1.06) !important;
}

/* Quick View floating button */
.shopify-quick-btn, .falguni-product-card .quick-view-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155 !important;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease !important;
    cursor: pointer;
    z-index: 5;
}

.shopify-product-card:hover .shopify-quick-btn,
.falguni-product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.shopify-quick-btn:hover, .falguni-product-card .quick-view-btn:hover {
    background: var(--primary-color, #113a29) !important;
    color: #ffffff !important;
    border-color: var(--primary-color, #113a29) !important;
}

.shopify-quick-btn:hover i, .falguni-product-card .quick-view-btn:hover i {
    color: #ffffff !important;
}

/* Card Content Area - Left-Aligned exactly like Shopify */
.shopify-card-body, .falguni-product-card .card-body {
    padding: 14px 12px 14px 12px !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    text-align: left !important;
    background: #ffffff !important;
}

.shopify-title, .falguni-product-card .product-title, .falguni-product-card .card-title {
    font-family: 'Unageo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Gujarati", sans-serif !important;
    font-size: 0.96rem !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.35;
    height: 2.7em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    word-break: break-word;
    transition: color 0.2s ease;
    text-align: left !important;
}

.shopify-product-card:hover .shopify-title,
.falguni-product-card:hover .product-title,
.falguni-product-card:hover .card-title {
    color: var(--primary-color, #113a29) !important;
}

.shopify-price, .falguni-product-card .product-price, .falguni-product-card .card-text {
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.2px;
    text-align: left !important;
    min-height: 24px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

/* Two-Button Action Row */
.shopify-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    width: 100%;
}

.shopify-cart-form {
    flex: 1 1 50%;
    min-width: 0;
    margin: 0;
}

.shopify-btn-add {
    width: 100%;
    padding: 7px 6px !important;
    background: var(--primary-color, #113a29) !important;
    color: #ffffff !important;
    border: 1px solid var(--primary-color, #113a29) !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    box-shadow: 0 2px 6px rgba(17, 58, 41, 0.15);
    text-transform: capitalize !important;
}

.shopify-btn-add:hover {
    background: #0b271b !important;
    border-color: #0b271b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(17, 58, 41, 0.25);
    color: #ffffff !important;
}

.shopify-btn-view {
    flex: 1 1 50%;
    min-width: 0;
    padding: 7px 6px !important;
    background: #ffffff !important;
    color: #334155 !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    box-sizing: border-box;
}

.shopify-btn-view:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}

/* Mobile Optimizations */
@media (max-width: 576px) {
    .shopify-card-body, .falguni-product-card .card-body {
        padding: 10px 8px 10px 8px !important;
    }
    .shopify-title, .falguni-product-card .product-title, .falguni-product-card .card-title {
        font-size: 0.84rem !important;
        height: 2.6em !important;
        margin-bottom: 2px !important;
    }
    .shopify-price, .falguni-product-card .product-price, .falguni-product-card .card-text {
        font-size: 0.88rem !important;
        margin-bottom: 8px !important;
        min-height: 20px;
    }
    .shopify-actions {
        flex-direction: column;
        gap: 6px;
    }
    .shopify-cart-form, .shopify-btn-view, .shopify-btn-add {
        width: 100% !important;
        flex: none !important;
    }
    .shopify-btn-add, .shopify-btn-view {
        font-size: 0.72rem !important;
        padding: 4px 2px !important;
        height: 32px !important;
        border-radius: 6px !important;
    }
    .shopify-img-box, .falguni-product-card .product-img-wrapper {
        padding: 0 !important;
    }
}

@media (max-width: 380px) {
    .shopify-btn-add, .shopify-btn-view {
        font-size: 0.65rem !important;
        padding: 4px 1px !important;
        height: 30px !important;
    }
}

/* Wishlist floating button */
.shopify-wishlist-btn, .falguni-product-card .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1 !important;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.25s ease !important;
    cursor: pointer;
    z-index: 5;
    padding: 0;
}

.shopify-product-card:hover .shopify-wishlist-btn,
.falguni-product-card:hover .wishlist-btn {
    opacity: 1;
    transform: translateY(0);
}

.shopify-wishlist-btn:hover, .falguni-product-card .wishlist-btn:hover {
    color: #ef4444 !important;
    transform: scale(1.1);
}

.shopify-wishlist-btn.active, .falguni-product-card .wishlist-btn.active {
    color: #ef4444 !important;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 576px) {
    .shopify-actions {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }
    .shopify-cart-form, .shopify-btn-view, .shopify-btn-add {
        width: 100% !important;
        flex: 1 !important;
    }
    .shopify-btn-add, .shopify-btn-view {
        font-size: 0.62rem !important;
        padding: 5px 2px !important;
        height: 28px !important;
        border-radius: 4px !important;
        letter-spacing: -0.3px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }
}

/* Google Translate Protection */
.notranslate, [translate="no"] {
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}
