/*
 * Custom Product Design Styles - Refined Version
 * Based on the detailed reference image for Kamakhya
 */

:root {
    --kamakhya-pink: #ff3f6c;
    --kamakhya-black: #282c3f;
    --kamakhya-gray: #535665;
    --kamakhya-light-gray: #f5f5f5;
    --kamakhya-border: #e8e8e8;
    --kamakhya-green: #03a685;
    --header-height: 80px;
    --header-bg: #ffffff;
    --site-gutter: 80px;
}

@media (max-width: 1400px) {
    :root {
        --site-gutter: 60px;
    }
}

@media (max-width: 1200px) {
    :root {
        --site-gutter: 40px;
    }
}

@media (max-width: 992px) {
    :root {
        --site-gutter: 20px;
    }
}

@media (max-width: 600px) {
    :root {
        --site-gutter: 15px;
    }
}

@media (max-width: 425px) {
    :root {
        --site-gutter: 10px;
    }
}

/* -------------------------------------------------------------------------- */
/* Premium Header Styles */
/* -------------------------------------------------------------------------- */

.kamakhya-main-header {
    background-color: var(--header-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.kamakhya-header-container {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 var(--site-gutter) !important;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Left: Logo */
.kamakhya-header-left {
    flex: 0 0 auto;
}

.kamakhya-header-left .custom-logo-link img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--kamakhya-border);
}

.kamakhya-header-left .site-title a {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--kamakhya-black);
    text-decoration: none;
}

/* Center: Navigation */
.kamakhya-header-center {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    padding-left: 40px;
}

