/* ==========================================================================
   Figma Exact Product Detail Page Styles (Image Match)
   Scoped to .figma-product-detail-page
   ========================================================================== */

.figma-product-detail-page {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111827;
    background-color: #ffffff;
    padding-bottom: 80px;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Wide Container (Matches Figma canvas width, eliminates empty side gutters)
   -------------------------------------------------------------------------- */
.figma-container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 36px;
    padding-right: 36px;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. Clean Breadcrumb (Matches Figma)
   -------------------------------------------------------------------------- */
.figma-breadcrumb-wrap {
    padding: 16px 0 20px 0;
    background: transparent;
}

.figma-breadcrumb {
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.figma-breadcrumb a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
}

.figma-breadcrumb a:hover {
    color: #2B7BF6;
    text-decoration: underline;
}

.figma-breadcrumb .sep {
    margin: 0 8px;
    color: #9CA3AF;
}

.figma-breadcrumb .current {
    color: #111827;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   2. Main Product 3-Column Layout (Figma Exact Proportions)
   -------------------------------------------------------------------------- */
.figma-main-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -16px;
    margin-right: -16px;
    align-items: flex-start;
}

/* Column 1: Gallery (~47% width for large prominent hero image) */
.figma-gallery-col-wrap {
    flex: 0 0 47%;
    max-width: 47%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.figma-gallery-col {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

/* Vertical Thumbnails List */
.figma-thumbnails-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 72px;
    flex-shrink: 0;
}

.figma-thumb-item {
    width: 72px;
    height: 72px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #ffffff;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.figma-thumb-item:hover {
    border-color: #9CA3AF;
}

.figma-thumb-item.active {
    border-color: #2B7BF6;
    box-shadow: 0 0 0 1px #2B7BF6;
}

.figma-thumb-item img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

/* Video badge overlay on thumbnail */
.figma-thumb-video-badge {
    position: absolute;
    width: 26px;
    height: 26px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.figma-thumb-video-badge i {
    color: #ffffff;
    font-size: 11px;
    margin-left: 2px;
}

/* Main Image Card (Expanded for Large Clear Product Presentation) */
.figma-main-image-box {
    flex: 1;
    min-height: 520px;
    height: 520px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px 20px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.figma-main-image-box img#mainProductImage {
    max-width: 95%;
    max-height: 480px;
    width: 70%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
    transition: opacity 0.2s ease;
}

/* Carousel Chevron Arrows */
.figma-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    color: #111827;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    z-index: 2;
    outline: none;
}

.figma-carousel-arrow:hover {
    color: #2B7BF6;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(43, 123, 246, 0.2);
    transform: translateY(-50%) scale(1.08);
}

.figma-carousel-prev {
    left: 8px;
}

.figma-carousel-next {
    right: 8px;
}

/* --------------------------------------------------------------------------
   Column 2: Center Product Information (~31% width)
   -------------------------------------------------------------------------- */
.figma-info-col-wrap {
    flex: 0 0 31%;
    max-width: 31%;
    padding-left: 18px;
    padding-right: 18px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.figma-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
    margin-top: 0;
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: -0.2px;
}

/* Stars Rating Row */
.figma-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.figma-stars {
    display: inline-flex;
    gap: 3px;
    color: #06B6D4; /* Exact teal/cyan from Figma */
    font-size: 15px;
}

.figma-stars .fa-star,
.figma-stars .fa-star-half-o {
    color: #06B6D4;
}

.figma-stars .fa-star-o {
    color: #D1D5DB;
}

.figma-rating-text {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-left: 4px;
}

/* Stacked Prices (Dark Rose from Figma) */
.figma-prices-wrap {
    margin-bottom: 22px;
}

.figma-price-retail {
    font-size: 17.5px;
    font-weight: 600;
    color: #C43958; /* Exact rose/berry from Figma */
    line-height: 1.4;
    margin-bottom: 4px;
}

.figma-price-autoship {
    font-size: 17.5px;
    font-weight: 600;
    color: #C43958; /* Exact rose/berry from Figma */
    line-height: 1.4;
}

/* Description text & Headings formatting */
.figma-description {
    font-size: 14px;
    line-height: 1.65;
    color: #374151;
}

    .figma-description h1,
    .figma-description h2,
    .figma-description h3,
    .figma-description h4 {
        font-size: 16px;
        font-weight: 700;
        color: #111827;
        margin-top: 10px;
        margin-bottom: 8px;
        line-height: 1.35;
    }

.figma-description h1:first-child,
.figma-description h2:first-child,
.figma-description h3:first-child,
.figma-description h4:first-child {
    margin-top: 0;
}

.figma-description p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 10px;
}

.figma-description ul {
    padding-left: 18px;
    margin-bottom: 10px;
}

.figma-description li {
    font-size: 13.5px;
    line-height: 1.55;
    color: #374151;
    margin-bottom: 6px;
}

/* Description Clamping & Fade for Clean 3-Column Balance */
.figma-description-wrap {
    position: relative;
    margin-bottom: 6px;
    transition: max-height 0.3s ease;
}

.figma-description-wrap.is-clamped {
    max-height: 135px;
    overflow: hidden;
}

.figma-description-wrap.is-clamped .figma-description-fade {
    display: block;
}

.figma-description-wrap.is-expanded {
    max-height: none;
    overflow: visible;
}

.figma-description-wrap.is-expanded .figma-description-fade {
    display: none;
}

.figma-description-fade {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 70%, #ffffff 100%);
    pointer-events: none;
}

/* Actions Row: Read More & Drawer Trigger */
.figma-description-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.figma-btn-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 0;
    color: #2B7BF6;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    transition: color 0.15s ease;
}

