/* product-design.css */

.pd-page {
    padding: 3rem 0;
    background-color: #ffffff;
    color: #111827;
    font-family: 'Inter', sans-serif;
}

.pd-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Breadcrumbs */
.pd-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 2rem;
    position: relative;
    z-index: 20;
    /* Keep it in its own stacking context, above standard page grids */
}

.pd-breadcrumb-icon {
    display: flex;
    align-items: center;
    color: #374151;
    text-decoration: none;
}

.pd-breadcrumb-icon .material-symbols-outlined {
    font-size: 1.25rem;
}

.pd-breadcrumb-separator {
    color: #d1d5db;
}

.pd-breadcrumb-link {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

.pd-breadcrumb-link:hover {
    color: #111827;
}

.pd-breadcrumb-current {
    color: #9ca3af;
    pointer-events: none;
    cursor: default;
}

/* Main Layout Grid with areas */
.pd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    grid-template-areas:
        "gallery"
        "details"
        "accordions";
    width: 100%;
    max-width: 100%;
}

.pd-gallery-area {
    grid-area: gallery;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.pd-details-area {
    grid-area: details;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.block-spacing--product {
    grid-area: accordions;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 992px) {
    .pd-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: 4rem;
        grid-template-areas:
            "gallery details"
            "gallery accordions";
        align-items: flex-start;
    }
}

/* Gallery Area */
.pd-gallery-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    min-width: 0;
}

.pd-gallery-row {
    display: flex;
    flex-direction: column-reverse;
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .pd-gallery-row {
        flex-direction: row;
    }
}

.pd-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .pd-thumbnails {
        flex-direction: column;
        overflow-x: visible;
        width: 80px;
        max-width: none;
    }
}

.pd-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    padding: 2px;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f9fafb;
}

.pd-thumb.active {
    border-color: #111827;
}

.pd-main-image-box {
    position: relative;
    flex: 1;
    background-color: #fcfcfc;
    border-radius: 16px;
    padding-bottom: 100%;
    /* Square ratio */
    overflow: hidden;
}

.pd-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
}

.pd-badges {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.pd-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
}

.pd-badge-blue {
    background-color: #4f46e5;
}

.pd-badge-green {
    background-color: #86efac;
    color: #14532d;
}

.pd-zoom-btn {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    z-index: 10;
}

.pd-zoom-btn:hover {
    background-color: #f9fafb;
    transform: scale(1.05);
}

/* Details Area */
.pd-details-area {
    display: flex;
    flex-direction: column;
}

.pd-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Price Box Spacing */
.pd-price-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pd-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    display: inline-block;
    /* Use inline-block to align with badge */
}

