/**
 * Sweets Website - Cart / Product Details Page
 * =============================================================
 * Premium styling for the product detail page (cart.php)
 * =============================================================
 */

/* ── PAGE WRAPPER ── */
.p-cart-page {
    background-color: var(--clr-bg-warm, #fdf8f2);
}

/* ══════════════════════════════════════════════════════
   SHOPPING CART PAGE  (.p-shopping-cart-page)
   ══════════════════════════════════════════════════════ */
.p-shopping-cart-page {

    background-image: url("../../images/banners/homepage\ bg.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* ── Breadcrumb ── */
.sc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.sc-breadcrumb__link {
    color: #e6a371;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.sc-breadcrumb__link:hover { color: #7b1d1d; }

.sc-breadcrumb__sep { color: #ccc; }

.sc-breadcrumb__current {
    color: #d67a18;
    font-weight: 700;
}

/* ── Page Title ── */
.sc-page-title {
    font-family: var(--ff-heading, 'Quando', serif);
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    color: #4a1c1d;
    font-weight: 700;
}

.sc-page-title__count {
    color: #A9431E;
}

/* ── Cart Items List ── */
.sc-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── Cart Item Card ── */
.sc-item-card {
    display: flex;
    align-items: center;
    gap: 1rem;
      background: #fdf1e1;
    border: 1.5px solid #e8d8c8;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.3s ease;
}

.sc-item-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}

/* Image */
.sc-item-card__img-wrap {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fdf6ed;
    border: 1px solid #eed9c4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-item-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

/* Info */
.sc-item-card__info {
    flex: 1;
    min-width: 0;
}

.sc-item-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.3rem;
}

.sc-item-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.sc-item-card__name a:hover { color: #7b1d1d; }

.sc-item-card__weight {
    font-size: 0.88rem;
    color: #888;
    margin: 0;
}

/* Qty Controls */
.sc-item-card__qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid #ddd;
    border-radius: 50px;
    padding: 4px 12px;
    background: #fdfaf5;
    flex-shrink: 0;
}

.sc-qty-btn {
    color: #444;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.sc-qty-btn:hover { color: #7b1d1d; }

.sc-qty-val {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

/* Delete Button */
.sc-item-card__delete {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.25s;
    flex-shrink: 0;
}

.sc-item-card__delete:hover { color: #dc2626; }

/* ── Empty State ── */
.sc-empty__icon { font-size: 3rem; color: #ccc; }
.sc-btn-shop {
    display: inline-block;
    background: #7b1d1d;
    color: #fff;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}
.sc-btn-shop:hover { background: #4a1c1d; color: #fff; }

/* ── Order Summary Panel ── */
.sc-summary {
  background: #F9F6F0;
    border-radius: 16px;
    border: 1px solid #e8d8c8;
    padding: 2rem;
    position: sticky;
    top: 110px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.sc-summary__title {
    font-family: var(--ff-heading, 'Quando', serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #7b1d1d;
    margin-bottom: 1.5rem;
}

/* Summary Lines */
.sc-summary__lines {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sc-summary__line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #555;
}

.sc-summary__line span:last-child {
    font-weight: 700;
    color: #333;
}

.sc-summary__line--discount span:last-child { color: #16a34a; }

.sc-summary__line--total {
    font-size: 1.05rem;
    color: #333;
    font-weight: 700;
}

.sc-summary__line--total span:last-child {
    font-size: 1.25rem;
    color: #7b1d1d;
    font-weight: 800;
}

.sc-summary__divider {
    border-color: #ede0d4;
    opacity: 1;
    margin: 0.5rem 0;
}

/* Checkout Button */
.sc-summary__checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(90deg, #7b1d1d 0%, #d67a18 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.875rem;
    box-shadow: 0 6px 20px rgba(123,29,29,0.25);
}

.sc-summary__checkout-btn:hover {
    background: linear-gradient(90deg, #601515 0%, #b5600e 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(123,29,29,0.3);
}

/* Coupon Link */
.sc-summary__coupon-link {
    display: block;
    text-align: center;
    color: #A9431E;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.sc-summary__coupon-link:hover { color: #7b1d1d; text-decoration: underline; }

/* ── Trust Badges ── */
.sc-trust-row {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ede0d4;
    padding-top: 1.25rem;
    gap: 0.5rem;
}

.sc-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    font-size: 0.72rem;
    color: #888;
    flex: 1;
}

.sc-trust-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #e0ccc0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b1d1d;
    font-size: 1.1rem;
    background: #fdf6ed;
}

/* ── Responsive ── */
@media (max-width: 576px) {
    .sc-item-card { 
        flex-wrap: wrap; 
        gap: 0.75rem; 
        position: relative; /* For absolute positioning of delete btn */
    }
    .sc-item-card__img-wrap { width: 72px; height: 72px; }
    .sc-summary { padding: 1.5rem; }
}

/* ── Extra Small (max 400px) ── */
@media (max-width: 400px) {
    .p-shopping-cart-page .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .sc-page-title {
        font-size: 1.45rem;
        margin-bottom: 1rem;
    }

    .sc-item-card {
        padding: 0.85rem;
        gap: 0.75rem;
        display: flex;
        flex-wrap: wrap;
    }

    .sc-item-card__img-wrap {
        width: 68px;
        height: 68px;
        flex: 0 0 68px;
    }

    .sc-item-card__info {
        flex: 1;
        min-width: 140px;
    }

    .sc-item-card__name {
        font-size: 0.95rem;
        padding-right: 25px; /* Space for absolute delete btn */
    }

    .sc-item-card__qty {
        width: 100%;
        margin-top: 5px;
        justify-content: center;
        order: 3;
        background: #fdfaf5;
    }

    .sc-item-card__delete {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
    }
}

@media (max-width: 375px) {
    .p-shopping-cart-page .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .sc-item-card {
        padding: 0.75rem 0.8rem;
        gap: 0.6rem;
    }

    .sc-item-card__img-wrap {
        width: 62px;
        height: 62px;
        flex: 0 0 62px;
    }

    .sc-item-card__name {
        font-size: 0.9rem;
    }

    .sc-item-card__weight {
        font-size: 0.8rem;
    }

    .sc-item-card__qty {
        padding: 3px 9px;
        gap: 0.4rem;
    }

    .sc-summary {
        padding: 1.15rem;
        position: static;
        top: auto;
    }

    .sc-summary__title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .sc-summary__line {
        font-size: 0.9rem;
    }

    .sc-summary__line--total span:last-child {
        font-size: 1.1rem;
    }

    .sc-summary__checkout-btn {
        padding: 11px;
        font-size: 0.95rem;
    }
}

/* ── Tiny Screens (max 320px) ── */
@media (max-width: 320px) {
    .sc-page-title {
        font-size: 1.3rem;
    }

    .sc-item-card {
        padding: 0.75rem;
        gap: 0.6rem;
    }

    .sc-item-card__img-wrap {
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
    }

    .sc-item-card__info {
        min-width: 120px;
    }

    .sc-item-card__name {
        font-size: 0.9rem;
    }

    .sc-qty-btn {
        font-size: 1rem;
    }

    .sc-qty-val {
        min-width: 22px;
        font-size: 0.9rem;
    }

    .sc-item-card__qty {
        padding: 3px 10px;
    }

    .sc-summary {
        padding: 1.1rem;
    }

    .sc-summary__title {
        font-size: 1.25rem;
    }

    .sc-summary__checkout-btn {
        padding: 12px;
        font-size: 1rem;
    }
}


/* ── BREADCRUMB ── */
.c-breadcrumb {
    padding: 0;
    margin: 0;
}

.c-breadcrumb__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.c-breadcrumb__item {
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.c-breadcrumb__item+.c-breadcrumb__item::before {
    content: '/';
    color: #ccc;
}

.c-breadcrumb__link {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.c-breadcrumb__link:hover {
    color: #7b1d1d;
}

.c-breadcrumb__item--active {
    color: #333;
    font-weight: 600;
}

/* ── PRODUCT HERO SECTION ── */
.c-product-hero {
    padding: 0;
}

/* Vertical Thumbnails */
.c-thumb-gallery {
    width: 80px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .c-product-hero__gallery-wrap {
        flex-direction: column; /* Thumbnails on TOP on mobile */
    }
    .c-thumb-gallery {
        width: 100% !important;
        height: auto !important;
    }
    .c-thumb-gallery .swiper-wrapper {
        flex-direction: row;
        display: flex;
        gap: 12px;
        overflow-x: auto;
    }
    .c-thumb-item {
        width: 64px !important;
        height: 64px !important;
        flex-shrink: 0;
    }
}

.c-thumb-item {
    width: 72px;
    height: 72px;
    border: 1.5px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.c-thumb-item:hover,
.swiper-slide-thumb-active .c-thumb-item {
    border-color: #7b1d1d;
    box-shadow: 0 4px 15px rgba(123, 29, 29, 0.12);
}

.c-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Main Product Image */
.c-main-image-container {
    background: #fdf8f2;
    border: 1px solid #eee !important;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 15px;
}

/* Navigation Arrows */
.c-product-gallery-next,
.c-product-gallery-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
}

.c-product-gallery-next:hover,
.c-product-gallery-prev:hover {
    background: #7b1d1d;
    color: #fff;
}

.c-product-gallery-next::after,
.c-product-gallery-prev::after {
    font-size: 14px;
    font-weight: 900;
}

.c-product-gallery-next { right: 15px; }
.c-product-gallery-prev { left: 15px; }

/* --- PRODUCT DETAILS BLOCK --- */
.c-product-details__title {
    font-size: 38px;
    color: #7b1d1d;
    font-family: var(--ff-heading, serif);
    font-weight: 700;
}

.c-product-rating-badge {
    background: #fdfaf5;
    padding: 6px 16px;
    border-radius: 4px;
}

.c-rating-stars {
    color: #f59e0b;
    font-size: 18px;
    display: flex;
    gap: 4px;
}

.c-rating-score {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.c-rating-divider {
    width: 1px;
    height: 24px;
    background: #eee;
}

.c-rating-count {
    color: #666;
    font-size: 18px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.c-product-price-block {
    margin: 20px 0;
}

.c-price-now {
    font-size: 38px;
    font-weight: 800;
    color: #000;
}

.c-price-old {
    font-size: 26px;
    color: #666;
    text-decoration: line-through;
    font-weight: 500;
}

.c-product-details__description {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.c-selector-label {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* ── WEIGHT SELECTOR ── */
.c-weight-btn {
    /* padding: 10px 30px; */
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    background: #fdfaf5;
    cursor: pointer;
    transition: all 0.25s;
}

.c-weight-btn:hover {
    border-color: #7b1d1d;
    background: #fff;
}

.c-weight-btn.active {
    background: #7b1d1d;
    border-color: #7b1d1d;
    color: #fff;
}

/* ── QUANTITY SELECTOR ── */
.c-quantity-selector {
    border: 1.5px solid #ddd !important;
    border-radius: 8px !important;
    background: #fff;
    padding: 4px 12px;
}

.c-quantity-selector span {
    font-size: 18px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.c-delivery-callout {
    color: #555;
    font-size: 16px;
    font-weight: 500;
}

/* ── ACTION BUTTONS ── */
.c-btn-add-cart {
    background: #7b1d1d;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
}

.c-btn-add-cart:hover {
    background: #601515;
    transform: translateY(-2px);
}

.c-btn-buy-now {
    background: linear-gradient(90deg, #7A1E1E 0%, #C65D00 100%);
    color: #fff;
    border: 1px solid #9a3d07;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
}

.c-btn-buy-now:hover {
    background: linear-gradient(90deg, #681717 0%, #ae4f00 100%);
    border-color: #7f3206;
    transform: translateY(-2px);
}

/* ── RELATED PRODUCTS ── */
.c-related-products {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.c-related-card {
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.c-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.c-related-card__img-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fdfaf7;
}

.c-related-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.c-related-card:hover .c-related-card__img-wrap img {
    transform: scale(1.06);
}

/* Related Badges */
.c-related-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 5;
    letter-spacing: 0.5px;
}

.c-related-badge--discount {
    background: #dc2626;
    color: #fff;
}

.c-related-badge--bestseller {
    background: #f59e0b;
    color: #fff;
}

/* Related Card Button */
.c-related-card__btn {
    background: linear-gradient(90deg, #7A1E1E 0%, #C65D00 100%);
    color: #fff !important;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 700;
    transition: all 0.25s;
    box-shadow: 0 4px 10px rgba(122, 30, 30, 0.15);
}

.c-related-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(122, 30, 30, 0.25);
    opacity: 0.95;
}

/* ── PRODUCT INFORMATION SECTION ── */
.c-product-info-section {
    padding: 3rem 0;
}

.c-section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

/* Feature Cards */
.c-feature-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.c-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.c-feature-card__icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(123, 29, 29, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-feature-card__icon-wrap i {
    font-size: 24px;
    color: #7b1d1d;
}

.c-feature-card__icon-wrap img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* ── DETAILED PRODUCT INFO ACCORDION ── */
.c-accordion-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.c-accordion-header {
    background: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.c-accordion-header:hover {
    background: #fdfaf7;
}

.c-accordion-header h5 {
    text-transform: capitalize;
    color: #333;
}

.c-accordion-icon i {
    color: #7b1d1d;
    font-size: 18px;
    transition: transform 0.3s;
}

.c-accordion-header[aria-expanded="true"] .c-accordion-icon i,
.c-accordion-header:not(.collapsed) .c-accordion-icon i {
    transform: rotate(45deg);
}

.c-accordion-body {
    font-size: 15px;
    line-height: 1.7;
}

/* ── FEATURE ITEM ICONS ── */
.c-feature-item-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.c-feature-item-icon i {
    font-size: 20px;
    color: #7b1d1d;
}

/* ── SUBSCRIBE BOX ── */
.c-detailed-subscribe-box {
    background: linear-gradient(135deg, #7b1d1d 0%, #4a0e0e 100%);
}

.c-subscribe-title {
    cursor: #ffffff;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

.c-subscribe-text {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    line-height: 1.6;
}

.c-subscribe-btn {
    color: #7b1d1d !important;
    font-size: 15px;
    transition: all 0.25s;
}

.c-subscribe-btn:hover {
    background: #f5f0ea !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* ── TRUST STRIP ── */
.c-trust-strip {
    padding: 1.5rem 0;
    background: #fff;
}

.c-trust-icon-wrap {
    width: 38px;
    height: 38px;
    background: rgba(123, 29, 29, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.c-trust-icon-wrap i {
    font-size: 16px;
    color: #7b1d1d;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet (max 991px) ── */
@media (max-width: 991.98px) {
    .c-main-image-container {
        min-height: 350px;
    }

    .c-main-image-container img {
        max-height: 380px;
    }

    .c-thumb-gallery {
        width: 70px;
    }

    .c-thumb-item {
        width: 62px;
        height: 62px;
    }
}

/* ── Mobile (max 767px) ── */
@media (max-width: 767.98px) {
    .c-product-hero .row {
        flex-direction: column;
    }

    .c-product-hero__gallery-wrap {
        flex-direction: column-reverse !important;
    }

    .c-thumb-gallery {
        display: none !important;
    }

    .c-main-image-container {
        min-height: 280px;
        border-radius: 12px !important;
    }

    .c-main-image-container img {
        max-height: 320px;
        padding: 15px;
    }

    .c-product-details h1 {
        font-size: 28px !important;
    }

    .c-weight-btn {
        padding: 8px 18px;
        font-size: 14px;
    }

    .c-feature-card {
        padding: 1rem !important;
    }

    .c-feature-card__icon-wrap {
        width: 44px;
        height: 44px;
    }

    .c-feature-card__icon-wrap i {
        font-size: 20px;
    }

    .c-feature-card h5 {
        font-size: 14px !important;
    }

    .c-feature-card p {
        font-size: 12px !important;
    }

    .c-related-card__img-wrap {
        aspect-ratio: 4 / 3;
    }

    .c-related-card h5 {
        font-size: 13px !important;
    }

    .c-related-card__btn {
        font-size: 12px;
        padding: 6px !important;
    }

    .c-related-badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    .c-trust-strip .fw-bold {
        font-size: 11px !important;
    }

    .c-trust-icon-wrap {
        width: 32px;
        height: 32px;
    }

    .c-trust-icon-wrap i {
        font-size: 14px;
    }

    .c-product-info-section h2 {
        font-size: 24px !important;
    }

    .c-product-detailed-info h2 {
        font-size: 28px !important;
    }
}

/* ── Small Mobile (max 575px) ── */
@media (max-width: 425px) {
    .p-cart-page {
        padding-top: 1rem !important;
        padding-bottom: 2rem !important;
    }

    .c-breadcrumb__item {
        font-size: 12px;
    }

    .c-product-details h1 {
        font-size: 24px !important;
    }

    .c-product-details .h1 {
        font-size: 24px !important;
    }

    .c-product-details .h3 {
        font-size: 16px !important;
    }

    .c-product-details .text-muted {
        font-size: 13px !important;
    }

    .c-weight-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .c-quantity-selector {
        height: 40px !important;
    }

    .c-btn-cart {
        font-size: 14px !important;
        padding: 10px !important;
    }

    .c-nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .c-main-image-container {
        min-height: 240px;
    }

    .c-main-image-container img {
        max-height: 260px;
        padding: 10px;
    }

    .c-related-products h2 {
        font-size: 24px !important;
    }

    .c-info-features h5 {
        font-size: 14px !important;
    }

    .c-info-features p {
        font-size: 12px !important;
    }

    .c-feature-item-icon {
        width: 40px;
        height: 40px;
    }

    .c-feature-item-icon i {
        font-size: 16px;
    }

    .c-subscribe-title {
        font-size: 1.2rem;
    }

    .c-subscribe-text {
        font-size: 0.82rem;
    }
}

/* ── Extra Small (max 400px) ── */
@media (max-width: 400px) {
    .c-product-details h1 {
        font-size: 22px !important;
    }

    .c-weight-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .c-main-image-container {
        min-height: 200px;
    }

    .c-main-image-container img {
        max-height: 220px;
    }
}

/* --- NEW CUSTOM HERO SECTION CSS --- */
.p-cart-page {
  --bg:#f6eee5;
  --bg-deep:#f0e4d8;
  --text:#4f352b;
  --muted:#8e7a6e;
  --title:#7b2d20;
  --accent:#e67c2f;
  --accent-dark:#cc6421;
  --brand:#8d261e;
  --brand-dark:#751d17;
  --stroke:#d9b7a5;
  --soft:#fbf6f0;
  --shadow:0 10px 24px rgba(87,48,25,.10);
  --radius:12px;
  background: radial-gradient(circle at 20px 20px, rgba(220,177,144,.10) 0 2px, transparent 2.2px), radial-gradient(circle at 64px 34px, rgba(220,177,144,.08) 0 1.7px, transparent 2px), radial-gradient(circle at 90px 20px, rgba(220,177,144,.08) 0 2px, transparent 2.2px), radial-gradient(circle at 36px 78px, rgba(220,177,144,.08) 0 2px, transparent 2.2px), radial-gradient(circle at 82px 84px, rgba(220,177,144,.08) 0 1.8px, transparent 2px), linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  background-color: var(--bg);
  background-size: 120px 120px,120px 120px,120px 120px,120px 120px,120px 120px,100% 100%;
}

.c-custom-hero-container {
  width: min(1120px, 100%);
  margin: 0 auto;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

.ch-breadcrumb{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px;color:#bf996f;margin:2px 0 12px;line-height:1.4;}
.ch-breadcrumb .sep{color:#d1af8e;}
.ch-breadcrumb .current{color:var(--accent);font-weight:700;}

.ch-product-section{width:100%;}
.ch-product-grid{display:grid;grid-template-columns:72px minmax(320px, 1.05fr) minmax(320px, 1fr);gap:18px;align-items:start;}

.ch-thumbs{display:flex;flex-direction:column;gap:12px;padding-top:2px;}
.ch-thumb{border:1px solid #e1c1ad;background:#fff8f2;width:64px;height:64px;border-radius:8px;padding:0;cursor:pointer;position:relative;box-shadow:0 4px 12px rgba(90,54,29,.06);transition:.18s ease;overflow:hidden;}
.ch-thumb:hover{transform:translateY(-1px);}
.ch-thumb.active{border-color:var(--accent);box-shadow:0 0 0 2px rgba(230,124,47,.18), 0 8px 18px rgba(90,54,29,.12);background:#fff;}
.ch-thumb-art{position:absolute;inset:0;display:block;}

.ch-image-wrap{min-width:0;}

.ch-hero-card{position:relative;min-height:330px;height:100%;border:1px solid rgba(140,94,50,.28);border-radius:10px;overflow:hidden;box-shadow:var(--shadow);background:#fff;display:flex;align-items:center;justify-content:center;}
.ch-hero-card img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease; border-radius: 9px; }

.ch-hero-nav{position:absolute;top:50%;transform:translateY(-50%);width:28px;height:28px;border:none;border-radius:50%;background:rgba(255,255,255,.95);color:#7e3f1f;display:grid;place-items:center;box-shadow:0 3px 10px rgba(52,32,21,.18);cursor:pointer;z-index:4;font-size:17px;line-height:1;}
.ch-hero-nav:hover{background:#fff;}
.ch-hero-nav.prev{left:10px;}
.ch-hero-nav.next{right:10px;}

.ch-details{padding:0 2px 0 0;min-width:0;}
.ch-title{margin:0 0 10px;color:var(--title);font-size:29px;line-height:1.18;font-weight:800;letter-spacing:-.02em;}

.ch-rating-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px;font-size:13px;color:#837267;}
.ch-stars{color:#f39b2d;font-size:14px;letter-spacing:1px;line-height:1;display:flex;align-items:center;gap:6px;}
.ch-stars .value{color:#4e3a31;font-weight:700;letter-spacing:0;}
.ch-reviews{color:#948274;}

.ch-price-row{display:flex;align-items:flex-end;gap:10px;margin:6px 0 14px;}
.ch-price-current{color:#241c18;font-size:35px;line-height:1;font-weight:800;letter-spacing:-.03em;}
.ch-price-current .currency{font-size:.82em;margin-right:4px;}
.ch-price-old{color:#9f9289;text-decoration:line-through;font-size:18px;font-weight:600;transform:translateY(-4px);}

.ch-desc{margin:0 0 16px;max-width:520px;font-size:13.5px;line-height:1.6;color:#6f6057;}
.ch-field-label{font-size:13px;font-weight:700;color:#5d463c;margin-bottom:8px;}

.ch-weight-group{display:flex;flex-wrap:wrap;gap:0;margin-bottom:16px;}
.ch-weight-btn{min-width:94px;height:38px;border:1px solid var(--stroke);background:#fff;color:#7e6458;font-weight:700;font-size:13px;cursor:pointer;transition:.18s ease;padding:0 16px;}
.ch-weight-btn:first-child{border-radius:8px 0 0 8px;}
.ch-weight-btn:last-child{border-radius:0 8px 8px 0;}
.ch-weight-btn + .ch-weight-btn{border-left:none;}
.ch-weight-btn.active{background:var(--brand);color:#fff;border-color:var(--brand);}
.ch-weight-btn:hover{filter:brightness(.98);}

.ch-purchase-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;margin-bottom:14px;}
.ch-qty{display:inline-flex;align-items:center;border:1px solid #e1c5b7;background:#fcf7f2;border-radius:8px;overflow:hidden;height:34px;box-shadow:0 2px 8px rgba(88,55,30,.05);}
.ch-qty button{width:34px;height:34px;border:none;background:transparent;color:#a05a49;font-size:16px;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;}
.ch-qty-value{min-width:34px;text-align:center;font-size:13px;font-weight:700;color:#6f564c;display:flex;align-items:center;justify-content:center;line-height:1;}
.ch-policy-note{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #e9d4c8;background:#fff7f2;border-radius:999px;color:#8a5f4f;font-size:12px;font-weight:600;line-height:1;white-space:nowrap;text-decoration:none;}
.ch-policy-note:hover{color:#7b4a3c;border-color:#d8b8a7;background:#fff2ea;}
.ch-policy-note i{font-size:12px;line-height:1;}
.ch-delivery{font-size:12.5px;color:#886f62;white-space:nowrap;}

.ch-actions{display:flex;gap:12px;flex-wrap:wrap;}
.ch-btn{height:42px;min-width:156px;border-radius:8px;font-weight:800;font-size:13px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:.18s ease;border:1px solid transparent;box-shadow:0 4px 10px rgba(74,38,18,.06);}
.ch-btn svg{width:16px;height:16px;display:block;}
.ch-btn-primary{background:var(--brand);color:#fff;}
.ch-btn-primary:hover{background:var(--brand-dark);transform:translateY(-1px);}
.ch-btn-outline{background:#fff;color:var(--brand);border-color:#c6a49a;text-decoration:none;}
.ch-btn-outline:hover{background:#fff9f6;transform:translateY(-1px);}

@media (max-width: 980px){
  .ch-product-grid{grid-template-columns:1fr;gap:14px;}
  .ch-thumbs{order:2;flex-direction:row;padding-top:0;}
  .ch-image-wrap{order:1;}
  .ch-details{order:3;}
  .ch-hero-card{min-height:0;height:auto;aspect-ratio:16/10;max-height:420px;}
}

@media (min-width: 768px) and (max-width: 980px){
  .ch-product-grid{gap:12px;}
  .ch-hero-card{aspect-ratio:16/9;max-height:360px;}
}

@media (max-width: 680px){
  .ch-title{font-size:24px;}
  .ch-price-current{font-size:31px;}
  .ch-hero-card{aspect-ratio:16/11;max-height:340px;}

  .ch-actions .ch-btn{flex:1 1 180px;}
}

@media (max-width: 460px){
  .ch-thumb{width:58px;height:58px;}
  .ch-weight-btn{min-width:80px;flex:1 1 auto;}
  .ch-purchase-meta{align-items:flex-start;flex-direction:column;}
  .ch-qty{height:36px;}
  .ch-qty button{width:36px;height:36px;}
  .ch-qty-value{min-width:36px;}
  .ch-policy-note{white-space:normal;line-height:1.3;}
  .ch-delivery{white-space:normal;}
}