.figma-btn-readmore:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

.figma-btn-readmore i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

/* Middle column jump pill / drawer trigger */
.figma-details-jump-wrap,
.figma-details-drawer-trigger-wrap {
    margin-top: 0;
    margin-bottom: 0;
}

.figma-btn-details-drawer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #F0F6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    color: #1D4ED8 !important;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(29, 78, 216, 0.05);
    outline: none;
}

.figma-btn-details-drawer:hover {
    background: #DBEAFE;
    border-color: #93C5FD;
    color: #1E40AF !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(29, 78, 216, 0.1);
    text-decoration: none !important;
}

.figma-btn-details-drawer i.fa-info-circle,
.figma-btn-details-drawer i.fa-file-text-o {
    color: #2563EB;
    font-size: 14.5px;
}

.figma-btn-details-drawer i.fa-angle-right {
    font-size: 14.5px;
    color: #3B82F6;
    transition: transform 0.2s ease;
}

.figma-btn-details-drawer:hover i.fa-angle-right {
    transform: translateX(3px);
}

.figma-additional-details-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #F1F5F9;
    color: #2B7BF6 !important;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.figma-additional-details-pill:hover {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1D4ED8 !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.figma-additional-details-pill i.fa-angle-down {
    transition: transform 0.2s ease;
}

.figma-additional-details-pill:hover i.fa-angle-down {
    transform: translateY(2px);
}

/* --------------------------------------------------------------------------
   Full-Width Product Details & Specifications Section (Clean & Spacious)
   -------------------------------------------------------------------------- */
.figma-details-section {
    margin-top: 40px;
    margin-bottom: 24px;
    width: 100%;
}

.figma-details-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.figma-details-header {
    background: #F8FAFC;
    border-bottom: 1px solid #E5E7EB;
    padding: 16px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.15s ease;
    user-select: none;
}

.figma-details-header:hover {
    background: #F1F5F9;
}

.figma-details-header-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}

.figma-details-header-title i {
    color: #2B7BF6;
    font-size: 18px;
}

.figma-details-header-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.figma-details-header:hover .figma-details-header-toggle {
    color: #0F172A;
    border-color: #94A3B8;
}

.figma-details-body {
    padding: 28px 32px;
    font-size: 14.5px;
    line-height: 1.7;
    color: #374151;
}

.figma-details-block {
    margin-bottom: 20px;
}

.figma-details-block:last-child {
    margin-bottom: 0;
}

.figma-details-body h1,
.figma-details-body h2,
.figma-details-body h3,
.figma-details-body h4,
.figma-details-body h5 {
    color: #111827;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.35;
}