.kamakhya-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.kamakhya-nav-menu li a {
    text-decoration: none;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    /* Updated to 14px as requested */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.kamakhya-nav-menu li a:hover {
    color: #410b0b;
}

/* Right: Search & Icons */
.kamakhya-header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Search Bar */
.kamakhya-search-bar {
    width: 350px;
    /* Wider search bar like in premium sites */
    margin-right: 40px;
    /* Clear gap from icons */
}

.kamakhya-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.kamakhya-search-field {
    width: 60%;
    background-color: #f5f5f6;
    /* Light grey background from design */
    border: 1px solid transparent;
    /* Border hidden by default */
    border-radius: 4px;
    padding: 10px 45px 10px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #282c3f;
    height: 45px;
    /* Taller input */
    outline: none;
    transition: all 0.2s ease-in-out;
}

.kamakhya-search-field:hover,
.kamakhya-search-field:focus {
    border-color: #d1d1d1;
    /* Border becomes visible on hover/focus */
}

.kamakhya-search-submit {
    position: absolute;
    right: 5px;
    background: transparent;
    border: none;
    color: #696b79;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Action Icons */
.kamakhya-action-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.kamakhya-icon-link {
    text-decoration: none;
    color: var(--kamakhya-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.kamakhya-icon-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kamakhya-icon-label {
    font-size: 10px;
    /* Updated to 10px as requested */
    font-weight: 700;
    color: var(--kamakhya-black);
}

/* Material Icons Outlined Styling */
.material-icons-outlined {
    font-family: 'Material Icons Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Icon size as requested */
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.kamakhya-cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--kamakhya-pink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.kamakhya-icon-link:hover {
    color: #410b0b;
}

/* Mobile Toggle */
.kamakhya-mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.kamakhya-hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--kamakhya-black);
    position: relative;
}

.kamakhya-hamburger::before,
.kamakhya-hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--kamakhya-black);
    left: 0;
}

.kamakhya-hamburger::before {
    top: -8px;
}

.kamakhya-hamburger::after {
    bottom: -8px;
}

/* Responsiveness */
@media (max-width: 1200px) {
    .kamakhya-search-bar {
        width: 450px;
        margin-right: 25px;
    }

    .kamakhya-nav-menu {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .kamakhya-main-header {
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .kamakhya-header-container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 20px;
        /* Reduced from 80px base */
    }

    .kamakhya-header-center {
        display: none;
        order: 5;
        width: 100%;
        position: static;
        padding: 20px 0;
        box-shadow: none;
        border-top: 1px solid var(--kamakhya-border);
    }

    .kamakhya-header-center.active {
        display: flex;
    }

    .kamakhya-header-left {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .kamakhya-header-left .custom-logo-link img {
        width: 50px;
        height: 50px;
    }

    .kamakhya-mobile-toggle {
        display: block;
        order: 1;
        padding-left: 0;
    }

    .kamakhya-header-right {
        order: 3;
        gap: 15px;
    }

    .kamakhya-search-bar {
        order: 4;
        width: 100%;
        margin: 5px 0 10px 0;
    }

    .kamakhya-search-field {
        width: 100%;
        /* Ensure full width on all mobile rows */
    }
}

@media (max-width: 600px) {
    .kamakhya-header-container {
        padding: 0 15px;
        /* Further reduced for standard mobile */
    }

    .kamakhya-icon-label {
        display: none;
    }

    .kamakhya-header-right {
        gap: 10px;
    }

    .kamakhya-header-left {
        justify-content: center;
        padding-right: 34px;
        /* Offset for toggle to keep logo centered */
    }

    .kamakhya-nav-menu {
        gap: 12px;
        justify-content: center;
    }

    .kamakhya-nav-menu li a {
        font-size: 12px;
        letter-spacing: 0.2px;
    }
}

@media (max-width: 425px) {
    .kamakhya-header-container {
        padding: 0 10px;
    }

    .kamakhya-header-left .custom-logo-link img {
        width: 50px;
        height: 50px;
    }

    .kamakhya-header-right {
        gap: 6px;
    }

    .kamakhya-search-field {
        width: 100%;
        font-size: 11px;
        /* Further reduced to prevent clipping */
        padding: 10px 42px 10px 10px;
        /* More padding for icon */
    }

    .kamakhya-nav-menu {
        gap: 8px;
        /* Even tighter for Mobile L */
        justify-content: center;
    }

    .kamakhya-nav-menu li a {
        font-size: 11px;
        /* Smaller menu text */
        letter-spacing: 0.1px;
    }

    .material-icons-outlined {
        font-size: 20px;
    }

    .kamakhya-search-submit {
        right: 0px;
    }
}


/* Base Styles - Force Full Width Ultra-Aggressive */
body.single-product,
body.single-product #page,
body.single-product #content,
body.single-product .site-content,
body.single-product #primary,
body.single-product .content-area {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Apply padding only to the main content container to avoid stacking */
body.single-product .site-main {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px var(--site-gutter) !important;
    box-sizing: border-box !important;
}

/* Breadcrumbs */
.product-breadcrumbs {
    padding: 20px 0 0;
    /* No side padding, relies on master container ama. */
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--kamakhya-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.product-breadcrumbs .woocommerce-breadcrumb {
    color: var(--kamakhya-black);
    font-weight: 700;
    /* Current page bold */
}

.product-breadcrumbs a {
    color: var(--kamakhya-gray);
    text-decoration: none;
    font-weight: 400;
    /* Links normal */
}

.product-breadcrumbs a:hover {
    color: #d11c72;
}

/* Main Layout */
.single-product-wrapper,
.product.type-product {
    /* Add standard WooCommerce classama. */
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 0;
    /* No side padding, relies on master container ama. */
}

.product-gallery {
    flex: 1 1 500px;
    width: 100%;
}

.product-gallery .woocommerce-product-gallery {
    width: 100% !important;
    position: relative;
    overflow: hidden;
}

/* Hide Sale Badge specifically in Gallery */
.product-gallery .onsale {
    display: none !important;
}

/* Allow WooCommerce FlexSlider to set its own widths and layouts */
.product-gallery .woocommerce-product-gallery__wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.product-gallery .woocommerce-product-gallery__image {
    margin-bottom: 0 !important;
}

.product-gallery img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* Thumbnail Selection */
.product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 15px 0 0 !important;
    list-style: none !important;
    margin: 0 !important;
    width: 100% !important;
}

.product-gallery .flex-control-thumbs li {
    width: calc(25% - 8px) !important;
    /* 4 images per row */
    margin: 0 !important;
}

.product-gallery .flex-control-thumbs li img {
    width: 100% !important;
    height: auto !important;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer !important;
    border-radius: 4px;
}

.product-gallery .flex-control-thumbs li img.flex-active {
    border-color: var(--kamakhya-pink);
}

.product-details {
    flex: 1 1 400px;
}

/* Typography */
.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    color: #282c3f;
    line-height: 1;
    letter-spacing: 0.5px;
}

.product-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #535665;
    margin-bottom: 25px;
    font-weight: 400;
    line-height: 1.4;
}


.product-divider {
    height: 1px;
    background-color: var(--kamakhya-border);
    margin: 25px 0;
}

.product-divider.secondary {
    margin: 35px 0 25px 0;
}

/* Price Section */
.price-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.current-price {
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #282c3f;
}

.regular-price {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: #94969f;
    text-decoration: line-through;
}

.discount-percentage {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #d11c72;
}

.tax-info {
    font-size: 10px;
    color: var(--kamakhya-green);
    font-weight: 500;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


/* Variations */
.attribute-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.attribute-label {
    font-weight: 700;
    font-size: 14px;
    color: #282c3f;
    letter-spacing: 1.5px;
}

.required-star {
    color: #ff3f6c;
}

.size-chart-link {
    color: #d11c72;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline !important;
    border-bottom: 1px solid transparent !important;
}

.size-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
}

.size-option {
    width: 48px;
    height: 48px;
    border: 1px solid #bfc0c6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #282c3f;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-option:hover {
    border-color: var(--kamakhya-pink);
    color: var(--kamakhya-pink);
}

.size-option.selected {
    border-color: var(--kamakhya-pink);
    background: #fff;
    color: var(--kamakhya-pink);
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.add-to-bag-btn {
    flex: 2;
    background-color: #d11c72;
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-to-bag-btn:hover {
    background-color: #e6395d;
}


.wishlist-btn {
    flex: 1;
    background-color: #fff;
    color: #282c3f;
    border: 1px solid #d4d5d9;
    padding: 18px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.wishlist-btn:hover {
    border-color: #282c3f;
}

.btn-icon {
    stroke-width: 2.5;
}

/* Trust Features */
.trust-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #282c3f;
    font-weight: 400;
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: #535665;
}

.feature-text {
    color: #282c3f;
}

/* Related Products */
.related.products {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 60px auto 0 !important;
    flex: 0 0 100% !important;
    /* Forces it to occupy full row in flexama. */
    padding: 60px 0 !important;
    /* Stripped side padding to end double-gutter ama. */
    box-sizing: border-box !important;
    border-top: 1px solid var(--kamakhya-border);
    text-align: center;
}

.related.products h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    display: inline-block;
    position: relative;
    color: #282c3f;
}

.related.products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--kamakhya-pink);
}

/* -------------------------------------------------------------------------- */
/* Home Page Shortcode Styles */
/* -------------------------------------------------------------------------- */

.kamakhya-products-section {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 40px var(--site-gutter) !important;
    box-sizing: border-box !important;
}

.kamakhya-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--kamakhya-border);
    padding-bottom: 15px;
}

