/* 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;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.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;
}

/* Main Layout Grid with areas */
.pd-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    grid-template-areas:
        "gallery"
        "details"
        "accordions";
}

.pd-gallery-area {
    grid-area: gallery;
}

.pd-details-area {
    grid-area: details;
}

.block-spacing--product {
    grid-area: accordions;
}

@media (min-width: 992px) {
    .pd-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
        grid-template-areas:
            "gallery details"
            "gallery accordions";
        align-items: flex-start;
    }
}

/* Gallery Area */
.pd-gallery-area {
    display: flex;
    flex-direction: column-reverse;
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .pd-gallery-area {
        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 {
    margin-bottom: 1rem;
}

.pd-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.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: 480px) {
    .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;
}

/* ============================================================
   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;
}

/* 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 dropdown selectors */
form.cart table.variations {
    width: 100% !important;
    border: none !important;
    margin-bottom: 1rem !important;
    border-collapse: collapse !important;
    background: transparent !important;
}

form.cart table.variations td {
    border: none !important;
    padding: 8px 0 !important;
    background: transparent !important;
}

form.cart table.variations td.label {
    width: 90px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #1a1c1d !important;
    vertical-align: middle !important;
    text-align: left !important;
    padding-right: 12px !important;
}

form.cart table.variations td.value select {
    width: 100% !important;
    max-width: 320px !important;
    height: 44px !important;
    border: 1.5px solid #d2d2d6 !important;
    border-radius: 8px !important;
    padding: 0 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    color: #1a1c1d !important;
    background-color: #ffffff !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
}

form.cart table.variations td.value select:focus {
    border-color: #1a1c1d !important;
}

/* Dynamic variations price wrapper */
.woocommerce-variation-price {
    margin-bottom: 1.5rem !important;
    display: block !important;
}

.woocommerce-variation-price span.price {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1a1c1d !important;
    display: block !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;
    }

    /* Optimize variations table to prevent overflow */
    form.cart table.variations,
    form.cart table.variations tbody,
    form.cart table.variations tr,
    form.cart table.variations td {
        display: block !important;
        width: 100% !important;
    }

    form.cart table.variations td.label {
        width: 100% !important;
        padding-bottom: 4px !important;
        text-align: left !important;
    }

    form.cart table.variations td.value select {
        max-width: 100% !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;
    }
}

