/* 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 (Reza Exact Match)
   ========================================================================== */
.cart-warranty {
    margin-top: 12px;
    max-width: 720px;
}

.cart.table-wrapper .cart-warranty__header {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.cart.table-wrapper .cart-warranty__header img {
    width: 40px !important;
    max-width: none;
}

.cart.table-wrapper .cart-warranty__title {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.2;
}

.cart.table-wrapper .cart-warranty__title strong {
    font-weight: 700;
    color: #000;
}

.cart.table-wrapper .cart-warranty__title span {
    font-weight: 700;
    color: #f26522;
}

.cart.table-wrapper .cart-warranty__desc {
    margin: 8px 0 12px;
    font-size: 12px;
    line-height: 1.4;
}

.cart.table-wrapper .cart-warranty__desc a {
    text-decoration: underline;
    color: inherit;
}

.cart.table-wrapper .cart-warranty__label {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

.cart.table-wrapper .cart-warranty__select {
    max-width: 100%;
}

.cart.table-wrapper .cart-warranty__dropdown {
    grid-column: 1 / -1;
    width: 100%;
    height: 44px;
    padding: 0 38px 0 14px;
    font-size: 12px;
    color: #111;
    border: 1px solid #c9d3e0;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background: #f1f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none' stroke='%23222' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}

.minicart-wrapper .minicart-items .product-item > .product > .minicart-warranty {
    flex: 0 0 100%;
    width: 100%;
    padding-top: 10px;
}

.minicart-warranty__header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.minicart-warranty__title {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.2;
}

.minicart-warranty__title strong {
    color: #000;
}

.minicart-warranty__title span {
    color: #f26522;
    font-weight: 700;
}

.minicart-warranty__icon {
    flex: 0 0 32px;
    height: 32px;
    background: url('../images/shield_icon.png') no-repeat center / contain;
}

.minicart-warranty__desc {
    margin: 6px 0 8px;
    font-size: 10px;
    line-height: 1.4;
}

.minicart-warranty__desc a {
    text-decoration: underline;
    color: inherit;
}

.minicart-warranty__label {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 4px;
}

.minicart-warranty__dropdown {
    grid-column: 1 / -1;
    width: 100%;
    height: 44px;
    padding: 0 38px 0 14px;
    font-size: 12px;
    color: #111;
    border: 1px solid #c9d3e0;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background: #f1f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none' stroke='%23222' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}

#minicart-content-wrapper.minicart-is-loading {
    position: relative;
    pointer-events: none;
}

#minicart-content-wrapper.minicart-is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .7);
}

#minicart-content-wrapper.minicart-is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 101;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #ddd;
    border-top-color: #f26522;
    border-radius: 50%;
    animation: minicart-spin .8s linear infinite;
}

@keyframes minicart-spin {
    to { transform: rotate(360deg); }
}

/* OPC Summary Warranty Card */
.checkout-warranty {
    margin: 8px 0;
}

.checkout-warranty__header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-warranty__title {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.2;
}

.checkout-warranty__title strong {
    color: #000;
}

.checkout-warranty__title span {
    color: #f26522;
    font-weight: 700;
}

.checkout-warranty__desc {
    margin: 8px 0 10px;
    font-size: 11px;
    line-height: 1.4;
}

.checkout-warranty__desc a {
    text-decoration: underline;
    color: inherit;
}

.checkout-warranty__label {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 4px;
}

.checkout-warranty__dropdown {
    grid-column: 1 / -1;
    width: 100%;
    height: 44px;
    padding: 0 38px 0 14px;
    font-size: 12px;
    color: #111;
    border: 1px solid #c9d3e0;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background: #f1f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none' stroke='%23222' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}

.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 .product-item {
    flex-wrap: wrap;
}

.checkout-cart-index .page-title-wrapper {
    padding-top: 20px;
}
