/* =============================================
   SINGLE PRODUCT PAGE
============================================= */

.sp-page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 30px 60px;
}

/* BREADCRUMB */
.sp-breadcrumb {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 30px;
}
.sp-breadcrumb a {
    color: #aaa;
    text-decoration: none;
}
.sp-breadcrumb a:hover { color: #332b32; }
.sp-breadcrumb .breadcrumb_last { color: #332b32; }

/* TWO-COLUMN LAYOUT */
.sp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 180px;
}

/* =============================================
   LEFT — GALLERY
============================================= */
.sp-gallery {
    position: sticky;
    top: 100px;
    min-width: 0;
}

.sp-main-image {
    border-radius: 0px;
    overflow: hidden;
    background: #f7f4f0;
    aspect-ratio: 1 / 1;
    margin-bottom: 14px;
}
.sp-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.18s ease;
}
.sp-main-image:hover img {
    transform: scale(1.03);
}

/* THUMBNAILS SLIDER */
.sp-thumbs-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    position: relative;
}
.sp-thumbs-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.sp-thumbs {
    display: flex;
    gap: 10px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.sp-thumb {
    width: 80px;
    height: 80px;
    border-radius: 0px;
    overflow: hidden;
    cursor: pointer;
    border: 0px solid transparent;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    background: #f7f4f0;
    flex-shrink: 0;
}
.sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.sp-thumb:hover img {
    transform: scale(1.08);
}
.sp-thumb.active {
    border-color: #332b32;
    box-shadow: 0 0 0 3px rgba(135,104,154,0.18);
}
.sp-thumb:hover {
    border-color: #332b32;
    transform: translateY(-2px);
}

/* ARROW BUTTONS */
.sp-thumb-arrow {
    width: 32px;
    height: 32px;
    border-radius: 0%;
    border: 0px solid #332b32;
    background: #fff;
    color: #332b32;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
    padding: 0;
}
.sp-thumb-arrow:hover {
    background: #4d424b;
    color: #fff;
    border-color: #4d424b;
    transform: scale(1.1);
}
.sp-thumb-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* =============================================
   RIGHT — DETAILS
============================================= */
.sp-details {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
}

.sp-name {
    font-size: 36px;
    font-weight: 700;
    color: #332b32;
    margin: 0 0 8px;
    line-height: 1.2;
}

.sp-sku {
    font-size: 12px;
    color: #bbb;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.sp-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 26px;
    /*padding-bottom: 26px;*/
    /*border-bottom: 1px solid #f0ecf5;*/
}
.sp-desc p { margin: 0 0 10px; }
.sp-desc p:last-child { margin-bottom: 0; }

.sp-price {
    font-size: 26px;
    font-weight: 700;
    color: #332b32;
    margin-bottom: 28px;
}
.sp-price .woocommerce-Price-amount { color: #332b32; }
/* Override WC price colour to match design (uses "Rupees : XXXX/-" style) */
.sp-price .woocommerce-Price-currencySymbol { display: none; }
.sp-price::before {
    content: "Rupees : ";
    font-size: 18px;
    font-weight: 400;
}
.sp-price .amount::after { content: "/-"; }

/* =============================================
   FIELD LABELS
============================================= */
.sp-field-label {
    font-size: 12px;
    font-weight: 600;
    color: #4d424b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

/* =============================================
   DATE INPUT
============================================= */
.sp-date-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 0px solid #332b32;
    border-radius: 0px;
    font-size: 14px;
    color: #332b32;
    background: #faf8fc;
    outline: none;
    margin-bottom: 22px;
    transition: border-color 0.2s;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
}
.sp-date-input:focus {
    border-color: #4d424b;
    background: #fff;
}
/* Placeholder colour */
.sp-date-input:not([value]):not(:focus) {
    color: #b0a5bb;
}

/* =============================================
   QUANTITY STEPPER
============================================= */
.sp-qty-cart-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 28px;
}

.sp-qty-wrap {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
    border: 0px solid #332b32;
    border-radius: 0px;
    overflow: hidden;
    background: #faf8fc;
    gap: 0;
}

.sp-cart-btn {
    flex: 1 1 auto;
    width: auto;
    padding: 18px;
    border: none;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.sp-qty-btn {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    flex: 0 0 30px;
    height: 44px;
    box-sizing: border-box;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #332b32;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.sp-qty-btn:hover {
    background: #4d424b;
    color: #fefefe;
}
.sp-qty-input {
    width: 28px !important;
    flex: 0 0 28px !important;
    height: 44px !important;
    line-height: 44px !important;
    box-sizing: border-box !important;
    border: none !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #332b32 !important;
    background: #fff !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield;
}
.sp-qty-input::-webkit-inner-spin-button,
.sp-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* =============================================
   ADD TO CART / VIEW CART BUTTON — STATES
============================================= */
/* Active — purple */
.sp-cart-btn:not(.sp-view-cart):not(.sp-disabled) {
    background: #332b32 !important;
    color: #fff;
}
.sp-cart-btn:not(.sp-view-cart):not(.sp-disabled):hover {
    background: #4d424b !important;
}
/* Disabled */
.sp-cart-btn.sp-disabled {
    background: #e1dce1 !important;
    color: #fefefe !important;
    cursor: not-allowed;
}
/* View Cart */
.sp-cart-btn.sp-view-cart {
    background: #332b32 !important;
    color: #fff;
}
.sp-cart-btn.sp-view-cart:hover {
    background: #4d424b !important;
}
/* Loading */
.sp-cart-btn.sp-loading {
    background: #a888bb;
    color: #fff;
    cursor: wait;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
    .sp-container {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    .sp-gallery { position: static; }
    .sp-name { font-size: 28px; }
}
@media (max-width: 576px) {
    .sp-page-wrap { padding: 16px 16px 40px; }
    .sp-container { margin-top: 20px; }
    .sp-name { font-size: 22px; }
    .sp-price { font-size: 20px; }
    .sp-desc { font-size: 13px; }

    /* Smaller thumbnails on narrow screens */
    .sp-thumb {
        width: 64px;
        height: 64px;
    }

    /* 16px prevents iOS Safari auto-zoom on focus */
    .sp-date-input {
        font-size: 16px;
    }

    .sp-qty-btn   { width: 38px; height: 38px; }
    .sp-qty-input { width: 44px; height: 38px; font-size: 15px; }

    .sp-cart-btn {
        height: 52px;
        font-size: 15px;
    }
}



/* =============================================
   PRODUCT ATTRIBUTES
============================================= */
 
.sp-attributes {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 26px;
    border-top: 0px solid #332b32;
    border-bottom: 0px solid #332b32;
    padding: 4px 0;
}

.sp-attr-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    align-items: baseline;
    padding: 11px 0;
    border-bottom: 0px solid #f7f4fb;
    gap: 12px;
}

.sp-attr-row:last-child {
    border-bottom: none;
}

.sp-attr-label {
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sp-attr-values {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.sp-attr-tag {
    font-size: 14px;
    color: #2d2140;
    font-weight: 500;
}

.sp-attr-tag:not(:last-child)::after {
    content: ",";
    margin-right: 3px;
    color: #bbb;
}

/* Mobile: stack label above value instead of squeezing them side by
   side. A fixed-width column was never wide enough for long labels
   like "Type of Arrangement", and nowrap text isn't clipped by grid
   cells — it visually spilled into the value column and looked like
   overlapping text. Stacking removes that failure mode entirely. */
@media (max-width: 576px) {
    .sp-attr-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 0;
    }
    .sp-attr-label {
        font-size: 11px;
        white-space: normal;
    }
    .sp-attr-tag { font-size: 13px; }
}


.fqv-attributes {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
    border-top: 0px solid #f0ecf5;
    border-bottom: 0px solid #f0ecf5;
    padding: 4px 0;
}

.fqv-attr-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 0px solid #f7f4fb;
}

.fqv-attr-row:last-child {
    border-bottom: none;
}

.fqv-attr-label {
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fqv-attr-values {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fqv-attr-tag {
    font-size: 13px;
    color: #2d2140;
    font-weight: 500;
}

.fqv-attr-tag:not(:last-child)::after {
    content: ",";
    margin-right: 3px;
    color: #bbb;
}