/* 
    PRODUCT DETAILS STYLES
    Project: Mafra India
    File: public/assets/css/product.css
*/

:root {
    --primary-color: #c70909;
    /* Matching brand red from header */
    --primary-hover: #a40707;
    --secondary-color: #232f3e;
    --accent-color: #febd69;
    --success-color: #008a00;
    --light-bg: #f8f9fa;
    --border-color: #e2e8f0;
    --text-dark: #1a1a1a;
    --text-muted: #64748b;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 36px rgba(0, 0, 0, 0.13);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #f0f2f5;
}

/* -------- Typography & Helpers -------- */
.fw-black {
    font-weight: 900;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 10px;
    color: #ccc;
}

.hover-translate-y:hover {
    transform: translateY(-3px);
}

/* -------- Shared Section Headers -------- */
.hp-tag {
    display: inline-block;
    background: rgba(199, 9, 9, 0.08);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
    border: 1px solid rgba(199, 9, 9, 0.1);
}

.btn-mafra {
    background-color: var(--primary-color);
    color: #fff !important;
    border: none;
    transition: all 0.3s ease;
}

.btn-mafra:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 9, 9, 0.2);
}

.btn-mafra-dark {
    background-color: var(--secondary-color);
    color: #fff !important;
    border: none;
    transition: all 0.3s ease;
}

.btn-mafra-dark:hover {
    background-color: #1a2533;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hp-header-left span {
    color: var(--primary-color);
}

/* -------- Product Details Structure -------- */
.product_details_main {
    border: none;
    overflow: hidden;
}

.product_title_head {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2;
    color: #111;
    font-weight: 800;
}

.final_price {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

/* -------- Gallery & Zoom -------- */
.product-gallery-sticky {
    position: sticky;
    top: 100px;
}

.zoomWrapper {
    cursor: crosshair;
    background: #fff;
}

.elevatezoom-gallery {
    transition: all 0.2s;
    opacity: 0.6;
}

.elevatezoom-gallery.active,
.elevatezoom-gallery:hover {
    opacity: 1;
    border-color: var(--primary-color) !important;
}

.s-tab-zoom .owl-item {
    display: flex;
    justify-content: center;
}


/* --- Trust Benefits --- */
.trust_benefits {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px 10px;
    border: 1px dashed var(--border-color);
}

.benefit-item>div:first-child {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.benefit-item:hover>div:first-child {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.benefit-item .tiny-text {
    font-size: 11px;
    color: var(--text-dark);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Premium Carousel Arrows --- */
.product_carousel {
    overflow: visible !important;
}

.product_carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px !important;
    height: 44px !important;
    background: #fff !important;
    color: var(--text-dark) !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10;
    border: 1px solid #f1f5f9 !important;
}

.product_carousel .owl-nav button:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(199, 9, 9, 0.25) !important;
    transform: translateY(-50%) scale(1.1);
}

.product_carousel .owl-nav .owl-prev {
    left: -15px !important;
}

.product_carousel .owl-nav .owl-next {
    right: -15px !important;
}

.product_carousel .owl-nav {
    margin: 0 !important;
    /* pointer-events: none; */
}

.product_carousel .owl-nav button {
    pointer-events: auto;
}

/* -------- Related Items Section -------- */
.related_products_area .section_title h2 {
    font-size: 24px;
    position: relative;
    padding-bottom: 12px;
}

.related_products_area .section_title h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* -------- Variants -------- */
.variant_chip {
    background: #fff;
    border: 2px solid var(--border-color);
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.variant_chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.variant_chip.active {
    background-color: #fff1f1;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(199, 9, 9, 0.1);
}

/* -------- Stock Indicator -------- */
.pulse-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.33);
    }

    80%,
    100% {
        opacity: 0;
    }
}

/* -------- Tabs Styling -------- */
.product-tabs-nav {
    background-color: #fff;
    border-bottom: 2px solid #f1f5f9;
}

.product-tabs-nav .nav-link {
    color: var(--text-muted);
    border-radius: 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 14px;
}

.product-tabs-nav .nav-link:hover {
    color: var(--primary-color);
    background: #f8fafc;
}

.product-tabs-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: transparent !important;
    border-bottom-color: var(--primary-color);
}

/* -------- Review Items -------- */
.review-item {
    transition: background 0.3s;
}

.review-item:hover {
    background: rgba(0, 0, 0, 0.01);
}

.avatar {
    flex-shrink: 0;
}

/* -------- Responsive Adjustments -------- */
@media (max-width: 991px) {
    .product-gallery-sticky {
        position: static;
        margin-bottom: 2rem;
    }

    .product_title_head {
        font-size: 1.75rem;
    }

    .final_price {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .product_details_main {
        padding: 1.5rem !important;
    }

    .actions_grid .row>div {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}