.figma-details-body h1:first-child,
.figma-details-body h2:first-child,
.figma-details-body h3:first-child,
.figma-details-block:first-child > h1:first-child,
.figma-details-block:first-child > h2:first-child,
.figma-details-block:first-child > h3:first-child {
    margin-top: 0;
}

.figma-details-body p {
    margin-bottom: 12px;
    line-height: 1.65;
}

.figma-details-body ul {
    padding-left: 24px;
    margin-bottom: 16px;
    list-style-type: disc;
}

.figma-details-body li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.figma-details-body strong,
.figma-details-body b {
    color: #111827;
    font-weight: 600;
}

.figma-details-body a {
    color: #2B7BF6;
    text-decoration: underline;
    word-break: break-all;
}

.figma-details-body a:hover {
    color: #1E6DE0;
}

.figma-details-doc-box {
    margin-top: 24px;
    padding: 16px 20px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
}

.figma-doc-download-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: #2B7BF6 !important;
    text-decoration: none !important;
}

.figma-doc-download-link:hover {
    color: #1E6DE0 !important;
    text-decoration: underline !important;
}

.figma-description p {
    font-size: 14px;
    line-height: 1.65;
    color: #374151;
    margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Column 3: Right Sidebar (~22% width: Buy Box + Supplement Facts)
   -------------------------------------------------------------------------- */
.figma-sidebar-col-wrap {
    flex: 0 0 22%;
    max-width: 22%;
    padding-left: 12px;
    padding-right: 16px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

/* Buy Box Card */
.figma-buybox-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #ffffff;
    padding: 18px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: 100%;
}

.figma-qty-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.figma-group-members-wrap {
    margin-bottom: 14px;
}

.figma-group-select {
    width: 100%;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    padding: 6px 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: #111827;
    background-color: #FFFFFF;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.figma-group-select:focus {
    border-color: #2B7BF6;
    box-shadow: 0 0 0 3px rgba(43, 123, 246, 0.15);
}

/* Quantity Box: [- 1 +] */
.figma-qty-control {
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    width: 94px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    background: #ffffff;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.figma-qty-btn {
    border: none;
    background: transparent;
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    width: 26px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    padding: 0;
    user-select: none;
}

.figma-qty-btn:hover {
    color: #111827;
    background: #F3F4F6;
    border-radius: 4px;
}

.figma-qty-input {
    width: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    outline: none;
    padding: 0;
}

.figma-qty-input::-webkit-outer-spin-button,
.figma-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.figma-qty-input[type=number] {
    -moz-appearance: textfield;
}

/* Refined "Add To Cart" Button */
.figma-btn-addtocart {
    width: 100%;
    height: 38px;
    background-color: #2B7BF6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 8px;
    letter-spacing: 0.1px;
}

.figma-btn-addtocart:hover {
    background-color: #1E6DE0 !important;
    box-shadow: 0 4px 10px rgba(43, 123, 246, 0.25);
}

.figma-btn-addtocart i {
    font-size: 13.5px;
}

/* "Or" text divider */
.figma-or-divider {
    text-align: center;
    font-size: 11.5px;
    color: #9CA3AF;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Outline "Add To Auto Order" Button */
.figma-btn-autoorder {
    width: 100%;
    height: 38px;
    background-color: #ffffff !important;
    border: 1px solid #2B7BF6 !important;
    color: #2B7BF6 !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.1px;
}

.figma-btn-autoorder:hover {
    background-color: #F0F7FF !important;
    border-color: #1E6DE0 !important;
    color: #1E6DE0 !important;
}

.figma-btn-autoorder i {
    font-size: 13.5px;
}

/* Supplement Facts Box (Card matching Buy Box) */
.figma-supplement-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #ffffff;
    padding: 16px 16px;
    margin-top: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: 100%;
}

.figma-supplement-heading {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.figma-supplement-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}

.figma-supplement-link:hover .figma-click-details {
    color: #2B7BF6;
}

.figma-pdf-icon {
    width: 32px;
    height: 40px;
    flex-shrink: 0;
    display: block;
}

.figma-supplement-text {
    display: flex;
    flex-direction: column;
}

.figma-click-details {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.figma-item-code {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   3. Customer Ratings & Reviews Section (Bottom of Figma)
   -------------------------------------------------------------------------- */
.figma-reviews-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid #E5E7EB;
    width: 100%;
}

.figma-ratings-summary-col {
    padding-right: 28px;
}

.figma-reviews-heading {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.figma-reviews-avg {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.figma-reviews-stars-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.figma-reviews-ratings-count {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

/* Outline Buttons (View All Reviews & Write A Review) */
.figma-btn-outline-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #2B7BF6 !important;
    background-color: #FFFFFF !important;
    color: #2B7BF6 !important;
    font-family: var(--figma-font, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 22px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    outline: none;
    white-space: nowrap;
}

.figma-btn-outline-blue:hover {
    background-color: #2B7BF6 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(43, 123, 246, 0.25);
    text-decoration: none;
}

.figma-btn-view-all-reviews {
    margin-bottom: 4px;
}

.figma-btn-write-review {
    padding: 9px 24px;
}

/* Divider line */
.figma-reviews-divider {
    border: none;
    height: 1px;
    background-color: #E5E7EB;
    margin: 18px 0;
}

/* Rating Breakdown Rows */
.figma-rating-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.figma-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 6px;
    transition: background-color 0.15s ease;
    user-select: none;
}

.figma-breakdown-row:hover {
    background-color: #F8FAFC;
}

.figma-breakdown-row.is-active {
    background-color: #EFF6FF;
}

.figma-breakdown-row.is-active .figma-breakdown-label {
    color: #2B7BF6;
    font-weight: 700;
}

.figma-breakdown-label {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    width: 46px;
    flex-shrink: 0;
}

.figma-breakdown-track {
    flex: 1;
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 100px;
    margin: 0 12px;
    overflow: hidden;
}

.figma-breakdown-fill {
    height: 100%;
    background-color: #2B7BF6;
    border-radius: 100px;
    transition: width 0.3s ease;
}

.figma-breakdown-stats {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    min-width: 68px;
    text-align: right;
    flex-shrink: 0;
}

/* Individual Review Card */
.figma-review-row {
    display: flex;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
}

.figma-review-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Author Avatar & Meta */
.figma-review-author-wrap {
    width: 150px;
    flex-shrink: 0;
    display: flex;
    gap: 12px;
}

.figma-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #F3F4F6;
    border: 1px solid #E5E7EB;
    color: #4B5563;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.figma-author-meta {
    display: flex;
    flex-direction: column;
}

.figma-author-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.figma-sold-label {
    font-size: 12px;
    color: #6B7280;
    margin-top: 6px;
    line-height: 1.2;
}

.figma-sold-company {
    font-size: 12px;
    font-weight: 500;
    color: #111827;
}

/* Review Details */
.figma-review-body-wrap {
    flex: 1;
}

.figma-review-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.figma-review-stars-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.figma-review-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.figma-review-date {
    font-size: 13px;
    color: #6B7280;
    white-space: nowrap;
}

.figma-review-comment {
    font-size: 14px;
    line-height: 1.65;
    color: #374151;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
    .figma-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .figma-gallery-col-wrap {
        flex: 0 0 44%;
        max-width: 44%;
    }

    .figma-info-col-wrap {
        flex: 0 0 32%;
        max-width: 32%;
        padding-left: 14px;
        padding-right: 16px;
    }

    .figma-sidebar-col-wrap {
        flex: 0 0 24%;
        max-width: 24%;
    }

    .figma-main-image-box {
        min-height: 440px;
        height: 440px;
    }

    .figma-main-image-box img#mainProductImage {
        max-height: 400px;
    }
}

@media (max-width: 991px) {
    .figma-main-row {
        margin-left: 0;
        margin-right: 0;
    }

    .figma-gallery-col-wrap,
    .figma-info-col-wrap,
    .figma-sidebar-col-wrap {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 24px;
    }

    .figma-main-image-box {
        min-height: 400px;
        height: 420px;
    }

    .figma-sidebar-col-wrap {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
    }

    .figma-buybox-card,
    .figma-supplement-card {
        flex: 1 1 280px;
        margin-top: 0;
    }

    .figma-ratings-summary-col {
        padding-right: 0;
        margin-bottom: 28px;
    }
}

@media (max-width: 768px) {
    .figma-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .figma-breadcrumb-wrap {
        padding: 10px 0 14px 0;
    }

    .figma-breadcrumb {
        font-size: 12.5px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Gallery: Hero Product Image on top, Thumbnails row below */
    .figma-gallery-col {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .figma-main-image-box {
        order: 1;
        width: 100%;
        min-height: 280px;
        height: 330px;
        max-height: 350px;
        padding: 14px 16px;
        border-radius: 12px;
    }

    .figma-main-image-box img#mainProductImage {
        max-width: 90%;
        max-height: 280px;
        width: 70%;
        height: auto;
        object-fit: contain;
    }

    .figma-carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 18px;
        left: 6px;
    }

    .figma-carousel-next {
        left: auto;
        right: 6px;
    }

    .figma-thumbnails-list {
        order: 2;
        display: flex;
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding: 4px 2px 6px 2px;
        margin: 0;
        justify-content: flex-start;
    }

    .figma-thumb-item {
        flex: 0 0 62px;
        width: 62px;
        height: 62px;
        border-radius: 8px;
        padding: 4px;
    }

    .figma-thumb-video-badge {
        width: 22px;
        height: 22px;
    }

    .figma-thumb-video-badge i {
        font-size: 10px;
    }

    /* Middle Column Info */
    .figma-title {
        font-size: 20px;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .figma-rating-row {
        margin-bottom: 12px;
    }

    .figma-prices-wrap {
        margin-bottom: 14px;
    }

    .figma-price-retail,
    .figma-price-autoship {
        font-size: 16.5px;
    }

    .figma-description {
        font-size: 13.5px;
        line-height: 1.6;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .figma-description img,
    .figma-description table,
    .figma-description iframe {
        max-width: 100%;
        height: auto;
    }

    .figma-description table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .figma-description-actions {
        margin-top: 10px;
        margin-bottom: 12px;
        gap: 10px;
        width: 100%;
    }

    .figma-details-drawer-trigger-wrap {
        width: 100%;
    }

    .figma-btn-details-drawer {
        width: 100%;
        display: flex;
        justify-content: center;
        text-align: center;
        padding: 10px 16px;
        font-size: 13.5px;
    }

    /* Sidebar Buy Box */
    .figma-sidebar-col-wrap {
        flex-direction: column;
        gap: 12px;
    }

    .figma-buybox-card,
    .figma-supplement-card {
        width: 100%;
        flex: none;
    }

    .figma-buybox-card {
        padding: 16px 14px;
    }

    .figma-qty-control {
        width: 100px;
        height: 38px;
        margin-bottom: 14px;
    }

    .figma-qty-btn {
        width: 32px;
        font-size: 18px;
    }

    .figma-qty-input {
        font-size: 15px;
    }

    .figma-btn-addtocart,
    .figma-btn-autoorder {
        height: 42px;
        font-size: 14px;
        border-radius: 8px;
    }

    .figma-supplement-card {
        padding: 14px 16px;
        margin-top: 0;
        border-radius: 12px;
    }

    /* Reviews & Ratings Section */
    .figma-reviews-section {
        margin-top: 28px;
        padding-top: 20px;
    }

    .figma-reviews-heading {
        font-size: 18px;
    }

    .figma-btn-view-all-reviews,
    .figma-btn-write-review {
        width: 100%;
        max-width: 100%;
        padding: 10px 16px;
    }

    .figma-breakdown-row {
        padding: 4px 4px;
    }

    .figma-breakdown-label {
        font-size: 13.5px;
        width: 44px;
    }

    .figma-breakdown-track {
        margin: 0 8px;
    }

    .figma-breakdown-stats {
        font-size: 13.5px;
        min-width: 64px;
    }

    .figma-review-row {
        flex-direction: column;
        gap: 12px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .figma-review-author-wrap {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .figma-author-avatar {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .figma-review-body-wrap {
        width: 100%;
    }

    .figma-review-header-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 6px;
    }

    .figma-review-stars-title-wrap {
        gap: 6px;
    }

    .figma-review-title {
        font-size: 14.5px;
    }

    .figma-review-date {
        font-size: 12px;
    }

    .figma-review-comment {
        font-size: 13.5px;
        line-height: 1.6;
        word-break: break-word;
    }

    /* Slide-Out Drawer on Mobile */
    .figma-details-drawer-modal .modal-dialog-drawer {
        width: 100%;
        max-width: 100%;
    }

    .figma-drawer-header {
        padding: 16px 18px;
    }

    .figma-drawer-title {
        font-size: 17px;
    }

    .figma-drawer-subtitle {
        font-size: 12.5px;
    }

    .figma-drawer-body {
        padding: 18px 18px;
        font-size: 13.5px;
    }

    .figma-drawer-footer {
        padding: 12px 18px;
    }

    /* Review Modal on Mobile */
    #write-review-modal .modal-dialog {
        margin: 12px auto;
        max-width: calc(100% - 24px);
        width: auto;
    }
}

@media (max-width: 400px) {
    .figma-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .figma-main-image-box {
        height: 290px;
        min-height: 250px;
        padding: 10px 12px;
    }

    .figma-main-image-box img#mainProductImage {
        max-height: 240px;
    }

    .figma-thumb-item {
        flex: 0 0 54px;
        width: 54px;
        height: 54px;
    }

    .figma-title {
        font-size: 18px;
    }

    .figma-price-retail,
    .figma-price-autoship {
        font-size: 15.5px;
    }

    .figma-breakdown-label {
        font-size: 12.5px;
        width: 40px;
    }

    .figma-breakdown-track {
        margin: 0 6px;
    }

    .figma-breakdown-stats {
        font-size: 12.5px;
        min-width: 58px;
    }
}

/* ==========================================================================
   APPLICATION UNIFORM REVIEW MODAL (#write-review-modal)
   ========================================================================== */
#write-review-modal .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}

#write-review-modal .modal-content {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #FFFFFF;
}

#write-review-modal .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#write-review-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

#write-review-modal .close {
    padding: 0;
    margin: 0;
    font-size: 24px;
    color: #6C757D;
    opacity: 0.7;
    background: transparent;
    border: none;
    line-height: 1;
    cursor: pointer;
}

#write-review-modal .close:hover {
    color: #000000;
    opacity: 1;
}

#write-review-modal .modal-body {
    padding: 20px;
    background: #FFFFFF;
}