.pd-sale-badge {
    background-color: #ef4444;
    /* Premium red badge */
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pd-price-cents {
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 2px;
    margin-top: 2px;
}

.pd-variant {
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.pd-variant-label {
    color: #374151;
    font-weight: 500;
}

.pd-variant-value {
    color: #6b7280;
    margin-left: 0.25rem;
}

/* Actions */
.pd-actions-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pd-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 48px;
    width: 120px;
}

.pd-qty-btn {
    width: 40px;
    height: 100%;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.pd-qty-btn:hover {
    color: #111827;
}

.pd-qty-input {
    flex: 1;
    width: 40px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    background: transparent;
    pointer-events: none;
}

.pd-btn-add {
    flex: 1;
    height: 48px;
    background-color: #4338ca;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pd-btn-add:hover {
    background-color: #3730a3;
}

.pd-btn-buy {
    width: 100%;
    height: 48px;
    background-color: #111827;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 2rem;
}

.pd-btn-buy:hover {
    background-color: #374151;
}

/* Store & Help Information */
.pd-store-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.pd-store-icon {
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.pd-store-text {
    font-size: 0.875rem;
}

.pd-store-text strong {
    color: #1f2937;
    display: block;
    margin-bottom: 0.25rem;
}

.pd-store-text p {
    color: #6b7280;
    margin: 0 0 0.25rem 0;
}

.pd-store-text a {
    color: #9ca3af;
    text-decoration: underline;
}

.pd-help-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #e0f2fe;
    padding: 1.5rem;
    border-radius: 8px;
}

.pd-help-icon-wrap {
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.pd-help-icon {
    font-size: 1.25rem;
}

.pd-help-text {
    font-size: 0.875rem;
}

.pd-help-text strong {
    color: #0369a1;
    display: block;
    margin-bottom: 0.25rem;
}

.pd-help-text p {
    color: #0c4a6e;
    margin: 0;
}

.pd-help-text a {
    color: #0369a1;
    text-decoration: underline;
    font-weight: 500;
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 0 6rem;
    background: #fff;
}

.product-detail-page .benefits-section {
    padding-top: 1rem;
    /* reduced whitespace above benefits section */
}

.newsletter-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.newsletter-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding-top: 3rem;
}

@media (min-width: 768px) {
    .newsletter-benefits {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        padding-top: 3.5rem;
    }
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .benefit-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1.25rem;
    }
}

.benefit-icon {
    width: 52px;
    height: 52px;
    background-color: #f0f7f0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .benefit-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
}

.benefit-icon .material-symbols-outlined {
    font-size: 26px;
    color: #6aa84f;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.benefit-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #13131D;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.benefit-desc {
    display: block;
    font-size: 0.8rem;
    color: rgba(19, 19, 29, 0.55);
    line-height: 1.4;
}

/* Key Features & Gallery Container Styles */
.pd-gallery-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.block-spacing--product {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-key-features {
    list-style: none;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    background-color: #f3f4f6;
    /* Slightly grey background */
    border: 1px solid #e5e7eb;
    /* Soft border */
    border-radius: 12px;
    /* Rounded borders */
    padding: 1.25rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-key-features__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-right: 1px solid #e5e7eb;
}

.product-key-features__item:last-child {
    border-right: none;
}

.product-key-features__title {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    /* Subtle grey-slate */
}

.product-key-features__content {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111827;
    /* Modern dark text */
}

/* Accordion Styles */
.accordion {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.25rem;
}

.accordion__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
    outline: none;
}

.accordion__summary::-webkit-details-marker {
    display: none;
}

.accordion__summary .h6 p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.accordion__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion[open] .accordion__icon {
    transform: rotate(180deg);
}

.accordion__content {
    padding-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
}

/* Accordion Description content */
.accordion__content.prose p {
    margin: 0 0 1rem 0;
}

.accordion__content.prose p:last-child {
    margin-bottom: 0;
}

.accordion__content.prose ul {
    margin: 0 0 1rem 0;
    padding-left: 1.25rem;
}

.accordion__content.prose ul li {
    margin-bottom: 0.5rem;
}

/* Accordion Specifications Table content */
.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table td {
    padding: 0.65rem 0.75rem;
    /* Horizontal padding for visual balance with stripe color */
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.85rem;
}

.specifications-table tr:nth-child(odd) {
    background-color: #f3f4f6;
    /* Alternate grey color (1st, 3rd, etc.) */
}

.specifications-table tr:last-child td {
    border-bottom: none;
}

.specifications-table td:first-child {
    color: #6b7280;
    font-weight: 500;
}

.specifications-table td:last-child {
    color: #111827;
    font-weight: 600;
    text-align: right;
}

/* Desktop Split Scrolling (Sticky gallery block) */
@media (min-width: 992px) {
    .pd-gallery-area {
        position: sticky;
        top: 120px;
        align-self: flex-start;
    }
}

/* Mobile-specific Viewport Optimizations */
@media (max-width: 767px) {
    .pd-container {
        padding: 0 1rem;
    }

    .product-key-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .product-key-features__item {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 0.75rem;
        width: 100%;
    }

    .product-key-features__item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .pd-store-info,
    .pd-help-banner {
        padding: 1rem;
        border-radius: 12px;
    }

    .pd-actions-row {
        gap: 0.75rem;
    }

    .pd-qty-selector {
        width: 100px;
        flex-shrink: 0;
    }
}

/* ============================================================
   PREMIUM STICKY BUY BAR DROPDOWN
   ============================================================ */
.sticky-buy-bar {
    position: fixed;
    top: 75px;
    /* Default top for mobile */
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 98;
    transform: translateY(-101%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), top 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    pointer-events: none;
    opacity: 0;
}

.sticky-buy-bar.is-visible {
    transform: translateY(0);
    pointer-events: auto;
    opacity: 1;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .sticky-buy-bar {
        top: 134px;
        /* Desktop subnav is visible */
        height: 80px;
    }

    .sticky-buy-bar.subnav-hidden-active {
        top: 90px;
        /* Desktop subnav is hidden */
    }
}

.sticky-buy-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left Side: Product Info */
.sticky-buy-product {
    display: flex;
    align-items: center;
    min-width: 0;
}

.sticky-buy-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: #f9fafb;
    border: 1px solid rgba(0, 0, 0, 0.05);
    object-fit: contain;
    padding: 4px;
    flex-shrink: 0;
    margin-right: 0.875rem;
}

