/* Font import removed */

/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
    --milnil-primary: #0F1111;
    /* Deep Black */
    --milnil-accent: #29166f;
    /* MilNil Blue */
    --milnil-link: #007185;
    /* Amazon Blue */
    --milnil-border: #E7E7E7;
    /* Light Grey */
    --milnil-bg-light: #F8F9FA;
    /* Very Light Grey */
    --milnil-text: #333333;
    /* Dark Grey */
    --milnil-transition: all 0.3s ease;
}

.milnil-specs-grid,
.milnil-accordion-item,
.milnil-key-features-wrap,
.woocommerce-tabs ul.tabs li a {
    box-sizing: border-box;
    box-sizing: border-box;
    font-family: inherit !important;
    /* Inherit from Theme */
}

/* ==========================================================================
   2-COLUMN GRID SYSTEM
   ========================================================================== */
.milnil-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    /* Generous spacing */
    width: 100%;
    margin-top: 25px;
}

@media (max-width: 900px) {
    .milnil-specs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   CLASSIC MODERN ACCORDION
   ========================================================================== */
.milnil-accordion-item {
    border: none;
    border-bottom: 1px solid var(--milnil-border);
    background: #fff;
    margin-bottom: 0;
    transition: background-color 0.2s;
}

/* First item border fix */
.milnil-accordion-item:first-child {
    border-top: 1px solid var(--milnil-border);
}

/* Summary Header */
.milnil-accordion-item summary {
    font-size: 16px;
    font-weight: 600;
    color: #29166f;
    /* MilNil Blue Default */
    background-color: #f9f9f9;
    /* Very Light Gray Background */
    padding: 15px 20px;
    /* Padding for bar look */
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-radius: 4px;
    /* Slight radius */
    margin-bottom: 20px;
    /* Space between accordions */
}

/* Remove default marker */
.milnil-accordion-item summary::-webkit-details-marker {
    display: none;
}

/* Title Wrap */
.milnil-acc-title-wrap {
    display: flex;
    align-items: center;
}

/* Leading Icon */
.milnil-acc-icon {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    color: inherit;
}

/* Right Arrow Icon */
.milnil-acc-arrow {
    width: 20px;
    height: 20px;
    color: inherit;
    transition: transform 0.3s ease;
}

/* Open State Animation */
.milnil-accordion-item[open] .milnil-acc-arrow {
    transform: rotate(180deg);
}

.milnil-accordion-item[open] summary {
    border-bottom: none;
    /* No extra border needed with separate look */
    margin-bottom: 0;
    /* Attach to content or keep separate? Let's keep separate */
    border-radius: 4px 4px 0 0;
    /* Radius on top only when open if connected */
    background-color: #f2f2f2;
    /* Slightly darker (prev default) when open */
}

.milnil-accordion-content {
    padding: 20px;
    border: 1px solid #f9f9f9;
    /* Match header BG or slightly darker? Let's use the header BG color for border for seamlessness */
    border-top: none;
    background: #fff;
    animation: fadeIn 0.4s ease;
    border-radius: 0 0 4px 4px;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* ==========================================================================
   PREMIUM SPECS TABLE
   ========================================================================== */
.milnil-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    color: var(--milnil-text);
}

.milnil-specs-table tr {
    transition: background-color 0.2s;
}

.milnil-specs-table tr:hover {
    background-color: #fdfdfd;
}

.milnil-specs-table th {
    text-align: left;
    padding: 12px 20px 12px 0;
    font-weight: 500;
    color: #555;
    width: 40%;
    vertical-align: top;
    border-bottom: 1px solid #f5f5f5;
}

.milnil-specs-table td {
    padding: 12px 0;
    color: #111;
    font-weight: 400;
    vertical-align: top;
    border-bottom: 1px solid #f5f5f5;
}

.milnil-specs-table tr:last-child th,
.milnil-specs-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   KEY FEATURES (BULLET POINTS)
   ========================================================================== */
.milnil-key-features-wrap h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--milnil-primary);
}

.milnil-bullets-content ul {
    margin: 0 0 0 18px;
    padding: 0;
}

.milnil-bullets-content li {
    list-style-type: none !important;
    position: relative;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--milnil-text);
    padding-left: 15px;
}

