:root {
    --primary-color: #2563eb;
    --accent-teal: #217373;
    /* Teal for Add to Cart */
    --accent-orange: #f97316;
    /* Orange for Buy Now */
    --accent-wishlist: #507d7d;
    /* Muted teal for wishlist border */
    --nav-bg: #ffffff;
    --bg-soft: #f9fafb;
    --text-main: var(--text-body, #1f2937);
    --text-muted: var(--text-muted, #6b7280);
    --glass-border: rgba(255, 255, 255, 0.3);
}

body {
    background-color: var(--bg-soft);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Typography Refresh - Now handled by typography.css */

/* Header redesign */
.glass-header {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.nav-link-premium {
    font-weight: 600;
    color: var(--text-main) !important;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link-premium:hover {
    color: var(--primary-color) !important;
}

/* Product Showcase */
.product-hero-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    border: 1px solid #f3f4f6;
}

.img-container {
    background: white;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

@media (min-width: 992px) {
    .img-container {
        height: 100%;
    }
}

.product-main-img {
    max-height: 500px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.img-container:hover .product-main-img {
    transform: scale(1.05);
}

/* Metadata & Badges */
.badge-premium {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-display {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.price-currency {
    font-size: 1.25rem;
    vertical-align: super;
    margin-right: 0.2rem;
    color: var(--text-muted);
}

/* Redesigned Action Buttons */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.btn-action {
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: none;
    color: white;
}

.btn-add-cart {
    background: #3d8686;
    color: white;
}

.btn-buy-now {
    background: #fb923c;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(251, 146, 60, 0.2);
}

.btn-wishlist {
    grid-column: span 2;
    background: white;
    color: #3d8686;
    border: 1px solid #3d8686;
    padding: 0.8rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.btn-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .action-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .btn-wishlist {
        grid-column: span 1;
        margin-top: 0;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #1e293b !important;
        font-weight: 600;
        font-size: 1rem !important;
    }

    .btn-wishlist i {
        color: #f43f5e !important;
    }

    .btn-action {
        font-size: 1rem;
        padding: 0.85rem;
        gap: 0.55rem;
    }

    .btn-action i {
        font-size: 1.15rem;
    }

    .info-line-premium {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        text-align: center;
        padding: 5px 0;
    }

    .info-line-premium .mx-1 {
        display: none;
        /* Hide pipe separators on mobile when stacked */
    }

    .card-content-bottom {
        margin-bottom: 1rem !important;
        padding: 15px !important;
    }

    .action-grid {
        margin-top: 0.75rem !important;
    }

    .contact-bar-premium {
        margin-bottom: 2px !important;
        padding: 2px 0 !important;
        gap: 8px !important;
    }

    .social-bar-premium {
        margin-bottom: 10px !important;
        gap: 15px !important;
    }

    .contact-number-premium {
        font-size: 0.95rem;
    }

    .contact-phone-box {
        width: 28px;
        height: 26px;
        font-size: 0.85rem;
    }

    .whatsapp-icon-premium {
        font-size: 1.5rem;
    }

    .product-section {
        padding-bottom: 1rem !important;
    }

    .row.g-4.mt-4 {
        margin-top: 1rem !important;
    }
}

/* Qty Controls */
.cart-control {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
}

.qty-input {
    width: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #1a1a1a;
}

/* Contact Bar Premium */
.contact-bar-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 5px 0;
    margin-bottom: 5px;
}

.contact-phone-box {
    background: #fb923c;
    color: white;
    width: 35px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1.1rem;
}

.contact-number-premium {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: 0.02em;
}

.whatsapp-icon-premium {
    font-size: 2rem;
    color: #25D366;
}

/* Social Icons Area */
.social-bar-premium {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
}

.social-bar-premium a {
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.social-bar-premium a:hover {
    transform: scale(1.2);
}

.social-fb {
    color: #1877F2;
}

.social-yt {
    color: #FF0000;
}

.social-ig {
    color: #E4405F;
}

/* Sections */
.detail-section-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    border: 1px solid #f3f4f6;
    height: 100%;
}

.section-title-premium {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Related Products */
.related-card {
    border: none;
    border-radius: 20px;
    transition: all 0.4s ease;
    background: white;
    padding: 1rem;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.related-img-box {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
}

/* Modern Policy Footer */
.policy-card-modern {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.policy-header-modern {
    background: #eab308;
    /* Vivid yellow/gold */
    color: #111827;
    font-size: 1.05rem;
    padding: 12px !important;
}

.policy-body-modern {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-text-footer {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #4b5563;
    text-align: justify;
}

.footer-bar-gray {
    background: #f3f4f6;
    /* Lighter gray for a cleaner look */
    border-top: 1px solid #e5e7eb;
}

.product-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.section-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.015) !important;
    margin: 1.5rem 0;
}

.policy-card-modern {
    height: 100%;
    border: 1px solid #f3f4f6;
    border-top: none;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.border-start-4 {
    border-left-width: 4px !important;
}

/* Breadcrumbs */
.breadcrumb-premium {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

/* Summary List Tighten */
.product-summary-premium ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.product-summary-premium li {
    padding: 0 !important;
    margin-bottom: 4px !important;
    position: relative;
    padding-left: 1.5rem !important;
    line-height: 1.4 !important;
}

.product-summary-premium li::before {
    content: "\F272";
    /* bi-check2-circle */
    font-family: Bootstrap-icons;
    position: absolute;
    left: 0;
    color: #0d9488;
    font-weight: 700;
}

/* Gold Header Bar Style */
.header-bar-gold {
    background-color: #fce8a6;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    padding: 15px 15px;
    /* Increased height as requested */
    border-radius: 12px 12px 0 0;
    text-align: center;
    font-weight: 700;
    color: var(--text-heading) !important;
    font-size: 0.95rem;
    /* Smaller font as requested */
    font-family: var(--font-heading) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.card-content-bottom {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
    padding: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-line-premium {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 600;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 5px 10px;
    margin-bottom: 0px;
}

/* Custom Price & Title Refinements */
.price-red-small {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
    /* Bootstrap red */
    letter-spacing: -0.01em;
}

.price-red-small .price-currency {
    font-size: 0.9rem;
    color: #dc3545;
}

.title-center-small {
    font-size: 1.8rem !important;
    text-align: center;
    width: 100%;
    margin-bottom: 2rem !important;
}

.description-text-premium {
    line-height: 1.65 !important;
    color: var(--text-body) !important;
    text-align: left;
    /* Alignment fixed to left with better padding */
    word-spacing: 0.02em;
}

.description-text-premium h1,
.description-text-premium h2,
.description-text-premium h3,
.description-text-premium h4,
.description-text-premium h5,
.description-text-premium h6 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    color: var(--text-heading) !important;
    line-height: 1.4 !important;
}

.description-text-premium ul,
.description-text-premium ol {
    padding-left: 1.25rem !important;
    margin-bottom: 1rem !important;
}

.description-text-premium li {
    margin-bottom: 2px !important;
    padding: 0 !important;
    padding-left: 0.25rem !important;
}

/* Related Products Grid - Shopping Style */
.related-card-new {
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Slightly softer border */
    padding-bottom: 15px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    /* Even deeper shadow */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card-new:hover {
    transform: translateY(-8px);
    /* Deeper lift */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    /* Extreme hover shadow */
}

.related-img-box-new {
    background: #f9f9f9;
    /* Lighter background */
    height: 250px;
    padding: 20px;
    /* Set to exactly 20px as requested */
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-title-new {
    color: #3b5998;
    /* Example blue color from typical shopping sites */
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
    flex: 1;
}

.related-price-new {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
}

.btn-success-premium {
    background-color: #69d367;
    border-color: #69d367;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.btn-success-premium:hover {
    background-color: #5cb85c;
    border-color: #5cb85c;
    color: white;
}

/* Sync main product add to cart button */
.btn-add-cart {
    background-color: #69d367 !important;
    border-color: #69d367 !important;
    color: white !important;
}

.btn-add-cart:hover {
    background-color: #5cb85c !important;
    border-color: #5cb85c !important;
}
/* --- Recently Added Component Styles --- */

/* Horizontal Product Card */
.horizontal-product-card {
    transition: all 0.2s ease;
    min-height: 155px;
    height: auto;
    background: #fff;
    border: 1px solid #eee;
}
.horizontal-product-card:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1) !important;
}
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.min-width-0 {
    min-width: 0;
}

@media (max-width: 576px) {
    .horizontal-product-card {
        min-height: 100px;
        height: auto;
        padding: 6px 8px !important;
    }
    .card-content-wrapper {
        gap: 6px !important;
    }
    .horizontal-product-card .flex-shrink-0 {
        width: 60px !important;
    }
    .horizontal-product-card .flex-shrink-0 img, 
    .horizontal-product-card .flex-shrink-0 .bg-light {
        width: 60px !important;
        height: 60px !important;
    }
    .product-summary-text {
        -webkit-line-clamp: 1;
        font-size: 0.75rem !important;
    }
    .horizontal-product-card h6 {
        font-size: 0.85rem !important;
        margin-bottom: 2px !important;
    }
    .horizontal-product-card hr {
        margin: 2px 0 !important;
    }
    .horizontal-product-card .badge {
        font-size: 0.55rem !important;
        padding: 2px 4px !important;
    }
    .horizontal-product-card .text-primary {
        font-size: 0.85rem !important;
    }
    .horizontal-product-card button {
        font-size: 0.75rem !important;
        padding: 0 !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }
}

/* Festival Slider */
.festival-slider-item {
    min-width: 380px;
    max-width: 450px;
    flex: 0 0 auto;
}
@media (max-width: 576px) {
    .festival-slider-item {
        min-width: 280px;
        max-width: 300px;
    }
    .festival-slider-container {
        gap: 10px !important;
    }
}
.festival-slider-container::-webkit-scrollbar {
    height: 6px;
}
.festival-slider-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.festival-slider-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.festival-slider-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* AJAX Animations & Transitions */
.spin-animation {
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hover-bg-primary:hover {
    background-color: #1e3a8a !important;
}
.hover-text-white:hover {
    color: white !important;
}
.transition-all {
    transition: all 0.3s ease;
}

/* --- Footer & Product Card Styles (Consolidated) --- */

/* Footer Wrapper */
.footer-wrapper {
    background-color: #f8fafc;
    padding-top: 4rem;
}

@media (max-width: 768px) {
    .footer-wrapper {
        padding-top: 1.5rem !important;
    }
}

/* Policy Cards Modern */
.policy-card-modern {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

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

.policy-header-modern {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.small-text-footer {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-body);
}

/* Dynamic Footer Text Fixes */
.footer-bar-dynamic p,
.footer-bar-dynamic span,
.footer-bar-dynamic a {
    color: var(--text-heading) !important;
}

.premium-font {
    font-family: 'Outfit', sans-serif;
}

/* Wishlist and Cart Buttons (Product Card) */
.btn-wishlist-circle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: 1.5px solid #eee;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-wishlist-circle.add {
    color: #f43f5e;
    font-size: 1.4rem;
    border-color: #ffe4e6;
}

.btn-wishlist-circle.remove {
    color: #ef4444;
    border-color: #fee2e2;
    font-size: 1.4rem;
}

.btn-wishlist-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn-cart-premium {
    border: 1.5px solid #000000;
    color: #000000;
    background: transparent;
    border-radius: 50px;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cart-premium:hover {
    background: #000000;
    color: white;
}

/* --- Header & Search Suggestion Styles (Consolidated) --- */

/* Glass Header */
.glass-header {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-link-premium {
    color: #475569;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 0;
    display: inline-block;
}

/* Dropdown Premium */
.dropdown-menu-premium {
    background-color: #ffffff !important;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #ffffff;
    z-index: 1050;
}

.dropdown-menu-premium::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu-premium::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.dropdown-item-premium {
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
}

.dropdown-item-premium:hover {
    background-color: #f1f5f9 !important;
    padding-left: 1.25rem !important;
}

/* Search Suggestions */
.search-suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    margin-top: 8px;
    max-height: 450px;
    overflow-y: auto;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.suggestion-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8fafc;
}

.suggestion-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    line-height: 1.3;
}

.suggestion-price {
    font-size: 0.8rem;
    color: #64748b;
}

.no-suggestions {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Mobile Optimizations */
@media (max-width: 576px) {
    .logo-img-premium {
        max-height: 55px !important;
    }

    .header-btn-mobile {
        padding-left: 8px !important;
        padding-right: 8px !important;
        gap: 4px !important;
    }

    .header-btn-mobile span {
        display: none !important;
    }
}

/* Misc Product Page Styles */
.section-divider {
    border-top: 1px solid #f1f5f9 !important;
    margin: 1.5rem 0 !important;
    opacity: 1 !important;
}

.info-line-premium {
    border: none !important;
    padding-bottom: 0 !important;
}

/* Footer Bar Dynamic (Static) */
.footer-bar-dynamic {
    color: white !important;
}
.footer-bar-dynamic p,
.footer-bar-dynamic span,
.footer-bar-dynamic a {
    color: var(--text-heading) !important;
}
.small-text-footer {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-body);
}