#write-review-modal .text-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

#write-review-modal .star-rating-container {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

#write-review-modal .star-rating {
    display: flex;
    gap: 6px;
}

#write-review-modal .star-rating .fa-star,
#write-review-modal .star-rating .fas {
    font-size: 22px;
    color: #D1D5DB;
    cursor: pointer;
    transition: color 0.15s ease;
    user-select: none;
}

#write-review-modal .star-rating .fa-star.checked,
#write-review-modal .star-rating .fas.checked {
    color: #FFB800 !important; /* Application gold star */
}

#write-review-modal .form-control {
    border: 1px solid #CED4DA;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #495057;
    background-color: #FFFFFF;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

#write-review-modal .form-control:focus {
    border-color: #80BDFF;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#write-review-modal textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

#write-review-modal .modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #E5E7EB;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#write-review-modal #saveReviewBtn,
#write-review-modal .btn-save-review-color {
    background-color: #2B7BF6 !important;
    border: 1px solid #2B7BF6 !important;
    color: #FFFFFF !important;
    font-family: var(--figma-font, 'Montserrat', sans-serif);
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 9px 22px !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
    box-shadow: none !important;
}

#write-review-modal #saveReviewBtn:hover,
#write-review-modal .btn-save-review-color:hover {
    background-color: #1E6DE0 !important;
    border-color: #1E6DE0 !important;
}