.kamakhya-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 400;
    color: #282c3f;
    margin: 0;
    position: relative;
}

.kamakhya-section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #5d2b1e;
    /* Specific brown underline from image */
}

.kamakhya-products-section .kamakhya-view-all {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #5d2b1e !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    /* Adding this just in case */
}

.kamakhya-products-section .kamakhya-view-all:hover {
    text-decoration: underline !important;
}

.kamakhya-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.kamakhya-product-card {
    position: relative;
    background: #fff;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    /* Light border for definition */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Clip contents to rounded corners */
    display: flex;
    /* Ensure card takes full height of grid cell */
    flex-direction: column;
}


/* .kamakhya-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
} */


.kamakhya-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}


.kamakhya-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #d92323;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 2px;
    z-index: 2;
    text-transform: uppercase;
}

.kamakhya-card-image {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    /* 3:4 Aspect Ratio (4 / 3 * 100) */
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.kamakhya-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.kamakhya-product-card:hover .kamakhya-card-image img {
    transform: scale(1.1);
}



.kamakhya-card-content {
    padding: 20px 20px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
    /* Consistent gap between all 4 fields: Title, Paragraph, Price, Tax Info */
}


.kamakhya-card-brand {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #282c3f;
    text-transform: uppercase;
    margin: 0;
    /* Margin reset to use parent gap */
}


.kamakhya-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #535665;
    margin: 0;
    /* Margin reset to use parent gap */
    font-weight: 400;
    text-decoration: none !important;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.kamakhya-card-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    margin: 0;
    /* Margin reset to use parent gap */
}