.sticky-buy-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sticky-buy-brand {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 2px;
    line-height: 1.2;
}

.sticky-buy-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Right Side: Variants & Actions */
.sticky-buy-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sticky-buy-variants {
    display: none;
    /* Hidden on mobile */
    align-items: center;
    margin-right: 1.5rem;
}

@media (min-width: 768px) {
    .sticky-buy-variants {
        display: flex;
    }
}

.sticky-variant-group {
    display: flex;
    flex-direction: column;
    margin-right: 1.25rem;
}

.sticky-variant-group:last-child {
    margin-right: 0;
}

.sticky-variant-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 2px;
}

.sticky-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sticky-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    padding-right: 1.25rem;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    transition: color 0.2s ease;
}

.sticky-select:hover {
    color: #2563eb;
}

.sticky-select-chevron {
    position: absolute;
    right: 0;
    pointer-events: none;
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    font-weight: bold;
}

/* Add to Cart Pill Button */
.sticky-buy-btn {
    height: 44px;
    padding: 0 1.75rem;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 22px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.sticky-buy-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.sticky-buy-btn:active {
    transform: translateY(1px);
}

/* Success Add Animation State */
.sticky-buy-btn.is-success {
    background-color: #16a34a !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.2) !important;
    pointer-events: none;
}

/* ============================================================
   PREMIUM NOTIFICATION TOAST
   ============================================================ */
.premium-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.premium-toast {
    background: #ffffff;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    min-width: 320px;
    max-width: 420px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: auto;
}

.premium-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.premium-toast-icon {
    color: #16a34a;
    margin-right: 0.875rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.premium-toast-content {
    flex: 1;
    min-width: 0;
}

.premium-toast-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
    line-height: 1.3;
}

.premium-toast-msg {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.3;
}

.premium-toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.125rem;
    padding: 0 0 0 0.5rem;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    margin-left: auto;
}

.premium-toast-close:hover {
    color: #374151;
}

/* Warning toast variant (amber) */
.premium-toast--warning {
    border-left-color: #d97706;
}

.premium-toast-icon--warning {
    color: #d97706;
}

/* ============================================================
   STICKY BUY BAR BOTTOM RENDERING (BELOW 1024px)
   ============================================================ */