/* Custom Bullet */
.milnil-bullets-content li::before {
    content: '•';
    color: var(--milnil-accent);
    font-size: 20px;
    position: absolute;
    left: -15px;
    top: -4px;
}

/* ==========================================================================
   MODERN TABS (THEME OVERRIDE)
   ========================================================================== */
/* ==========================================================================
   MODERN TABS (REMOVED - MOVED TO THEME CUSTOM.CSS)
   ========================================================================== */
/* The styles for .woocommerce-tabs have been moved to the theme's custom.css file
   to allow for easier customization and to prevent conflicts. */


/* HIDE Native WooCommerce Attributes Table (Weight/Dimensions) */
/* User requested to remove data "above Additional Information" */
.woocommerce-product-details__short-description+.product_meta,
/* Sometimes appearing here */
.product_meta,
#tab-additional_information .woocommerce-product-attributes {
    display: none !important;
}

/* ==========================================================================
   PREMIUM "ADDITIONAL INFO" TABLE STYLES
   ========================================================================== */
.milnil-unused-meta h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--milnil-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--milnil-accent);
    display: inline-block;
    padding-bottom: 5px;
}

.milnil-specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    /* Rounded corners */
    overflow: hidden;
}

.milnil-specs-table tr:nth-child(odd) {
    background-color: #f8f9fa;
    /* Zebra striping */
}

.milnil-specs-table tr:hover {
    background-color: #f1f3f5;
}

.milnil-specs-table th,
.milnil-specs-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.milnil-specs-table th {
    width: 35%;
    color: #555;
    font-weight: 600;
    background-color: #fff;
    /* Keep headers clean or slight gray? Let's go clean */
    border-right: 1px solid #f0f0f0;
}

.milnil-specs-table td {
    color: #111;
    font-weight: 400;
}

.milnil-specs-table tr:last-child th,
.milnil-specs-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   VARIANT CARDS
   ========================================================================== */
.milnil-variant-wrapper {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 4px;
}

.milnil-variant-title {
    font-size: 14px;
    margin: 0 0 10px;
    color: #333;
    font-weight: 400;
}

.milnil-variant-title strong {
    font-weight: 700;
    color: #000;
}

.milnil-variant-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.milnil-variant-card {
    display: block;
    border: 1px solid #ddd;
    border-radius: 2px;
    width: 110px;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
    overflow: hidden;
}

.milnil-variant-card:hover {
    border-color: #aaa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.milnil-variant-card.active {
    border: 2px solid #29166f;
    /* MilNil Blue border for selection */
    margin: -1px;
    /* Offset for thicker border */
    box-shadow: 0 0 3px rgba(41, 22, 111, 0.2);
}

.milnil-v-img-box {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: #fff;
}

.milnil-v-img-box img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.milnil-v-details {
    padding: 5px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    line-height: 1.2;
}

.milnil-v-price-sale {
    color: #29166f;
    font-weight: 700;
}

.milnil-v-price-reg {
    color: #565959;
    text-decoration: line-through;
    font-size: 11px;
}

/* Hide unneeded generic WooCommerce price styling inside our cards if checking conflicts */
.milnil-v-details .woocommerce-Price-amount {
    display: inline-block;
}

/* ==========================================================================
   PRICE & SALE BADGE
   ========================================================================== */