.kamakhya-price-current {
    font-weight: 700;
    color: #410b0b;
}

.kamakhya-price-actual {
    color: #94969f;
    text-decoration: line-through;
    font-weight: 400;
}

.kamakhya-price-discount {
    color: #03a685;
    /* Green color for discount */
    font-weight: 600;
    font-size: 13px;
}



/* WooCommerce Price HTML Styling in Cards */
.kamakhya-card-current ins {
    text-decoration: none;
    font-weight: 700;
    color: #282c3f;
    font-size: 13px;
}

.kamakhya-card-current del {
    color: #7e818c;
    font-size: 13px;
    font-weight: 400;
}

/* If no sale, standard price */
.kamakhya-card-current .woocommerce-Price-amount {
    color: #282c3f;
    font-weight: 700;
}

.kamakhya-card-tax {
    font-size: 10px;
    color: #94969f;
    font-weight: 400;
    margin-top: 2px;
}

/* Responsiveness */
@media (max-width: 1200px) {
    .brand-name {
        font-size: 30px;
    }
}

@media (max-width: 992px) {
    .kamakhya-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-name {
        font-size: 26px;
    }

    .current-price {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .single-product-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .product-gallery,
    .product-details {
        flex: 1 1 100%;
    }

    .brand-name {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .product-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .price-container {
        margin-bottom: 15px;
    }

    .current-price {
        font-size: 22px;
    }

    .regular-price,
    .discount-percentage {
        font-size: 18px;
    }

    .kamakhya-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .kamakhya-section-title {
        font-size: 22px;
    }

    .tax-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 20px;
    }

    .current-price {
        font-size: 18px;
    }

    .regular-price,
    .discount-percentage {
        font-size: 14px;
    }

    .add-to-bag-btn,
    .wishlist-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* Related Products Section */
.related-products-container {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 80px auto 0 !important;
    padding: 60px 0 !important;
    /* Stripped side padding to end double-gutter ama. */
    box-sizing: border-box !important;
    border-top: 1px solid var(--kamakhya-border);
    clear: both;
}

.related-products-container .kamakhya-section-header.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    width: 100%;
}

.related-products-container .kamakhya-section-header.centered .kamakhya-section-title {
    font-size: 32px;
    font-family: 'Playfair Display', serif !important;
    font-weight: 700;
    color: var(--kamakhya-black);
    margin: 0 !important;
    padding-bottom: 20px;
    position: relative;
    text-transform: none;
}

/* Override the default underline for related products */
.related-products-container .kamakhya-section-header.centered .kamakhya-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px !important;
    background-color: var(--kamakhya-pink) !important;
}

.related-products-container .kamakhya-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 1200px) {
    .related-products-container .kamakhya-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .related-products-container .kamakhya-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-products-container {
        margin-top: 50px;
        padding-top: 40px;
    }

    .related-products-container .kamakhya-section-header.centered {
        margin-bottom: 30px;
    }
}

/* Scoped Related Products Layout - Applied only to related cards */
.related-layout .kamakhya-card-content {
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 20px 10px 10px;
}

.related-layout .kamakhya-card-brand {
    font-size: 16px;
    font-weight: 700;
}

.related-layout .kamakhya-card-title {
    font-size: 12px;
    color: #7e818c;
    line-height: 1.4;
    -webkit-line-clamp: initial;
    line-clamp: initial;
    display: block;
}

.related-layout .kamakhya-card-price {
    justify-content: center;
    font-size: 14px;
    margin: 4px 0 0 0;
    gap: 8px;
}

.related-layout .kamakhya-price-discount {
    font-size: 12px;
}

.related-layout .kamakhya-card-current ins,
.related-layout .kamakhya-card-current del {
    font-size: 12px;
}