#write-review-modal #saveReviewBtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ==========================================================================
   ADDITIONAL DETAILS SLIDE-OUT DRAWER MODAL
   ========================================================================== */
.figma-details-drawer-modal {
    padding-right: 0 !important;
}

.figma-details-drawer-modal .modal-dialog-drawer {
    position: fixed;
    margin: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 480px;
    max-width: 92vw;
    height: 100%;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1050;
}

.figma-details-drawer-modal.in .modal-dialog-drawer,
.figma-details-drawer-modal.show .modal-dialog-drawer {
    transform: translate3d(0, 0, 0);
}

.figma-details-drawer-modal .modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
}

/* Drawer Header */
.figma-drawer-header {
    padding: 20px 24px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-shrink: 0;
}

.figma-drawer-header-info {
    flex: 1;
    padding-right: 16px;
}

.figma-drawer-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2563EB;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.figma-drawer-title {
    font-size: 19px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.figma-drawer-subtitle {
    font-size: 13px;
    color: #64748B;
    margin: 0;
    line-height: 1.4;
}

.figma-drawer-close {
    font-size: 28px;
    font-weight: 300;
    color: #64748B;
    opacity: 0.7;
    background: transparent;
    border: none;
    line-height: 1;
    padding: 0;
    margin: -4px 0 0 0;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.figma-drawer-close:hover {
    opacity: 1;
    color: #0F172A;
}

/* Drawer Body (Scrollable) */
.figma-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px 28px;
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
    -webkit-overflow-scrolling: touch;
}

/* Drawer Sections */
.figma-drawer-section {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #E2E8F0;
}

.figma-drawer-section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.figma-drawer-section-heading {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin-top: 0;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    letter-spacing: -0.1px;
}

.figma-drawer-desc-full {
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
}

.figma-drawer-desc-full h1,
.figma-drawer-desc-full h2,
.figma-drawer-desc-full h3,
.figma-drawer-desc-full h4 {
    font-size: 16px;
    font-weight: 700;
    color: #C43958;
    margin-top: 14px;
    margin-bottom: 8px;
    line-height: 1.35;
}

.figma-drawer-desc-full h1:first-child,
.figma-drawer-desc-full h2:first-child,
.figma-drawer-desc-full h3:first-child,
.figma-drawer-desc-full h4:first-child {
    margin-top: 0;
}

.figma-drawer-desc-full p {
    margin-bottom: 12px;
    line-height: 1.65;
}

.figma-drawer-desc-full ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.figma-drawer-desc-full li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.figma-drawer-content-block {
    margin-bottom: 20px;
}

.figma-drawer-content-block:last-child {
    margin-bottom: 0;
}

.figma-drawer-content-block h1,
.figma-drawer-content-block h2,
.figma-drawer-content-block h3,
.figma-drawer-content-block h4,
.figma-drawer-content-block h5 {
    color: #0F172A;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 10px;
    line-height: 1.35;
}

.figma-details-drawer-modal h1,
.figma-drawer-body h1,
.figma-drawer-content-block h1 {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
}

.figma-details-drawer-modal h2,
.figma-drawer-body h2,
.figma-drawer-content-block h2 {
    font-size: 1rem !important;
    line-height: 1.4 !important;
}

.figma-details-drawer-modal h3,
.figma-drawer-body h3,
.figma-drawer-content-block h3 {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

.figma-details-drawer-modal h4,
.figma-drawer-body h4,
.figma-drawer-content-block h4,
.figma-details-drawer-modal h5,
.figma-drawer-body h5,
.figma-drawer-content-block h5 {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

.figma-drawer-content-block h1:first-child,
.figma-drawer-content-block h2:first-child,
.figma-drawer-content-block h3:first-child,
.figma-drawer-content-block h4:first-child {
    margin-top: 0;
}

.figma-drawer-content-block p {
    margin-bottom: 12px;
}

.figma-drawer-content-block ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.figma-drawer-content-block li {
    margin-bottom: 6px;
}

.figma-drawer-content-block strong,
.figma-drawer-content-block b {
    color: #0F172A;
    font-weight: 600;
}

.figma-drawer-content-block a {
    color: #2563EB;
    text-decoration: underline;
    word-break: break-all;
}

.figma-drawer-doc-box {
    margin-top: 16px;
    padding: 14px 18px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
}

.figma-drawer-doc-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.figma-drawer-doc-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #2563EB !important;
    text-decoration: none !important;
    font-size: 13.5px;
}

.figma-drawer-doc-link:hover {
    color: #1D4ED8 !important;
    text-decoration: underline !important;
}

/* Drawer Footer */
.figma-drawer-footer {
    padding: 16px 24px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.figma-btn-drawer-addtocart {
    width: 100%;
    background-color: #2B7BF6 !important;
    color: #FFFFFF !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.figma-btn-drawer-addtocart:hover {
    background-color: #1E6DE0 !important;
    color: #FFFFFF !important;
}