@media (max-width: 1023px) {
    .sticky-buy-bar {
        top: auto !important;
        bottom: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        border-bottom: none;
        transform: translateY(100%);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
        height: calc(72px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .sticky-buy-bar.is-visible {
        transform: translateY(0);
        box-shadow: 0 -10px 30px -5px rgba(0, 0, 0, 0.08);
    }

    .sticky-buy-container {
        height: 72px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .sticky-buy-bar {
        height: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    .sticky-buy-container {
        height: 80px;
    }
}

@media (max-width: 510px) {

    .sticky-buy-meta,
    .sticky-buy-text {
        display: none !important;
    }

    .sticky-buy-thumb {
        margin-right: 0;
    }
}

/* ============================================================
   PREMIUM STICKY BUY BAR THUMBNAIL OVERFLOW FIX
   ============================================================ */
.sticky-buy-img-wrap {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background-color: #f9fafb !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    margin-right: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sticky-buy-img-wrap img {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain !important;
    padding: 4px !important;
    display: block !important;
}

/* ============================================================
   STANDARD WOOCOMMERCE SINGLE-PRODUCT FORM UX RECONCILIATION
   ============================================================ */
form.cart {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Align quantity box, Add to Cart, and Wishlist on a single horizontal row */
form.cart:not(.variations_form) {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Flex row inside variable product variation forms */
form.cart .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 1rem !important;
}

/* Clean standard WooCommerce quantity selector container */
form.cart .quantity {
    display: none !important;
}

form.cart .quantity input.qty {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    text-align: center !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1a1c1d !important;
    background: transparent !important;
    outline: none !important;
    padding: 0 !important;
}

/* Premium Indigo Add to Cart pill button styling matching mockup */
form.cart .single_add_to_cart_button.button {
    flex: 1 !important;
    height: 48px !important;
    background-color: #4338ca !important;
    /* Premium Indigo */
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    /* Pill style */
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 24px !important;
    letter-spacing: -0.010em !important;
}

form.cart .single_add_to_cart_button.button:hover {
    background-color: #3730a3 !important;
    transform: translateY(-1px) !important;
}

form.cart .single_add_to_cart_button.button:active {
    transform: translateY(1px) !important;
}

/* Premium full-width Buy it now pill button styling matching mockup */
form.cart .pd-btn-buy {
    width: 100% !important;
    height: 48px !important;
    background-color: #111827 !important;
    /* Premium Bold Black */
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    /* Pill style */
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: none !important;
    box-shadow: none !important;
    margin: 4px 0 0 0 !important;
    /* Direct spacing underneath the actions row */
    padding: 0 24px !important;
    letter-spacing: -0.010em !important;
    flex-shrink: 0 !important;
}

form.cart .pd-btn-buy:hover {
    background-color: #374151 !important;
    transform: translateY(-1px) !important;
}

form.cart .pd-btn-buy:active {
    transform: translateY(1px) !important;
}

/* Disabled/Unavailable state for Add to Cart and Buy it Now buttons */
form.cart .single_add_to_cart_button.button.disabled,
form.cart .single_add_to_cart_button.button[disabled],
form.cart .pd-btn-buy.disabled,
form.cart .pd-btn-buy[disabled],
form.cart .mt-pdp-wishlist-btn.wishlist-btn.disabled,
form.cart .mt-pdp-wishlist-btn.wishlist-btn[disabled],
.sticky-buy-btn.disabled,
.sticky-buy-btn[disabled] {
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
    border: 1px solid #e5e7eb !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Wishlist PDP button integration styling */
form.cart .mt-pdp-wishlist-btn.wishlist-btn {
    width: 48px !important;
    height: 48px !important;
    background-color: #ffffff !important;
    border: 1.5px solid #d2d2d6 !important;
    border-radius: 9999px !important;
    /* Circle matching mockup */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1a1c1d !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

form.cart .mt-pdp-wishlist-btn.wishlist-btn:hover {
    border-color: #1a1c1d !important;
    background-color: #f5f5f7 !important;
}

form.cart .mt-pdp-wishlist-btn.wishlist-btn.active {
    background-color: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

form.cart .mt-pdp-wishlist-btn.wishlist-btn.active:hover {
    background-color: #fee2e2 !important;
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}

form.cart .mt-pdp-wishlist-btn.wishlist-btn .heart-icon {
    font-size: 20px !important;
    font-variation-settings: 'FILL' 0, 'wght' 400 !important;
    transition: transform 0.2s ease !important;
    display: block !important;
}

form.cart .mt-pdp-wishlist-btn.wishlist-btn.active .heart-icon {
    font-variation-settings: 'FILL' 1, 'wght' 400 !important;
    color: #ef4444 !important;
}

form.cart .mt-pdp-wishlist-btn.wishlist-btn.active:hover .heart-icon {
    color: #dc2626 !important;
}

form.cart .mt-pdp-wishlist-btn.wishlist-btn:hover .heart-icon {
    transform: scale(1.15) !important;
}

/* Variable product variation table base reset */
form.cart table.variations {
    width: 100% !important;
    border: none !important;
    margin-bottom: 0.75rem !important;
    border-collapse: collapse !important;
    background: transparent !important;
}

form.cart table.variations td {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Hide native WooCommerce label cell — JS renders a dynamic heading instead */
form.cart table.variations th.label,
form.cart table.variations td.label,
table.variations th.label,
table.variations td.label,
.variations th.label,
.variations td.label {
    display: none !important;
}

/* ==========================================================================
   VARIATION PRICE BLOCK — always hidden.
   We render the variation price ourselves inside .pd-price-box via JS.
   This !important beats WooCommerce's inline display:block JS override.
   ========================================================================== */
.woocommerce-variation-price {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ============================================================
   PREMIUM PRICE TAG UX STACKING & OPTIMIZATION
   ============================================================ */
/* Default style for regular price, sale price range, and dynamic variation prices */
.pd-price-box .price,
.pd-price-box p.price,
.pd-price,
.woocommerce-variation-price span.price {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    color: #1a1c1d !important;
    line-height: 1.1 !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
}

/* Reset variation price margins since it sits inside forms */
.woocommerce-variation-price span.price {
    margin: 0 !important;
}

/* Original strikethrough price on top - forces block layout to stack vertically */
.pd-price-box .price del,
.pd-price-box p.price del,
.pd-price del,
.woocommerce-variation-price span.price del {
    display: block !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: #86868b !important;
    /* Muted gray */
    text-decoration: line-through !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.1 !important;
}

/* Main bold sale price underneath - forces block layout to stack vertically */
.pd-price-box .price ins,
.pd-price-box p.price ins,
.pd-price ins,
.woocommerce-variation-price span.price ins {
    display: block !important;
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    color: #1a1c1d !important;
    text-decoration: none !important;
    line-height: 1.1 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}



/* ============================================================
   WOHLER COMPATIBILITY: FLEXBOX & POSITION BULLETPROOF RESET
   ============================================================ */
.sticky-buy-product,
.sticky-buy-product-meta {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    height: 100% !important;
}

.sticky-buy-img-wrap .sticky-buy-thumb,
.sticky-buy-img-wrap img {
    position: static !important;
    /* Force static flow positioning */
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    background-color: #f9fafb !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    /* margin: 0 0.875rem 0 0 !important; Proper margin right, zero rest */
    padding: 4px !important;
    transform: none !important;
    /* Reset vertical shifts */
    display: block !important;
    flex-shrink: 0 !important;
}

.sticky-buy-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    text-align: left !important;
    flex: 1 !important;
    overflow: hidden !important;
}

.sticky-buy-price,
.sticky-buy-price .price,
.sticky-buy-price p.price,
.sticky-buy-price ins,
.sticky-buy-price del {
    font-size: 0.8125rem !important;
    /* 13px */
    font-weight: 600 !important;
    color: #4b5563 !important;
    /* Slate Gray */
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

.sticky-buy-price del {
    text-decoration: line-through !important;
    margin-right: 6px !important;
    font-size: 0.75rem !important;
    color: #86868b !important;
}

/* ============================================================
   WOHLER COMPATIBILITY: MOBILE BREADCRUMBS & GRID ORDER PRESERVATION
   ============================================================ */
@media (max-width: 767px) {
    .sticky-buy-container {
        padding: 0 1rem !important;
    }

    .pd-breadcrumbs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
        font-size: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    /* Optimize product title & price text size */
    .pd-title {
        font-size: 1.625rem !important;
        margin-bottom: 1rem !important;
    }

    .pd-price-box .price,
    .pd-price-box p.price,
    .pd-price,
    .woocommerce-variation-price span.price,
    .pd-price-box .price ins,
    .pd-price-box p.price ins,
    .pd-price ins,
    .woocommerce-variation-price span.price ins {
        font-size: 1.625rem !important;
    }



    /* Ensure the toast notification doesn't overflow on small screens */
    .premium-toast-container {
        right: 16px !important;
        left: 16px !important;
        top: 16px !important;
    }

    .premium-toast {
        min-width: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    /* Make the sticky Add to Cart button smaller on mobile/tablet screens */
    .sticky-buy-btn {
        height: 36px !important;
        padding: 0 1.25rem !important;
        font-size: 0.8125rem !important;
        border-radius: 18px !important;
    }

    .sticky-buy-btn .material-symbols-outlined {
        font-size: 1.1rem !important;
        margin-right: 4px !important;
    }
}

@media (max-width: 480px) {
    .pd-title {
        font-size: 1.375rem !important;
    }

    .pd-price-box .price,
    .pd-price-box p.price,
    .pd-price,
    .woocommerce-variation-price span.price,
    .pd-price-box .price ins,
    .pd-price-box p.price ins,
    .pd-price ins,
    .woocommerce-variation-price span.price ins {
        font-size: 1.375rem !important;
    }
}

/* ==========================================================================
   WooCommerce Variation Button Swatches Styling
   ========================================================================== */

/* ── Swatch group: wrapper for label + pills ── */
.minietech-swatch-group {
    margin-bottom: 1rem;
}

/* ── Dynamic heading: "Attribute: Selected Value" ── */
.minietech-swatch-label {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.minietech-swatch-label-name {
    font-weight: 700;
}

.minietech-swatch-label-value {
    font-weight: 400;
    color: #374151;
}

/* ── Pill buttons container ── */
.minietech-swatches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* ── Individual pill button ── */
.minietech-swatch-btn {
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
    line-height: 1.3;
    white-space: nowrap;
}

.minietech-swatch-btn:hover:not(.disabled):not(:disabled):not(.active) {
    border-color: #111827;
    background: #f3f4f6;
    color: #111827;
}

.minietech-swatch-btn.active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.minietech-swatch-btn.active:hover {
    background: #374151;
    border-color: #374151;
    color: #ffffff;
}

.minietech-swatch-btn.disabled,
.minietech-swatch-btn:disabled,
.minietech-swatch-btn.unavailable {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #b0b8c1;
    cursor: pointer;
    opacity: 0.65;
    position: relative;
    overflow: hidden;
}

/* Premium diagonal strike-through line (Apple / Shopify style) */
.minietech-swatch-btn.disabled::after,
.minietech-swatch-btn:disabled::after,
.minietech-swatch-btn.unavailable::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #c4cacf;
    transform: rotate(-18deg);
    pointer-events: none;
}

/* Active but disabled (unavailable) swatch styling */
.minietech-swatch-btn.active.disabled,
.minietech-swatch-btn.active.unavailable {
    background: #f3f4f6 !important;
    border-color: #111827 !important;
    color: #111827 !important;
    opacity: 1 !important;
}

.minietech-swatch-btn.active.disabled::after,
.minietech-swatch-btn.active.unavailable::after {
    background-color: #111827 !important;
    height: 1.5px !important;
}

/* ── Force table into stacked block layout & hide native label ── */
.variations select {
    display: none !important;
}

.variations {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 0.75rem !important;
}

.variations,
.variations tbody,
.variations tr,
.variations td {
    display: block !important;
    width: 100% !important;
}

.variations tr {
    margin-bottom: 0 !important;
}

.variations td {
    padding: 0 !important;
    vertical-align: top !important;
    border: none !important;
}


.variations td.value {
    padding: 0 !important;
}

/* Hide WooCommerce's "Clear" reset link — not needed.
   Users deselect by clicking the active pill again (same as Apple / Samsung). */
.reset_variations {
    display: none !important;
}

/* ============================================================
   PREMIUM IMAGE ZOOM LIGHTBOX MODAL
   ============================================================ */
.pd-zoom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    /* Extremely high z-index to overlay all pages & menus */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInLightbox 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInLightbox {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.pd-zoom-lightbox.fade-out {
    animation: fadeOutLightbox 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
}

@keyframes fadeOutLightbox {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.pd-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.pd-lightbox-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pd-lightbox-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.pd-lightbox-zoom-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    gap: 12px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pd-zoom-ctrl-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pd-zoom-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.pd-zoom-ctrl-btn:active {
    transform: translateY(0);
}

.pd-lightbox-content {
    position: relative;
    width: 90%;
    height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.pd-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    transition: transform 0.1s ease-out;
    /* minor lag buffer for smooth wheel/controls zoom */
    cursor: zoom-in;
}

/* Custom Floating Sticky Buy Bar for Desktop Viewport */
@media (min-width: 1024px) {
    .sticky-buy-bar {
        top: auto !important;
        bottom: 24px;
        left: 50% !important;
        right: auto !important;
        width: 90%;
        max-width: 960px;
        height: 84px;
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        border-radius: 20px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
        transform: translateX(-50%) translateY(120px) !important;
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
    }

    .sticky-buy-bar.is-visible {
        transform: translateX(-50%) translateY(0) !important;
        opacity: 1 !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
    }

    .sticky-buy-container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 2rem !important;
    }
}