@media (max-width: 992px) {
    .related-layout .kamakhya-card-price {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .related-products-container {
        margin-top: 30px;
        padding-top: 30px;
    }

    .related-products-container .kamakhya-section-header.centered {
        margin-bottom: 20px;
    }

    .related-products-container .kamakhya-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-layout .kamakhya-card-content {
        padding: 15px 5px 5px;
        gap: 4px;
    }

    .related-layout .kamakhya-card-price {
        gap: 4px;
        margin-top: 2px;
    }
}

/* -------------------------------------------------------------------------- */
/* Dynamic Hero Section */
/* -------------------------------------------------------------------------- */

.kamakhya-hero-section {
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    padding: 100px 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.kamakhya-hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--site-gutter);
    box-sizing: border-box;
}

.kamakhya-hero-content {
    max-width: 650px;
    /* Limit width of text contentama. */
    color: #ffffff;
}

.kamakhya-hero-tag {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #e0b44a;
    /* Golden color from design ama. */
    margin-bottom: 20px;
    text-transform: uppercase;
}

.kamakhya-hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    line-height: 1.1;
    font-weight: 400;
    margin: 0 0 30px 0;
    color: #ffffff;
}

.kamakhya-hero-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
    color: #ffffff;
}

.kamakhya-hero-button {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.kamakhya-hero-button:hover {
    background-color: #ffffff;
    color: #5d2b1e;
    /* Primary brownama. */
}

/* Responsive Hero */
@media (max-width: 1024px) {
    .kamakhya-hero-headline {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .kamakhya-hero-section {
        padding: 80px 0;
        min-height: auto;
    }

    .kamakhya-hero-headline {
        font-size: 48px;
    }

    .kamakhya-hero-subtext {
        font-size: 16px;
    }

    /* Hide forced line breaks on mobileama. */
    .kamakhya-hero-section br {
        display: none;
    }
}

@media (max-width: 425px) {
    .kamakhya-hero-headline {
        font-size: 36px;
    }

    .kamakhya-hero-button {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
}

/* -------------------------------------------------------------------------- */
/* Our Story Section */
/* -------------------------------------------------------------------------- */

.kamakhya-story-section {
    padding: 100px 0;
    background-color: #3b0a0a;
    /* Deep burgundy from image ama. */
    color: #ffffff;
    overflow: hidden;
}

.kamakhya-story-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--site-gutter);
}

.kamakhya-story-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.kamakhya-story-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #e0b44a;
    /* Golden color ama. */
    margin-bottom: 30px;
    font-weight: 400;
}

.kamakhya-story-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.kamakhya-story-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 40px;
}

.kamakhya-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-style: italic;
    color: #e0b44a;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.kamakhya-brand-tag {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Image Wrapper and Hover Animationama. */
.kamakhya-image-wrapper {
    position: relative;
    padding-right: 30px;
    padding-bottom: 30px;
}

.kamakhya-story-img {
    width: 80%;
    height: 450px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
}

.kamakhya-image-frame {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 75%;
    height: 400px;
    border: 1px solid #e0b44a;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hover Effect: Frame "comes down" littel bitama. */
.kamakhya-image-wrapper:hover .kamakhya-image-frame {
    transform: translate(15px, 15px);
}

.kamakhya-story-img-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Tablet/Mobile Story Section ama. */
@media (max-width: 1024px) {
    .kamakhya-story-grid {
        gap: 40px;
        grid-template-columns: 1fr 1fr;
    }

    /* Hide forced line breaks for all tablet and belowama. */
    .kamakhya-story-section br {
        display: none !important;
    }

    .kamakhya-story-title {
        font-size: 32px;
    }

    /* Sync frame height dynamicallyama. */
    .kamakhya-image-frame {
        height: calc(100% - 30px) !important;
        top: 30px !important;
        left: 30px !important;
    }
}

/* Mobile Story Section (Stack) */
@media (max-width: 640px) {
    .kamakhya-story-section {
        padding: 80px 0;
        min-height: auto;
    }

    .kamakhya-story-grid {
        grid-template-columns: 1fr;
        text-align: left;
        /* Keep left-alignedama. */
    }

    .kamakhya-story-title {
        font-size: 30px;
    }

    .kamakhya-story-divider {
        margin: 30px 0;
        max-width: 150px;
    }

    .kamakhya-image-wrapper {
        max-width: 100%;
        margin: 40px 0 0;
        padding-right: 20px;
        padding-bottom: 20px;
    }

    /* Make image fill the centered wrapper on mobileama. */
    .kamakhya-story-img {
        width: 100% !important;
        height: auto !important;
    }

    .kamakhya-image-frame {
        width: 100% !important;
        height: 100% !important;
        /* Fixed: restored from commentama. */
        top: 20px !important;
        left: 20px !important;
    }

    /* Hide forced line breaks on mobileama. */
    .kamakhya-story-section br {
        display: none !important;
    }
}

/* -------------------------------------------------------------------------- */
/* Newsletter Section */
/* -------------------------------------------------------------------------- */

.kamakhya-newsletter {
    width: 100%;
    padding: 100px 0;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
    text-align: center;
}

.kamakhya-newsletter-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--site-gutter);
    box-sizing: border-box;
}

