:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-alt: #f7f8fb;
    --ink: #13224f;
    --muted: #60708f;
    --line: #e7ebf3;
    --brand: #714831;
    --brand-strong: #5e3b27;
    --accent: #f64c7d;
    --accent-2: #655cf4;
    --danger: #ff4965;
    --success: #23b26d;
    --shadow: 0 26px 60px rgba(16, 31, 77, 0.08);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: min(1180px, calc(100vw - 48px));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Anek Bangla", sans-serif;
    font-size: 15px;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.notice-bar {
    overflow: hidden;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.notice-track {
    display: flex;
    width: max-content;
    padding: 12px 0;
    animation: marquee 18s linear infinite;
}

.notice-track span {
    padding-right: 64px;
    white-space: nowrap;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.zoom-pill svg,
.cart-float svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.product-shell {
    padding: 30px 0 34px;
}

.product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
    grid-template-areas:
        "gallery summary"
        "description summary";
    gap: 28px;
    align-items: start;
}

.gallery-column,
.summary-column {
    min-width: 0;
}

.gallery-column {
    grid-area: gallery;
}

.summary-column {
    grid-area: summary;
}

.product-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #ededf0;
    min-height: 680px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.sale-pill,
.zoom-pill {
    position: absolute;
    z-index: 2;
}

.sale-pill {
    top: 18px;
    left: 18px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #714831;
    color: #fff;
    text-align: center;
    font-weight: 800;
    line-height: 1.05;
    font-size: 16px;
}

.zoom-pill {
    top: 20px;
    right: 20px;
    width: 82px;
    height: 42px;
    border: 1.5px solid rgba(19, 34, 79, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-strong);
}

.active-image {
    width: 100%;
    height: 100%;
    min-height: 680px;
    object-fit: contain;
}

.thumb-strip {
    display: flex;
    gap: 14px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 2px 6px 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.thumb-strip::-webkit-scrollbar {
    display: none;
}

.thumb-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thumb-nav {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid #d8dce8;
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(17, 37, 84, 0.08);
}

.thumb-nav:disabled {
    opacity: 0.45;
    cursor: default;
}

.thumb {
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb.is-active {
    border-color: #1d4cba;
    box-shadow: 0 0 0 3px rgba(45, 99, 212, 0.12);
}

.product-title {
    margin: 0 0 18px;
    /* font-size: 14px; */
    line-height: 1.45;
    font-weight: 800;
    color: #0f1b49;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 28px;
}

.old-price {
    font-size: 26px;
    font-weight: 800;
    color: #4da2c6;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.new-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--danger);
}

.order-card {
    padding: 22px 18px 18px;
    background: var(--surface);
    border: 1px solid rgba(36, 71, 143, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.order-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.size-chip {
    min-width: 56px;
    padding: 7px 10px;
    border: 1px solid #dde5f0;
    border-radius: 12px;
    background: #fff;
    color: #1e315f;
    font-weight: 700;
    cursor: pointer;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.size-chip.is-active {
    border-color: #381b0b;
    background: rgba(64, 99, 221, 0.08);
    color: #5e3b27;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.field span {
    font-size: 16px;
    font-weight: 700;
}

.field input {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
}

.field input:focus {
    border-color: #5a76e8;
    box-shadow: 0 0 0 4px rgba(90, 118, 232, 0.12);
}

.field-note {
    margin: 0 0 16px;
    color: #23b26d;
    font-size: 14px;
}

.shipping-options {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.shipping-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.shipping-option input {
    width: 16px;
    height: 16px;
    accent-color: #714831;
}

.shipping-option span,
.shipping-option strong {
    font-size: 16px;
}

.totals-card {
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid #e4e9f3;
    border-radius: 16px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 18px;
    background: #fff;
    font-size: 18px;
}

.total-line+.total-line {
    border-top: 1px solid #e8edf7;
    background: #f6f8fc;
}

.total-line strong {
    font-weight: 800;
}

.total-line.is-grand strong {
    color: #5964ee;
}

.primary-button {
    border: 0;
    cursor: pointer;
    transition: transform 150ms ease, filter 150ms ease;
}

.primary-button:hover,
.size-chip:hover,
.zoom-pill:hover,
.thumb:hover {
    transform: translateY(-1px);
    filter: brightness(1.01);
}

.primary-button {
    width: 100%;
    padding: 10px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #845339 0%, #714831 100%);
    color: #fff;
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 12px 22px rgba(113, 72, 49, 0.22);
}

.short-description-card {
    grid-area: description;
    margin-top: 0px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e4d9cf;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(31, 20, 14, 0.06);
}

.short-description-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--brand);
}

.short-description-card p {
    margin: 0;
    color: #526584;
    font-size: 16px;
    line-height: 1.7;
}

.site-footer {
    background: transparent;
}

.footer-bar {
    display: flex;
    justify-content: flex-end;
    padding: 18px 24px;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.whatsapp-float,
.cart-float {
    position: fixed;
    z-index: 20;
    box-shadow: 0 18px 38px rgba(17, 37, 84, 0.16);
}

.whatsapp-float {
    left: 22px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #714831;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.wa-icon {
    font-size: 20px;
    line-height: 1;
}

.cart-float {
    right: 26px;
    bottom: 34px;
    width: 72px;
    height: 72px;
    border: 0;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #fff;
    color: #172757;
}

.cart-count {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #ff2f4c;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
}

.image-viewer.is-open {
    display: block;
}

.image-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 10, 8, 0.78);
    backdrop-filter: blur(4px);
}

.image-viewer-dialog {
    position: relative;
    z-index: 1;
    width: min(94vw, 1100px);
    height: min(90vh, 900px);
    margin: 4vh auto 0;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.image-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
}

.viewer-tool,
.viewer-scale {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
}

.viewer-tool {
    border: 1px solid #d6c4b7;
    background: #fff;
    color: var(--brand);
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
}

.viewer-scale {
    min-width: 72px;
    background: #f4ece7;
    color: var(--brand);
    font-size: 14px;
    font-weight: 800;
}

.viewer-close {
    margin-left: 6px;
}

.image-viewer-stage {
    width: 100%;
    height: calc(100% - 52px);
    overflow: auto;
    border-radius: 18px;
    background: #f4f1ee;
    display: grid;
    place-items: center;
}

.viewer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 160ms ease;
    user-select: none;
}

.floating-contact-stack {
    position: fixed;
    right: 18px;
    bottom: 80px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.floating-contact-link {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
}

.floating-contact-link:hover {
    transform: translateY(-4px) scale(1.04);
}

.floating-contact-link img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.floating-contact-link::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    animation: floatingPulse 1.8s infinite;
}

.floating-contact-link.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 14px 32px rgba(18, 140, 126, 0.32);
}

.floating-contact-link.whatsapp::before {
    border: 2px solid rgba(37, 211, 102, 0.22);
}

.floating-contact-link.call {
    background: linear-gradient(135deg, #ff8a00, #e65100);
    box-shadow: 0 14px 32px rgba(230, 81, 0, 0.3);
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.floating-contact-link.call::before {
    border: 2px solid rgba(255, 138, 0, 0.22);
}

/* .save-badge-wrap {
    margin-bottom: 8px;
} */

.save-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #714831;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}



@keyframes floatingPulse {
    0% {
        transform: scale(0.92);
        opacity: 0.85;
    }

    70% {
        transform: scale(1.08);
        opacity: 0;
    }

    100% {
        transform: scale(1.08);
        opacity: 0;
    }
}

@media (max-width: 767.98px) {
    .floating-contact-stack {
        right: 12px;
        bottom: 80px;
        gap: 15px;
    }

    .floating-contact-link {
        width: 58px;
        height: 58px;
    }

    .floating-contact-link img {
        width: 28px;
        height: 28px;
    }

    .floating-contact-link.call {
        font-size: 24px;
    }
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "gallery"
            "summary"
            "description";
    }

    .product-gallery,
    .active-image {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    :root {
        --container: min(100vw - 24px, 100%);
    }

    .notice-bar {
        font-size: 12px;
    }

    .product-shell {
        padding-top: 24px;
    }

    .thumb-carousel {
        gap: 6px;
    }

    .thumb-nav {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 20px;
    }

    .thumb {
        width: 84px;
        height: 84px;
    }

    /* .product-title {
    font-size: 13px;
  }

  .old-price {
    font-size: 13px;
  }

  .new-price {
    font-size: 13px;
  } */

    .order-card {
        padding: 16px 13px 14px;
    }

    .field-note {
        margin: 0 0 16px;
        color: #23b26d;
        font-size: 11px;
    }

    .order-card h2,
    .field span,
    .shipping-option span,
    .shipping-option strong,
    .total-line {
        font-size: 16px;
    }

    .primary-button {
        font-size: 15px;
        padding: 9px 14px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .short-description-card {
        margin-top: 14px;
        padding: 18px;
    }

    .short-description-card h2 {
        font-size: 19px;
    }

    .short-description-card p {
        font-size: 15px;
    }

    .footer-bar {
        justify-content: center;
        font-size: 18px;
        text-align: center;
    }

    .whatsapp-float {
        left: 12px;
        right: 72px;
        justify-content: center;
        font-size: 15px;
    }

    .cart-float {
        right: 14px;
        bottom: 18px;
        width: 58px;
        height: 58px;
    }

    .image-viewer-dialog {
        width: min(96vw, 1100px);
        height: min(88vh, 900px);
        margin-top: 5vh;
        padding: 14px;
    }

    .viewer-tool {
        min-width: 40px;
        height: 36px;
        font-size: 20px;
    }

    .viewer-scale {
        height: 36px;
        min-width: 64px;
        font-size: 13px;
    }
}
