/* ── Flash sale banner ───────────────────────────────────────── */
.pd-flash-sale-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    color: #fff;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 12px;
    animation: flashPulse 2s ease-in-out infinite;
}
@keyframes flashPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,.4); }
    50%       { box-shadow: 0 0 0 6px rgba(124,58,237,0); }
}
.pd-flash-sale-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}
.pd-flash-lightning { font-size: 1.2rem; }
.pd-flash-disc {
    background: rgba(255,255,255,.25);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.82rem;
    letter-spacing: .03em;
}
.pd-flash-countdown-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pd-flash-ends-in {
    font-size: 0.78rem;
    opacity: .85;
    white-space: nowrap;
}
.pd-flash-countdown {
    display: flex;
    align-items: center;
    gap: 2px;
}
.pd-cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,.2);
    border-radius: 6px;
    padding: 3px 8px;
    min-width: 38px;
    line-height: 1;
}
.pd-cd-block span { font-size: 1.1rem; font-weight: 800; font-family: monospace; }
.pd-cd-block small { font-size: 0.6rem; opacity: .8; margin-top: 1px; }
.pd-cd-sep { font-weight: 800; font-size: 1.1rem; padding: 0 2px; }

/* ── Product detail tabs ─────────────────────────────────────── */
.pd-tab-bar {
    background: var(--surface);
    border-radius: 12px;
    padding: 6px;
/*    margin-bottom: 32px;*/
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pd-tab-bar::-webkit-scrollbar { display: none; }
.pd-tab-bar { scrollbar-width: none; }
.pd-tab-list {
    display: flex;
    list-style: none;
    padding: 0; margin: 0;
    gap: 4px;
    flex-wrap: nowrap;
}
.pd-tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.pd-tab-item:hover {
    color: var(--main);
    background: rgba(255,255,255,0.7);
}
.pd-tab-item.active {
    background: var(--white);
    color: var(--main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.pd-tab-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.pd-tab-icon svg { display: block; }

.pd-tab-content {
    padding: 36px 0 12px;
}

@@media (max-width: 576px) {
    .pd-tab-list { gap: 2px; }
    .pd-tab-item { padding: 9px 12px; font-size: 12px; gap: 5px; }
    .pd-tab-icon svg { width: 15px; height: 15px; }
}
@@media (max-width: 400px) {
    .pd-tab-label { display: none; }
    .pd-tab-item { padding: 10px 14px; }
}

/* ── Product info list (shipping / refund tabs) ── */
.pd-info-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 14px;
}
.pd-info-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: var(--secondary);
    line-height: 1.6;
}
.pd-info-list li i { flex-shrink: 0; font-size: 18px; color: var(--main); margin-top: 2px; }

[data-star-rating] {
    justify-content: center;
}

.progress-bar.bg-warning {
    background-color: #ffc107 !important;
}

.color-circle {
    width: 35px;
    height: 35px;
    display: inline-block;
    border: 2px solid #999 !important;
    cursor: pointer;
    margin-right: 8px;
}

input[type="radio"]:checked + .color-circle {
    border: 3px solid black;
}

.review-group-btn {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-write-review input,
.form-write-review textarea {
    outline: none !important;
}

.review-submit-btn,
.review-cancel-btn {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.review-submit-btn {
    background: var(--main, #00a6b6);
    border: 1px solid var(--main, #00a6b6);
    color: #fff;
}
.review-submit-btn:hover {
    background: var(--primary, #007f8c);
    border-color: var(--primary, #007f8c);
    color: #fff;
}

.review-cancel-btn {
    background: #fff;
    border: 1px solid #d0d0d0;
    color: #555;
}
.review-cancel-btn:hover {
    background: #f2f2f2;
    border-color: #aaa;
    color: #222;
}

.icon-heart {
    fill: red !important;
    stroke: red !important;
}

.material-box {
    display: inline-table !important;
    width: 106px !important;
    cursor: pointer !important;
    text-align: center !important;
    margin-right: 8px !important;
    position: relative !important;
}

.material-img {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 4px;
    transition: 0.3s;
}

.material-img img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: #f7f7f7;
}

.material-text {
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    min-height: 36px;
    margin-top: 5px;
    line-height: 1.3;
}

input[type="radio"]:checked + .material-box .material-img {
    border: 2px solid black;
}

.orientation-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    align-items: flex-start;
    justify-content: flex-start;
}

.orientation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Text-only box (orientation + other attributes) */
.orientation-box {
    min-width: 72px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: border-color 0.25s ease, background 0.25s ease;
    background: #fff;
}

/* Image box — fixed square tile */
.orientation-box.has-image {
    width: 100px;
    height: 100px;
    padding: 5px;
    border-radius: 10px;
    overflow: hidden;
}

.orientation-box.has-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    pointer-events: none;
    background: #f7f7f7;
}

.orientation-box:hover,
label.orientation-box:hover {
    border-color: #000;
}

.orientation-box.active,
input:checked + label.orientation-box {
    border-color: #000;
    background: #f5f5f5;
    color: #000;
    font-weight: 600;
}

.orientation-box.has-image.active {
    background: #f5f5f5;
}

.orientation-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #111;
    text-align: center;
    line-height: 1.3;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 2px 8px;
    width: 100px;
    word-break: break-word;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Black label for orientation-box.active (Orientation variant) */
.orientation-item:has(.orientation-box.active) .orientation-label {
    color: #fff;
    background: #111;
    font-weight: 700;
}

/* Black label for radio-checked variants (Material, Design, and any other image-based attribute) */
.orientation-item:has(input[type="radio"]:checked) .orientation-label {
    color: #fff;
    background: #111;
    font-weight: 700;
}

/* Override styles.css specificity for labels inside variant-picker-values */
.variant-picker-item .variant-picker-values label.orientation-box {
    width: auto;
    min-width: 72px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-weight: 500;
    font-size: 0.88rem;
    white-space: nowrap;
    position: static;
}

.variant-picker-item .variant-picker-values input:checked + label.orientation-box,
.variant-picker-item .variant-picker-values label.orientation-box.active {
    border: 2px solid #000 !important;
    background: #f5f5f5;
    color: #000;
    font-weight: 600;
    padding: 0 14px;
}

.variant-picker-item .variant-picker-values label.orientation-box:hover {
    border-color: #000;
}

.size-section {
    margin-top: 15px;
}

.size-container {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-box.hidden-by-orient {
    display: none !important;
}

.size-box {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
    font-weight: 500;
}

.size-box:hover {
    border-color: #000;
}

.size-box.active {
    border-color: #000;
    background: #f5f5f5;
    color: #000;
    font-weight: 600;
}

.size-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.pd-category-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 4px;
}

.tab-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    color: black;
}

.tab-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.custom-container {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
}

.custom-container label {
    font-size: 13px;
    margin-bottom: 4px;
}

.custom-container input {
    border-radius: 6px;
    border: 1px solid #ccc;
}

.variant-picker-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.variant-picker-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mounting-box {
    display: inline-table !important;
    width: 110px !important;
    cursor: pointer !important;
    text-align: center !important;
    margin-right: 10px !important;
    position: relative !important;
}

.mounting-img {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 4px;
    transition: 0.3s;
}

.mounting-img img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
}

.mounting-text {
    font-size: 13px;
    display: block;
    margin-top: 5px;
}

input[type="radio"]:checked + .mounting-box .mounting-img {
    border: 2px solid black;
}

/* ── Design Method Modal ─────────────────────────────────── */
.design-method-tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 24px;
}

.design-method-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.design-method-tab.active {
    background: #fff;
    color: #00a6b6;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.design-option-card {
    border: 2px solid #eee;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.design-option-card:hover {
    border-color: #00a6b6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,166,182,0.12);
}

.design-option-card.active {
    border-color: #00a6b6;
    background: #f0fbfc;
}

.design-option-card.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: #00a6b6;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 22px;
}