.kamakhya-newsletter-content {
    max-width: 800px;
    margin: 0 auto;
}

.kamakhya-newsletter-headline {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 400;
    color: #0f172a;
    /* Brand dark maroon/brownama. */
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
}

.kamakhya-newsletter-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 40px;
    font-weight: 400;
}

.kamakhya-newsletter-form {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.kamakhya-newsletter-input-group {
    display: flex;
    gap: 15px;
}

.kamakhya-newsletter-input {
    flex-grow: 1;
    height: 55px;
    padding: 0 25px;
    border: 1px solid #e1e1e1;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #282c3f;
    outline: none;
    transition: border-color 0.3s ease;
}

.kamakhya-newsletter-input:focus {
    border-color: #410b0b;
}

.kamakhya-newsletter-button {
    height: 55px;
    padding: 0 40px;
    background-color: #410b0b;
    color: #ffffff;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kamakhya-newsletter-button:hover {
    background-color: #2a0707;
}

/* Responsive Newsletter */
@media (max-width: 768px) {
    .kamakhya-newsletter {
        padding: 60px 0;
    }

    .kamakhya-newsletter-headline {
        font-size: 32px;
    }

    .kamakhya-newsletter-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .kamakhya-newsletter-button {
        width: 100%;
    }
}

/* --- Premium Footer Section --- */
.kamakhya-footer {
    background-color: #410b0b;
    /* Deep maroon/brown from designama. */
    color: #ffffff;
    padding: 80px 0 40px;
    font-family: 'Inter', sans-serif;
}

.kamakhya-footer-container {
    max-width: 1400px;
    /* Matched with header for consistencyama. */
    margin: 0 auto;
    padding: 0 var(--site-gutter);
    /* Dynamic gutter synchronizationama. */
}

.kamakhya-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
}

.kamakhya-footer-col {
    display: flex;
    flex-direction: column;
}

/* Column 1: Brand Info */
.kamakhya-footer-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 30px;
}

.kamakhya-footer-logo-placeholder {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.kamakhya-footer-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 280px;
    margin: 0;
}

/* Titles */
.kamakhya-footer-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #ffffff;
    text-transform: uppercase;
}

/* Links */
.kamakhya-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kamakhya-footer-links li {
    margin-bottom: 15px;
}

.kamakhya-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.kamakhya-footer-links a:hover {
    color: #e0b44a;
    /* Brand goldama. */
}

/* Column 4: Social & Copyright */
.kamakhya-footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.kamakhya-social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.kamakhya-social-icon:hover {
    background: #e0b44a;
    transform: translateY(-3px);
}

.kamakhya-footer-copyright {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

/* Footer Responsiveness */
@media (max-width: 1024px) {
    .kamakhya-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .kamakhya-footer {
        padding: 60px 0 30px;
        text-align: left;
    }

    .kamakhya-footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .kamakhya-footer-container {
        padding: 0 var(--site-gutter);
    }

    .kamakhya-footer-description {
        max-width: 100%;
    }

    .kamakhya-footer-social {
        margin-bottom: 30px;
    }
}

@media (max-width: 425px) {
    .kamakhya-story-title {
        font-size: 26px;
        display: block;
    }

    .kamakhya-brand-name {
        font-size: 20px;
    }

    /* Hide forced line breaks on mobileama. */
    .kamakhya-story-section br {
        display: none !important;
    }
}