.product .summary p.price {
    font-size: 26px !important;
    color: #29166f !important;
    /* MilNil Blue */
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product .summary p.price del {
    font-size: 14px;
    color: #565959 !important;
    opacity: 1 !important;
}

.product .summary p.price ins {
    text-decoration: none;
    font-weight: 700;
}

/* Custom Sale Badge (injected via PHP) */
.milnil-sale-badge {
    background-color: #29166f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
    margin-left: 10px;
    /* Spacing from price */
    animation: milnilPulse 2s infinite;
    /* Infinity Animation */
}

@keyframes milnilPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(41, 22, 111, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(41, 22, 111, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(41, 22, 111, 0);
    }
}


/* ==========================================================================
   VARIANT TEXT BUTTONS (CTA)
   ========================================================================== */
.milnil-variant-grid.milnil-style-cta {
    gap: 8px;
    /* Tighter gap for buttons */
}

.milnil-variant-cta {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 60px;
    cursor: pointer;
}

.milnil-variant-cta:hover {
    background: #f0f2f2;
    border-color: #aaa;
    color: #111;
}

.milnil-variant-cta.active {
    border: 2px solid #29166f;
    font-weight: 700;
    color: #000;
    margin: -1px;
    /* Offset border width */
    background: #f8f8fe;
    /* Very light blue tint */
    box-shadow: 0 0 3px rgba(41, 22, 111, 0.2);
}

.milnil-variant-cta span {
    display: block;
    line-height: normal;
}


/* FORCE PRICE STRIKETHROUGH */
.milnil-v-price-reg,
.milnil-v-price-reg * {
    text-decoration: line-through !important;
    color: #565959 !important;
}

/* ==========================================================================
   FORCE USER'S HTML CAROUSEL ALIGNMENT (STATIC GRID)
   ========================================================================== */

/* --- 1. TRUST BAR (6 Columns, Icon Top) --- */
.quality_main .ult-carousel-wrapper>div {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    justify-content: center !important;
    grid-gap: 0 !important;
    max-width: 1200px !important;
    /* Constrain Width */
    margin: 0 auto !important;
}

.quality_main .ult-item-wrap {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 16.666% !important;
    flex: 0 0 16.666% !important;
    box-sizing: border-box !important;
    padding: 0 5px !important;
    margin-bottom: 20px !important;
}

/* Tablet: 3 columns */
@media screen and (max-width: 1024px) {
    .quality_main .ult-item-wrap {
        width: 33.333% !important;
        flex: 0 0 33.333% !important;
    }
}

/* Mobile: 2 columns */
@media screen and (max-width: 600px) {
    .quality_main .ult-item-wrap {
        width: 50% !important;
        flex: 0 0 50% !important;
    }
}


/* --- 2. PRODUCT SPECS LIST (4 Columns, Icon Left) --- */
.pro_detail {
    padding: 0 !important;
}

.milnil-product-specs-list {
    clear: both !important;
}

.milnil-product-specs-list .ult-carousel-wrapper>div {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    justify-content: space-between !important;
    /* Spread them out */
    grid-gap: 0 !important;
    max-width: 1200px !important;
    /* Constrain Width */
    margin: 0 auto !important;
}

.milnil-product-specs-list .ult-item-wrap {
    display: flex !important;
    align-items: center;
    width: 25% !important;
    flex: 0 0 25% !important;
    box-sizing: border-box !important;
    padding: 0 5px !important;
    margin-bottom: 15px !important;
    justify-content: space-between;
    align-content: center;
}

.milnil-product-specs-list .w-iconbox {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    width: 100% !important;
}

/* Ensure icon text alignment is correct */
.ult-item-wrap .w-iconbox {
    text-align: left !important;
    width: 100% !important;
    align-items: center !important;
}

.pro_detail .ult-item-wrap .w-iconbox {
    text-align: left !important;
}

.milnil-product-specs-list .w-iconbox-icon {
    margin-bottom: 0 !important;
    margin-right: 15px !important;
    /* Space between icon and text */
}

/* Small Laptop/Tablet: 2 columns */
@media screen and (max-width: 1024px) {
    .milnil-product-specs-list .ult-item-wrap {
        width: 50% !important;
        flex: 0 0 50% !important;
    }
}

/* Mobile: 2 columns (Keep tight) */
@media screen and (max-width: 600px) {
    .milnil-product-specs-list .ult-item-wrap {
        width: 50% !important;
        flex: 0 0 50% !important;
    }
}

/* Quality Main Section (Gray Wrapper) */
.quality_main {
    clear: both;
    width: 100%;
    display: block;
    overflow: hidden;
    background: #fafafa;
    margin: 0 auto 40px;
    padding: 0;
}

.quality_main .l-section.height_medium {
    padding-top: 1.5rem !important;
    padding-bottom: 1rem !important;
    padding: 1.5rem 0 1rem 0 !important;
}

/* 3. Ensure content is centered */
.ult-item-wrap .w-iconbox {
    text-align: center !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
}

.ult-item-wrap .w-iconbox-icon {
    margin-bottom: 10px !important;
}

.ult-item-wrap img {
    margin: 0 auto !important;
    display: block !important;
}

/* Target specifically for single product page to reduce gap */
.single-product .w-iconbox-text p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: normal !important;
    padding-top: 0 !important;
}