/* Hotfix: Vertical spacing for collapsible navigation title */
.title.block-collapsible-nav-title {
    margin-top: 10px;
}

/* PDP Product Description Read More / Collapsible */
#description22.collapsed {
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

#description22.collapsed::after {
    content: '';
    background: linear-gradient(rgba(245, 245, 245, 0), #ffffff);
    position: absolute;
    height: 60px;
    pointer-events: none;
    left: 0;
    right: 0;
    bottom: 0;
}

#description22.expanded {
    max-height: none;
    transition: max-height 0.3s ease;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    cursor: pointer;
    color: #ff6600;
}

/* Constrain the grid container and prevent horizontal overflow */
div[id^="subcategory-grid-"],
.subcategoryListing.slr_sbctry,
.subcategoryListing {
    max-width: 74% !important;
    overflow: hidden !important;
}

div[id^="subcategory-grid-"] .swiper-wrapper,
.subcategoryListing.slr_sbctry .swiper-wrapper,
.subcategoryListing .swiper-wrapper {
    max-width: 100% !important;
}

@media (max-width: 767px) {
    div[id^="subcategory-grid-"],
    .subcategoryListing.slr_sbctry,
    .subcategoryListing {
        max-width: 100% !important;
    }
}

/* ==========================================================================
   WARRANTY OPTION & MINICART/CHECKOUT SUMMARY STYLES (Clean Port)
   ========================================================================== */
.cart-warranty {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #e3e6ea;
}
.cart.table-wrapper .cart-warranty__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.cart.table-wrapper .cart-warranty__header img {
    width: 24px;
    height: 24px;
}
.cart.table-wrapper .cart-warranty__title,
.minicart-warranty__title,
.checkout-warranty__title {
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
}
.minicart-wrapper .minicart-items .product-item > .product > .minicart-warranty {
    flex: 0 0 100%;
    width: 100%;
    padding-top: 10px;
}
.minicart-warranty__header,
.checkout-warranty__header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.minicart-warranty__icon {
    width: 24px;
    height: 24px;
    background: url('../images/shield_icon.png') no-repeat center / contain;
}
.minicart-warranty__desc,
.checkout-warranty__desc {
    margin: 8px 0 10px;
    font-size: 11px;
    line-height: 1.4;
    color: #6b7280;
}
.minicart-warranty__desc a,
.checkout-warranty__desc a {
    color: #1a5fd0;
    text-decoration: underline;
}
.minicart-warranty__label,
.checkout-warranty__label {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 4px;
    color: #374151;
}
.minicart-warranty__dropdown,
.checkout-warranty__dropdown {
    width: 100%;
    height: 38px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    font-size: 13px;
    color: #111827;
}

/* OPC Summary Warranty Card */
.opc-block-summary .minicart-items .product-item {
    border: 2px solid #e3e6ea;
    border-radius: 10px;
    padding: 16px;
    margin: 0 0 16px;
    background: #fff;
    box-sizing: border-box;
}
.opc-block-summary .minicart-items .product-item .checkout-warranty {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    background: transparent;
}
.opc-block-summary .minicart-items .product-item .checkout-warranty::before,
.opc-block-summary .minicart-items .product-item .checkout-warranty::after {
    content: none !important;
    display: none !important;
}
.checkout-warranty__icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 44px;
    height: 48px;
    background: url('../images/shield_icon.png') no-repeat center / contain;
}
.checkout-warranty__title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
}
.checkout-warranty__desc {
    grid-column: 2;
    grid-row: 2;
    margin: 4px 0 0;
}
.checkout-warranty__label {
    grid-column: 1 / -1;
    margin: 10px 0 4px;
    font-size: 13px;
}
.checkout-warranty__dropdown {
    grid-column: 1 / -1;
    width: 100%;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}
