/* Additions for the dynamic storefront (cart, wishlist, account, seller pages). */
.counter-badge {
    position: absolute;
    top: -10px;
    right: -12px;
    font-size: 10px;
    padding: 2px 6px;
    line-height: 1.2;
}
.announcement-bar {
    background: #9F2929;
    color: #fff;
    letter-spacing: .3px;
}
.flash-wrap .alert { position: relative; z-index: 5; }
.sell-link {
    color: #b3112b;
    border: 1px solid #b3112b;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.sell-link:hover { background: #b3112b; color: #fff; }
.seller-cta { background: #fff7f8; border-radius: 16px; }
.seller-cta .step { font-size: 14px; }
.seller-cta .step-number {
    display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: #b3112b; color: #fff;
    align-items: center; justify-content: center; font-weight: 700; margin-right: 8px;
}
.cursor-pointer { cursor: pointer; }
.social-links a { text-decoration: none; }

/* product detail (base; refined further below) */
.size-radio input { display: none; }
.size-radio span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #9F2929;
    border-radius: 6px;
    margin: 0 6px 6px 0;
    cursor: pointer;
    color: #9F2929;
}
.size-radio input:checked + span { background: #9F2929; color: #fff; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; }
.qty-stepper button { border: 0; background: #f6f6f6; width: 36px; height: 36px; font-size: 18px; }
.qty-stepper input { width: 56px; border: 0; text-align: center; height: 36px; }
.review-form textarea { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { cursor: pointer; font-size: 22px; color: #ccc; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #9F2929; }

/* cart page */
.cart-page-line .product-qty { width: 40px; }
.cart-page-line img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }

/* account */
.account-nav .list-group-item.active { background: #9F2929; border-color: #9F2929; }
.account-card { border: 1px solid #eee; border-radius: 12px; padding: 20px; background: #fff; }
.order-status { font-size: 12px; text-transform: capitalize; }

/* checkout pay hub */
.payment-row { border: 1px solid #eee; border-radius: 12px; padding: 16px; margin-bottom: 12px; background: #fff; }

/* seller page */
.seller-hero { background: #fff7f8; border-radius: 16px; }
.seller-logo { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.seller-policies .accordion-button { color: #9F2929; }

/* generic forms on auth / account pages */
.shop-form input[type="text"], .shop-form input[type="email"], .shop-form input[type="password"], .shop-form input[type="tel"],
.shop-form select, .shop-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
}
.btn-theme { background: #9F2929; color: #fff; border: 0; border-radius: 6px; padding: 10px 20px; }
.btn-theme:hover { background: #7f1f1f; color: #fff; }
.btn-outline-theme { background: transparent; color: #9F2929; border: 1px solid #9F2929; border-radius: 6px; padding: 10px 20px; }
.btn-outline-theme:hover { background: #9F2929; color: #fff; }
.pagination .page-link { color: #9F2929; }
.pagination .page-item.active .page-link { background: #9F2929; border-color: #9F2929; color: #fff; }

/* ==========================================================================
   UI polish & responsive fixes
   ========================================================================== */

/* Keep decorative blurred circles from creating sideways scroll on mobile.
   "clip" (unlike "hidden") does not break position: sticky children. */
.content, footer { overflow-x: clip; }
.yellow-ele1, .yellow-ele2, .purple-ele1, .purple-ele2, .green-ele1, .green-ele2 { pointer-events: none; }

img { max-width: 100%; }

/* Links under product prices on home / best sellers */
.explore-btn a { color: #4D4C4C; text-decoration: none; }
.explore-btn a:hover { color: #9F2929; }

/* Section titles: size to their text instead of a fixed 50% width */
.carousel-title.w-50 { width: fit-content !important; max-width: 100%; padding-left: 2rem; padding-right: 2rem; }

/* Checkboxes inside modals must not inherit the big text-input styles */
.modal .modal-body input[type="checkbox"],
.modal .modal-body input[type="radio"] { width: auto; height: auto; padding: 0; margin-right: 4px; vertical-align: middle; }

/* ---------- Product detail ---------- */
.product-gallery .product-detail-carousel img {
    aspect-ratio: 1 / 1;
    height: auto;
    background: #f6f1ee;
}
.product-gallery .gallery-nav { top: 50%; transform: translateY(-50%); }
.product-gallery .gallery-nav button {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .85);
    color: #9F2929;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.product-gallery .gallery-nav button:hover { background: #9F2929; color: #fff; }
.product-detail-carousel .owl-dots { margin-top: 10px; }
.product-detail-carousel.owl-theme .owl-dots .owl-dot.active span,
.product-detail-carousel.owl-theme .owl-dots .owl-dot:hover span { background: #9F2929; }

.product-detail-wrap .product-category-link {
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9F2929;
    text-decoration: none;
    font-weight: 600;
}
.product-detail-wrap .product-category-link:hover { text-decoration: underline; }
.product-detail-wrap .wishlist-link p { font-size: 14px; color: #222; }
.product-detail-wrap .wishlist-link .add-wishlist { width: 26px !important; height: 26px !important; }
.product-detail-wrap h4.product-title {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;
    color: #222;
    margin-bottom: 6px;
}
.product-detail-wrap .product-seller { font-size: 15px; color: #6c6c6c; }
.product-detail-wrap .product-seller a { font-size: 15px; text-decoration: none; }
.product-detail-wrap .review i { font-size: 15px; }
.product-detail-wrap .review-count { font-size: 14px; color: #4D4C4C; }

.purchase-box {
    background: rgba(255, 255, 255, .75);
    border: 1px solid #83272933;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 6px 24px rgba(85, 41, 18, .06);
}
.purchase-label { font-size: 16px; font-weight: 600; color: #222; }
.product-detail-wrap .product-size { border-top: 0; border-bottom: 1px dashed #83272955; }
.product-detail-wrap .product-size p { font-size: 16px; }
.product-detail-wrap .size-options { display: flex; flex-wrap: wrap; gap: 10px; }
.product-detail-wrap .size-radio span {
    min-width: 48px;
    width: auto;
    height: 42px;
    padding: 0 14px;
    margin: 0;
    border: 1px solid #83272973;
    border-radius: 10px;
    font-size: 16px;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.product-detail-wrap .size-radio input:checked + span { background: #9F2929; border-color: #9F2929; color: #fff; }
.qty-row { border-bottom: 1px dashed #83272955; }
.qty-stepper { border: 1px solid #83272973; border-radius: 10px; background: #fff; }
.qty-stepper button { width: 40px; height: 40px; background: #fbf3f3; color: #9F2929; font-size: 20px; line-height: 1; }
.qty-stepper button:hover { background: #9F2929; color: #fff; }
.qty-stepper input { width: 56px; height: 40px; font-weight: 600; font-size: 16px; -moz-appearance: textfield; appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }

.product-detail-wrap .product-price h3 { font-size: 34px; font-weight: 700; color: #222; }
.product-detail-wrap .price-mrp { font-size: 18px; font-weight: 500; color: #00000073; }
.product-detail-wrap .price-off {
    font-size: 14px;
    font-weight: 700;
    color: #2B690F;
    background: #2b690f14;
    border-radius: 20px;
    padding: 3px 10px;
}
.product-detail-wrap .price-meta small { font-size: 13px; font-weight: 400; color: #6c6c6c; }
.product-detail-wrap .stock-note { font-size: 14px; font-weight: 600; }
.product-detail-wrap .add-to-cart {
    background: #9F2929;
    color: #fff;
    border: 1px solid #9F2929;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 600;
    transition: all .2s ease;
}
.product-detail-wrap .add-to-cart:hover { background: transparent; color: #9F2929; }

#prodetailOptions .accordion-button { padding-left: 4px; padding-right: 4px; }
#prodetailOptions .accordion-body { padding-left: 4px; padding-right: 4px; }

.review-form textarea:focus { outline: none; border-color: #9F2929; }
.reviews-wrapper .review-details p.w-75 { width: 100% !important; max-width: 760px; }

/* ---------- Account ---------- */
.account-page h1 { font-size: clamp(26px, 4vw, 38px); word-break: break-word; }
.account-card { border-color: #ececec; box-shadow: 0 2px 10px rgba(0, 0, 0, .03); }
.account-stat { color: #222; transition: border-color .2s ease, transform .2s ease; }
.account-stat:hover { border-color: #9F2929; transform: translateY(-2px); color: #222; }
.account-stat-value { font-size: 32px; font-weight: 700; line-height: 1.1; }
.account-stat-label { font-size: 14px; color: #555; }
.account-nav .list-group-item { font-size: 15px; }
.account-nav form { margin: 0; }

/* Read-only fields look like information, not editable inputs */
.shop-form input[readonly] {
    background: #f7f5f5;
    color: #444;
    border-color: #e6e1e1;
    cursor: default;
}
.shop-form input[readonly]:focus { outline: none; }
.shop-form input:focus, .shop-form select:focus, .shop-form textarea:focus { outline: none; border-color: #9F2929; }
.btn-theme, .btn-outline-theme { display: inline-block; text-align: center; }

.seller-intro { max-width: 640px; }

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
    /* Account menu becomes a horizontal, swipeable pill bar */
    .account-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 6px;
        border-radius: 0;
        scrollbar-width: thin;
    }
    .account-nav .list-group-item,
    .account-nav .list-group-item:first-child,
    .account-nav .list-group-item:last-child {
        flex: 0 0 auto;
        width: auto !important;
        white-space: nowrap;
        border: 1px solid #e3dada !important;
        border-radius: 30px !important;
        padding: 7px 14px;
        font-size: 14px;
        margin: 0 !important;
    }
    .account-nav form { flex: 0 0 auto; display: flex; }

    .product-detail-wrap h4.product-title { font-size: 24px; }
    .product-detail-wrap .product-price h3 { font-size: 28px; }
    .product-detail-wrap .add-to-cart { font-size: 17px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
    .purchase-box { padding: 16px; border-radius: 14px; }
    .product-detail-wrap h4.product-title { font-size: 21px; }
    .product-detail-wrap .product-price h3 { font-size: 26px; }
    .product-detail-wrap .price-mrp { font-size: 15px; }
    .product-detail-wrap .size-radio span { min-width: 42px; height: 38px; font-size: 15px !important; }
    .product-gallery .gallery-nav button { width: 34px; height: 34px; font-size: 14px; }

    .account-card { padding: 16px; }
    .account-stat { padding: 12px 6px; }
    .account-stat-value { font-size: 24px; }
    .account-stat-label { font-size: 12px; }

    .cart-page-line img { width: 90px; height: 90px; }
    .order-summery-wrap { padding: 18px !important; }
    .order-summery-wrap h1 { font-size: 22px; }

    .reviews-wrapper .reviewer-name { font-size: 18px !important; }
    .avg-review h1 { font-size: 36px; }
    .ratings-wrap { border-left: 0 !important; margin-top: 12px; }
}

/* Gallery dots sit tight under the image */
.product-detail-carousel.owl-theme .owl-nav { display: none; }
.product-detail-carousel.owl-theme .owl-dots { margin-top: 8px !important; line-height: 0; }
.product-detail-carousel.owl-theme .owl-dots .owl-dot span { margin: 4px; }

/* Hero overlay must stay inside the hero section */
.hero-sec { position: relative; }
@media (max-width: 575.98px) {
    .hero-sec { height: auto; min-height: 45vh; padding: 40px 0; }
}
@media (max-width: 991.98px) {
    /* On tablet/mobile the hero no longer sits behind the header, so give the header its normal tint */
    .home-page header nav { background: #83272973; }
}
