﻿/* Google Fonts CDN */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+Bengali:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        'Helvetica Neue',
        Arial,
        'Noto Sans Bengali',
        sans-serif;
    background: #f7f7f5;
    color: #171717;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow-container {
    max-width: 850px;
}


/* ============================================
   HEADER
   ============================================ */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #ececec;
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    color: #111111;
    text-decoration: none;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.header-tagline {
    color: #767676;
    font-size: 13px;
}


/* ============================================
   PRODUCT
   ============================================ */

.product-section {
    padding: 32px 0 48px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 56px;
    align-items: start;
}


/* ============================================
   IMAGE - DESKTOP
   ============================================ */

.main-image-wrapper {
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 500px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.product-image.loading {
    opacity: 0;
}

.product-image.loaded {
    opacity: 1;
}

.image-placeholder {
    color: #999999;
    font-size: 14px;
}


/* ============================================
   INFO
   ============================================ */

.product-info {
    padding-top: 8px;
}

.offer-label {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 6px;
    background: #171717;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.product-title {
    margin: 14px 0 8px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -1.2px;
}

.short-description {
    margin: 0;
    color: #666666;
    font-size: 16px;
}


/* ============================================
   PRICE
   ============================================ */

.price-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.regular-price {
    color: #888888;
    font-size: 18px;
    text-decoration: line-through;
}

.offer-price {
    color: #111111;
    font-size: 32px;
    font-weight: 800;
}

.discount-badge {
    display: none;
    padding: 4px 8px;
    border-radius: 6px;
    background: #e8f7e8;
    color: #216b21;
    font-size: 12px;
    font-weight: 700;
}


/* ============================================
   STOCK
   ============================================ */

.stock-status {
    margin-top: 6px;
    font-size: 14px;
}

.stock-available {
    color: #227229;
}

.stock-unavailable {
    color: #a62828;
}

.stock-preorder {
    color: #b7950b;
    font-weight: 700;
}

.variant-preorder {
    display: block;
    margin-top: 2px;
    color: #b7950b;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}


/* ============================================
   VARIANT - WITH IMAGES
   ============================================ */

.option-section {
    margin-top: 28px;
}

.option-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 14px;
}

.option-heading strong {
    color: #555555;
}

.variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.variant-button {
    min-width: 80px;
    min-height: 90px;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.variant-button:hover {
    border-color: #999999;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.variant-button.active {
    border: 3px solid #111111;
    padding: 7px;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
    transform: translateY(-2px);
}

.variant-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.variant-no-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
    color: #999999;
    font-size: 14px;
    font-weight: 600;
}

.variant-label {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #555555;
    text-align: center;
    line-height: 1.2;
    max-width: 70px;
    word-wrap: break-word;
}

.variant-sold-out {
    display: block;
    margin-top: 2px;
    color: #e74c3c;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}


/* ============================================
   QUANTITY
   ============================================ */

.quantity-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 26px;
}

.quantity-label {
    font-weight: 600;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #dddddd;
    border-radius: 9px;
    overflow: hidden;
    background: #ffffff;
}

.quantity-button {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    font-size: 20px;
}

#quantity {
    width: 48px;
    height: 42px;
    border: 0;
    border-left: 1px solid #eeeeee;
    border-right: 1px solid #eeeeee;
    background: #ffffff;
    text-align: center;

    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;

}

#quantity::-webkit-inner-spin-button,
#quantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
}


/* ============================================
   ORDER
   ============================================ */

.order-button {
    width: 100%;
    margin-top: 24px;
    padding: 16px 22px;
    border: 0;
    border-radius: 10px;
    background: #111111;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.order-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.order-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.stock-preorder {
    color: #9a6700;
    font-weight: 700;
}

/* ============================================
   COD
   ============================================ */

.cod-box {
    margin-top: 14px;
    padding: 15px 17px;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #ffffff;
}

.cod-title {
    font-weight: 700;
    font-size: 14px;
}

.cod-box p {
    margin: 2px 0 0;
    color: #777777;
    font-size: 13px;
}


/* ============================================
   CONTENT
   ============================================ */

.content-section {
    padding: 54px 0;
    background: #ffffff;
}

.content-section.alternate {
    background: #f7f7f5;
}

.content-section h2,
.delivery-section h2 {
    margin: 0 0 22px;
    font-size: 28px;
    letter-spacing: -0.5px;
}

.description {
    color: #555555;
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding: 14px 0 14px 32px;
    border-bottom: 1px solid #e5e5e5;
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 3px;
    font-weight: 800;
}


/* ============================================
   SPECIFICATIONS
   ============================================ */

.specification-list {
    border-top: 1px solid #e5e5e5;
}

.specification-row {
    padding: 13px 2px;
    border-bottom: 1px solid #e5e5e5;
    color: #555555;
}


/* ============================================
   DELIVERY
   ============================================ */

.delivery-section {
    padding: 54px 0;
}

.delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.delivery-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #ffffff;
}

.delivery-card span {
    color: #666666;
}

.delivery-card strong {
    white-space: nowrap;
}


/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    padding: 28px 0;
    border-top: 1px solid #e6e6e6;
    color: #888888;
    font-size: 13px;
    text-align: center;
}


/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 800px) {

    .container {
        width: min(100% - 24px, 700px);
    }

    .header-inner {
        min-height: 56px;
    }

    .brand {
        font-size: 23px;
    }

    .header-tagline {
        display: none;
    }

    .product-section {
        padding-top: 14px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Mobile image sizing */
    .main-image-wrapper {
        max-width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 14px;
    }

    .product-image {
        max-width: 100%;
        max-height: 400px;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-info {
        padding-top: 0;
    }

    .product-title {
        font-size: 29px;
        letter-spacing: -0.6px;
    }

    .offer-price {
        font-size: 28px;
    }

    .order-button {
        position: relative;
    }

    .content-section,
    .delivery-section {
        padding: 40px 0;
    }

    .content-section h2,
    .delivery-section h2 {
        font-size: 24px;
    }

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

/* Small mobile devices below 500px */
@media (max-width: 500px) {
    .main-image-wrapper {
        border-radius: 10px;
        max-width: 100%;
    }

    .product-image {
        max-height: 300px;
        object-fit: contain;
    }

    .variant-button {
        min-width: 65px;
        min-height: 75px;
        padding: 6px;
    }

    .variant-thumbnail {
        width: 48px;
        height: 48px;
    }

    .variant-no-image {
        width: 48px;
        height: 48px;
        font-size: 12px;
    }

    .variant-label {
        font-size: 10px;
        max-width: 55px;
    }
}

/* GRIHIKA HEADER OVERRIDE START */

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #ece9e2;
}

.site-header .header-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.site-header .brand {
    display: inline-block;
    color: #153f32;
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 39px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.10em;
    white-space: nowrap;
    transform: skewX(-4deg);
    transform-origin: center;
}

.site-header .brand:hover,
.site-header .brand:focus {
    color: #153f32;
    text-decoration: none;
}

.site-header .header-tagline,
.site-header .header-note {
    display: none;
}

@media (max-width: 768px) {
    .site-header .header-inner {
        min-height: 55px;
    }

    .site-header .brand {
        font-size: 35px;
        letter-spacing: 0.085em;
        transform: skewX(-3deg);
    }
}

@media (max-width: 480px) {
    .site-header .header-inner {
        min-height: 52px;
    }

    .site-header .brand {
        font-size: 31px;
        letter-spacing: 0.075em;
        transform: skewX(-2deg);
    }
}

/* GRIHIKA HEADER OVERRIDE END */