.design-option-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 28px;
}

.design-option-card h6 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.design-option-card p {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

.upload-zone {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    transition: all 0.2s;
    background: #fafafa;
    align-items: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.upload-zone:hover {
    border-color: #00a6b6;
    background: #f0fbfc;
}

.upload-zone-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.upload-zone h6 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.upload-zone p {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
}

.btn-upload-browse {
    background: #00a6b6;
    color: #fff;
    border: none;
    padding: 9px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-upload-browse:hover {
    background: #008a99;
}

.upload-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6f9ec;
    color: #1a7a3c;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-top: 10px;
}

.design-online-content {
    text-align: center;
    padding: 20px 0;
}

.design-online-content .icon-wrap {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #eaf8fb, #c8f0f5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 36px;
}

.design-online-content h5 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.design-online-content p {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.btn-start-design {
    background: #00a6b6;
    color: #fff;
    border: none;
    padding: 11px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-start-design:hover {
    background: #008a99;
}

.modal-skip-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #aaa;
    text-decoration: none;
    cursor: pointer;
}

.modal-skip-link:hover {
    color: #666;
}

/* ── Full-width image scroller ───────────────────────────── */
/* Override the theme's side-by-side .tf-product-media-main width (calc(100% - 100px)). */
.tf-product-media-main.pd-gallery {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
}
.pd-gallery .swiper-slide {
    background: #f7f7f7;
}
/* Show each image at its natural aspect so the <img> box matches the image
   exactly — required for the Drift hover-zoom to map the cursor correctly
   (object-fit cropping/letterboxing would misalign the magnifier). */
.pd-gallery .swiper-slide .item {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 0;
}
.pd-gallery .swiper-slide .item img {
    width: 100%;
    height: 628px;
    display: block;
    object-fit: contain;
}

/* Arrows — circular, revealed on hover (always visible on touch) */
.pd-gallery .pd-gallery-arrow {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    color: var(--main);
    opacity: 0;
    pointer-events: auto;   /* override Swiper's pointer-events:none on disabled state */
    transition: opacity 0.25s ease, background 0.2s ease;
}
.pd-gallery:hover .pd-gallery-arrow { opacity: 1; }
.pd-gallery .pd-gallery-arrow:hover { background: #fff; }
.pd-gallery .pd-gallery-arrow::after { font-size: 16px; font-weight: 700; }
.pd-gallery .pd-gallery-arrow.swiper-button-disabled { opacity: 0 !important; }

/* Dots — overlaid near the bottom of the image */
.pd-gallery .pd-gallery-dots {
    bottom: 14px;
    line-height: 1;
    left: 0;
    width: 100%;
    text-align: center;
    margin-right:5px;
}
.pd-gallery .pd-gallery-dots .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cfcfcf;
    opacity: 1;
    transition: width 0.25s ease, background 0.25s ease;
    margin-right: 6px;
}
.pd-gallery .pd-gallery-dots .swiper-pagination-bullet-active {
    width: 28px;
    height: 10px;
    border-radius: 5px;
    background: var(--main);
}

/* ── Mobile sticky ATC bar ───────────────────────────────── */
.pd-sticky-bar {
    display: none;
    position: fixed;
    /* stack above the mobile bottom tab bar (56px) + iOS safe area */
    bottom: calc(56px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0;
    z-index: 1050;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 10px 16px;
    box-shadow: 0 -2px 16px rgba(0,0,0,.1);
}
.pd-sticky-info { flex: 1; min-width: 0; }
.pd-sticky-name {
    font-size: 13px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--main);
}
.pd-sticky-price {
    font-size: 15px; font-weight: 700;
    color: var(--main); margin-top: 2px;
}

/* ── Design Method standalone button (bypasses tf-btn animation) ── */
.pd-btn-design {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 32px;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: capitalize;
    border: 1.5px solid var(--main);
    border-radius: 4px;
    background: var(--white);
    color: var(--main);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.pd-btn-design:hover {
    background: var(--main);
    color: var(--white);
}

/* ── Notify OOS section ─────────────────────────────────── */
.notify-oos-wrap {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
}
.notify-oos-wrap p {
    font-size: 14px; font-weight: 600; margin: 0 0 10px;
}
.notify-oos-wrap .notify-row {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.notify-oos-wrap .notify-email {
    flex: 1; min-width: 160px; max-width: 220px;
    padding: 8px 12px;
    border: 1.5px solid #e2e6f0; border-radius: 8px;
    font-size: 13px; outline: none;
    transition: border-color .2s;
}
.notify-oos-wrap .notify-email:focus { border-color: var(--main); }

/* ── Quantity picker spacing ────────────────────────────── */
.tf-product-info-quantity { margin-top: 8px; }

/* ── Delivery check section ─────────────────────────────── */
.delivery-check { margin-top: 16px; }
.pd-delivery-card {
    background: #f4fdfe;
    border: 1px solid #c8eff4;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.pd-delivery-card .d-flex { margin-bottom: 4px; }
.delivery-check .pincode-row {
    display: flex; gap: 8px; align-items: center;
}
.delivery-check .pincode-input {
    flex: 1; max-width: 210px;
    padding: 8px 12px;
    border: 1.5px solid #e2e6f0; border-radius: 8px;
    font-size: 13px; outline: none;
    transition: border-color .2s;
}
.delivery-check .pincode-input:focus { border-color: var(--main); }

/* ── Delivery & Return info ─────────────────────────────── */
.delivery-return {
    border-top: 1px solid #f0f0f0;
    padding-top: 14px; 
/*    margin-top: 14px;*/
}
.delivery-return > div {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13px; color: #555; margin-bottom: 8px;
}
.delivery-return i { font-size: 16px; color: #777; flex-shrink: 0; margin-top: 5px; }

/* ── Accordion polish ───────────────────────────────────── */
#productAccordion .accordion-item {
    border: 1px solid #e8e8e8;
    border-radius: 10px !important;
    margin-bottom: 8px;
    overflow: hidden;
}
#productAccordion .accordion-button {
    font-weight: 600; font-size: 15px; color: var(--main);
    background: #fff;
}
#productAccordion .accordion-button:not(.collapsed) {
    color: var(--main); background: #f8f8f8; box-shadow: none;
}
#productAccordion .accordion-button:focus { box-shadow: none; }
#productAccordion .accordion-body { padding: 16px 20px; font-size: 14px; color: #444; }
#productAccordion .accordion-body ul { padding-left: 18px; }
#productAccordion .accordion-body ul li { margin-bottom: 6px; }

/* ── Rating label alignment ─────────────────────────────── */
.rating-label { width: 30px; font-size: 12px; font-weight: 600; }

@media (max-width: 767px) {
    /* Arrows always visible on touch (no hover); keep them subtle */
    .pd-gallery .pd-gallery-arrow { opacity: 1; width: 38px; height: 38px; margin-top: -19px; }

    .pd-gallery .swiper-slide .item img { height: 343px; }

    /* Mobile button & layout fixes */
    .tf-product-info-by-btn { flex-wrap: nowrap; gap: 8px; }
    .btn-add-to-cart { flex: 1; justify-content: center; }
    .orientation-options { flex-wrap: wrap; }
    .orientation-box { min-width: 80px; }
    .notify-oos-wrap .notify-row { flex-direction: column; align-items: flex-start; }
    .notify-oos-wrap .notify-email { max-width: 100%; width: 100%; }
    .delivery-check .pincode-row { flex-wrap: wrap; }
    .delivery-check .pincode-input { max-width: 100%; }
    .review-group-btn { flex-wrap: wrap; }
    .review-group-btn .tf-btn { flex: 1; justify-content: center; }
}
