/* ========================================
   DAZZLE USA - PRODUCT DETAILS PAGE (FRESH)
   Modern, Conversion-Focused, Fully Responsive
   ======================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on all devices */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* === PRODUCT CONTENT WRAPPER === */
.product-details-wrapper {
    background: #f9fafb;
    padding: 2rem 0;
    min-height: 100vh;
}

.product-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === MAIN PRODUCT SECTION === */
.product-main-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* === TWO COLUMN LAYOUT (DESKTOP) === */
.product-layout {
    display: grid;
    /* Image gets 45%, Content gets 55% for better readability on wide screens */
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

/* === LEFT: IMAGE GALLERY SECTION (MAIN PRODUCT ONLY) === */
.product-main-section .product-image-section {
    position: sticky;
    top: 100px;
    height: auto !important;
    overflow: visible !important;
}

/* Main Image Container */
.main-image-wrapper {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    cursor: zoom-in;
    aspect-ratio: 1;
    width: 100%;
    max-width: 100%;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.main-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Discount Badge */
.product-discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Gallery Thumbnails - SINGLE HORIZONTAL LINE */
.gallery-thumbnails-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.75rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    padding: 0.5rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
    visibility: visible !important;
    opacity: 1 !important;
}

.gallery-thumbnails-container::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbnails-container::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 4px;
}

.gallery-thumbnails-container::-webkit-scrollbar-thumb {
    background: #9333ea;
    border-radius: 4px;
}

.gallery-thumbnail {
    flex: 0 0 80px;
    min-width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.gallery-thumbnail:hover {
    border-color: #9333ea;
    transform: translateY(-2px);
}

.gallery-thumbnail.active {
    border-color: #9333ea;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === RIGHT: PRODUCT INFO SECTION === */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Category Badge */
.product-category-badge {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9333ea;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-category-badge:hover {
    color: #7e22ce;
}

/* Product Title */
.product-title-main {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin: 0;
}

/* Rating Section */
.product-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 1rem;
}

.rating-count {
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
}

.rating-count:hover {
    color: #9333ea;
}

/* Price Section */
.product-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.price-original {
    font-size: 1.125rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 600;
}

.price-sale {
    font-size: 2.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stock Status */
.stock-status-wrapper {
    margin-top: -0.5rem;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
}

.stock-badge.in-stock {
    background: #d1fae5;
    color: #065f46;
}

.stock-badge.low-stock {
    background: #fed7aa;
    color: #92400e;
}

.stock-badge.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

/* Product Highlights */
.product-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.product-highlights-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #4b5563;
    font-size: 0.9375rem;
}

.product-highlights-list i {
    color: #10b981;
    font-size: 1rem;
}

/* === VARIANT SELECTOR === */
.variant-selector-wrapper {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

/* Error state when variant not selected */
.variant-selector-wrapper.variant-error,
#variantSelectorContainer.variant-error {
    border: 3px solid #ef4444 !important;
    background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Shake animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}

.shake-animation {
    animation: shake 0.6s ease-in-out;
}

.variant-group {
    margin-bottom: 1.25rem;
}

.variant-group:last-child {
    margin-bottom: 0;
}

.variant-label {
    font-weight: 700;
    font-size: 0.875rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: block;
}

.variant-options-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.625rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.variant-options-container::-webkit-scrollbar {
    height: 6px;
}

.variant-options-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.variant-options-container::-webkit-scrollbar-thumb {
    background: #9333ea;
    border-radius: 10px;
}

.variant-options-container::-webkit-scrollbar-thumb:hover {
    background: #7e22ce;
}

/* Text-based variant option */
.variant-option-btn {
    padding: 0.625rem 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    transition: all 0.3s ease;
}

.variant-option-btn:hover {
    border-color: #9333ea;
    transform: translateY(-1px);
}

.variant-option-btn.active {
    border-color: #9333ea;
    background: #9333ea;
    color: white;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

.variant-option-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Image-based variant option - Updated: 20251227_173542 FORCE CACHE RELOAD */
.variant-option.gallery-thumbnail {
    flex: 0 0 80px;
    min-width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

/* CRITICAL FIX: Variant image thumbnails MUST be 80px */
.variant-option-image {
    flex: 0 0 80px !important;
    min-width: 80px !important;
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden !important;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    display: inline-block;
}

.variant-option-image:hover {
    border-color: #9333ea;
    transform: translateY(-1px);
}

.variant-option-image.active {
    border-color: #9333ea;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

.variant-option-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Color circle variant */
.variant-option-color {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.variant-option-color:hover {
    transform: scale(1.1);
}

.variant-option-color.active {
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

.variant-option-color.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

/* === QUANTITY SELECTOR === */
.quantity-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-label {
    font-weight: 700;
    color: #374151;
    font-size: 0.9375rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f9fafb;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    color: #9333ea;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #9333ea;
    color: white;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}

/* === ACTION BUTTONS === */
.action-buttons-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-primary-action,
.btn-secondary-action {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-action {
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    color: white;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.btn-secondary-action {
    background: white;
    color: #9333ea;
    border: 2px solid #9333ea;
}

.btn-secondary-action:hover {
    background: rgba(147, 51, 234, 0.05);
    transform: translateY(-2px);
}

.btn-primary-action:disabled,
.btn-secondary-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* === TABS SECTION === */
.product-tabs-wrapper {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.tabs-header {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    color: #9333ea;
}

.tab-btn.active {
    color: #9333ea;
    border-bottom-color: #9333ea;
}

.tabs-content {
    min-height: 250px;
}

.tab-content-panel {
    display: none !important;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.tab-content-panel.active {
    display: block !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    min-height: 200px;
}

/* Removed fadeInUp animation - it was causing opacity:0 bug */

.description-wrapper {
    max-width: 900px;
    height: auto !important;
    min-height: 100px;
}

/* Description Content - Rich HTML Styling */
.description-content {
    color: #4b5563;
    line-height: 1.8;
    font-size: 0.9375rem;
}

.description-content img {
    width: 100%;
    height: auto;
    margin: 1.25rem 0;
    border-radius: 8px;
    display: block;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.description-content h1 {
    font-size: 1.75rem;
}

.description-content h2 {
    font-size: 1.5rem;
}

.description-content h3 {
    font-size: 1.25rem;
}

.description-content h4 {
    font-size: 1.125rem;
}

.description-content p {
    margin-bottom: 1rem;
}

.description-content ul,
.description-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.description-content li {
    margin-bottom: 0.5rem;
}

.description-content strong {
    font-weight: 700;
    color: #1f2937;
}

.description-content em {
    font-style: italic;
}

.description-content a {
    color: #9333ea;
    text-decoration: underline;
    transition: color 0.2s;
}

.description-content a:hover {
    color: #7e22ce;
}

.description-content blockquote {
    border-left: 4px solid #9333ea;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #6b7280;
}

/* Apply same styling to preview and full content */
.description-preview img,
.description-full-content img {
    width: 100%;
    height: auto;
    margin: 1.25rem 0;
    border-radius: 8px;
    display: block;
}

.description-preview h1,
.description-preview h2,
.description-preview h3,
.description-preview h4,
.description-full-content h1,
.description-full-content h2,
.description-full-content h3,
.description-full-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.description-preview h1,
.description-full-content h1 {
    font-size: 1.75rem;
}

.description-preview h2,
.description-full-content h2 {
    font-size: 1.5rem;
}

.description-preview h3,
.description-full-content h3 {
    font-size: 1.25rem;
}

.description-preview h4,
.description-full-content h4 {
    font-size: 1.125rem;
}

.description-preview p,
.description-full-content p {
    margin-bottom: 1rem;
}

.description-preview ul,
.description-preview ol,
.description-full-content ul,
.description-full-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.description-preview li,
.description-full-content li {
    margin-bottom: 0.5rem;
}

.description-preview strong,
.description-full-content strong {
    font-weight: 700;
    color: #1f2937;
}

.description-preview em,
.description-full-content em {
    font-style: italic;
}

.description-preview a,
.description-full-content a {
    color: #9333ea;
    text-decoration: underline;
    transition: color 0.2s;
}

.description-preview a:hover,
.description-full-content a:hover {
    color: #7e22ce;
}

.description-preview blockquote,
.description-full-content blockquote {
    border-left: 4px solid #9333ea;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #6b7280;
}

.description-preview,
.description-full-content {
    color: #4b5563;
    line-height: 1.8;
    font-size: 0.9375rem;
    height: auto !important;
}

.description-preview {
    display: block;
}

.description-full-content {
    display: none;
}

.description-full-content.expanded {
    display: block !important;
    height: auto !important;
}

.view-more-btn {
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    color: #9333ea;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.view-more-btn:hover {
    background: rgba(147, 51, 234, 0.05);
    border-color: #9333ea;
}

/* === REVIEWS TAB === */
.reviews-wrapper {
    max-width: 900px;
    height: auto !important;
    min-height: 200px;
}

.reviews-summary-box {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.average-rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
}

.rating-number-large {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-stars-large {
    display: flex;
    gap: 0.25rem;
}

.rating-stars-large i {
    color: #fbbf24;
    font-size: 1.25rem;
}

.rating-text-info {
    color: #6b7280;
    font-size: 0.9375rem;
}

.reviews-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.review-card {
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.review-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.875rem;
}

.reviewer-name-text {
    display: block;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.review-stars-display {
    display: flex;
    gap: 0.25rem;
}

.review-stars-display i {
    color: #fbbf24;
    font-size: 0.875rem;
}

.review-date-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.review-comment-text {
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    font-size: 0.9375rem;
}

.no-reviews-message {
    text-align: center;
    padding: 4rem 2rem;
}

.no-reviews-message i {
    font-size: 3.5rem;
    color: #d1d5db;
    margin-bottom: 1.25rem;
}

.no-reviews-message h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.625rem;
}

.no-reviews-message p {
    color: #6b7280;
    font-size: 1rem;
}

.write-review-section {
    text-align: center;
    margin-top: 2rem;
}

.btn-write-review {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-write-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

/* === RELATED PRODUCTS SECTION === */
.related-products-wrapper {
    margin-top: 2.5rem;
}

.section-title-main {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1.75rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-products-carousel {
    padding-bottom: 3rem;
}

.related-product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.related-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.related-product-img-wrapper {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f9fa;
}

.related-product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-product-item:hover .related-product-img-wrapper img {
    transform: scale(1.1);
}

.related-discount-label {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
}

.related-product-details {
    padding: 1rem;
}

.related-product-title {
    margin: 0 0 0.75rem 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
}

.related-product-title a {
    color: #111827;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.related-product-title a:hover {
    color: #9333ea;
}

.related-product-price-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.related-price-old {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 0.875rem;
    font-weight: 600;
}

.related-price-new {
    color: #9333ea;
    font-weight: 800;
    font-size: 1.125rem;
}

.related-product-rating-display {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.related-product-rating-display i {
    color: #fbbf24;
    font-size: 0.875rem;
}

.related-product-action-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.related-product-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: #d1d5db;
    width: 10px;
    height: 10px;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #9333ea;
    width: 24px;
    border-radius: 5px;
}

/* === IMAGE LIGHTBOX MODAL === */
.image-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-lightbox-overlay.active {
    display: flex;
}

.lightbox-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close-btn:hover {
    background: white;
    color: #111827;
    transform: rotate(90deg);
}

.lightbox-image-display {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav-btn:hover {
    background: white;
    color: #111827;
}

.lightbox-prev-btn {
    left: 2rem;
}

.lightbox-next-btn {
    right: 2rem;
}

/* === REVIEW FORM MODAL === */
.review-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.review-modal-overlay.active {
    display: flex;
}

.review-modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: #f9fafb;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-icon:hover {
    background: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}

.modal-title-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1.75rem;
    padding-right: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.required-star {
    color: #ef4444;
    font-weight: 700;
}

.form-control-input,
.form-control-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control-input:focus,
.form-control-textarea:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.form-hint-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.star-rating-input {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
}

.star-rating-input i {
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating-input i:hover,
.star-rating-input i.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.form-actions-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-cancel-modal {
    flex: 1;
    padding: 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.btn-cancel-modal:hover {
    background: #e5e7eb;
    color: #111827;
}

.btn-submit-modal {
    flex: 2;
    padding: 1rem;
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.btn-submit-modal:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.btn-submit-modal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* === RESPONSIVE DESIGN === */

/* Large Tablet & Small Desktop (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-image-section {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }

    .product-title-main {
        font-size: 1.875rem;
    }

    .price-sale {
        font-size: 2.125rem;
    }

    .action-buttons-wrapper {
        max-width: 500px;
    }
}

/* Tablet (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .product-details-wrapper {
        padding: 1.5rem 0;
    }

    .product-container {
        padding: 0 1.25rem;
    }

    .product-main-section {
        padding: 2rem 1.5rem;
        border-radius: 14px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-image-section {
        position: static;
    }

    .main-image-wrapper {
        margin-bottom: 1.25rem;
        height: auto;
        aspect-ratio: 2/3;
    }

    .main-image-wrapper img {
        height: 100%;
        object-fit: contain;
    }

    .product-title-main {
        font-size: 1.625rem;
        line-height: 1.3;
    }

    .price-sale {
        font-size: 2rem;
    }

    .product-highlights-list {
        gap: 0.75rem;
    }

    .variant-selector-wrapper {
        padding: 1.5rem;
    }

    .action-buttons-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .btn-primary-action,
    .btn-secondary-action {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }

    .product-tabs-wrapper {
        padding: 2rem 1.5rem;
    }

    .tabs-header {
        gap: 1rem;
    }

    .tab-btn {
        padding: 1rem 1.75rem;
        font-size: 0.9375rem;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .product-details-wrapper {
        padding: 0.75rem 0;
        background: #fff;
        width: 100%;
        overflow-x: hidden;
    }

    .product-container {
        padding: 0 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    .product-main-section {
        padding: 1rem;
        border-radius: 10px;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .product-layout {
        display: block !important;
        width: 100%;
    }

    .product-image-section {
        display: block !important;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .main-image-wrapper {
        border-radius: 10px;
        margin-bottom: 0.875rem;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 2/3;
        /* Enforce 2:3 Portrait Ratio */
    }

    .main-image-wrapper img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
        /* Ensure full image is shown within the 2:3 box */
    }

    .product-discount-badge {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.375rem 0.875rem;
        font-size: 0.8125rem;
    }

    .gallery-thumbnails-container {
        display: flex !important;
        position: relative;
        margin-bottom: 1.5rem !important;
        padding: 0.5rem 0 !important;
        overflow-x: auto;
        gap: 0.625rem;
        z-index: 1;
    }

    .gallery-thumbnail {
        flex: 0 0 70px;
        min-width: 70px;
        height: 70px;
    }

    .product-info-section {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        position: relative;
        z-index: 2;
        margin-top: 0 !important;
    }

    .product-category-badge {
        font-size: 0.6875rem;
        display: block;
        margin-bottom: 0.5rem;
    }

    .product-title-main {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        display: block !important;
        width: 100%;
        clear: both;
    }

    .product-rating-wrapper {
        gap: 0.625rem;
    }

    .rating-stars i {
        font-size: 0.875rem;
    }

    .rating-count {
        font-size: 0.8125rem;
    }

    .product-price-wrapper {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .price-original {
        font-size: 1rem;
    }

    .price-sale {
        font-size: 1.625rem;
    }

    .stock-badge {
        padding: 0.375rem 0.875rem;
        font-size: 0.8125rem;
    }

    .product-highlights-list {
        gap: 0.625rem;
    }

    .product-highlights-list li {
        font-size: 0.875rem;
    }

    .product-highlights-list i {
        font-size: 0.9375rem;
    }

    .variant-selector-wrapper {
        padding: 1.25rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .variant-label {
        font-size: 0.8125rem;
        margin-bottom: 0.625rem;
    }

    .variant-options-container {
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .variant-options-container::-webkit-scrollbar {
        display: none;
    }

    .variant-option-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .variant-option-image {
        flex: 0 0 60px !important;
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
        height: 60px !important;
        max-height: 60px !important;
    }

    .variant-option-image img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
    }

    .quantity-selector-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .quantity-label {
        font-size: 0.875rem;
    }

    .quantity-controls {
        width: 100%;
        justify-content: center;
    }

    .qty-btn {
        width: 45px;
        height: 45px;
    }

    .qty-input {
        width: 60px;
        font-size: 1.125rem;
    }

    /* MOBILE: BUTTONS STACKED VERTICALLY - FULL WIDTH - NOT STICKY */
    .action-buttons-wrapper {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 0.75rem;
        margin-top: 0.75rem;
        width: 100%;
        position: static !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: auto !important;
    }

    .btn-primary-action,
    .btn-secondary-action {
        width: 100% !important;
        max-width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        letter-spacing: 0.3px;
    }

    .product-tabs-wrapper {
        padding: 1rem 0.625rem;
        border-radius: 10px;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .tabs-header {
        display: flex;
        overflow-x: auto;
        gap: 0.375rem;
        border-bottom: 2px solid #e5e7eb;
        margin-bottom: 1.25rem;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .tabs-header::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        letter-spacing: 0.25px;
        flex-shrink: 0;
    }

    .tabs-content {
        min-height: 200px;
        padding: 0 0.25rem;
    }

    .description-wrapper,
    .reviews-wrapper {
        max-width: 100%;
        padding: 0;
    }

    .description-preview,
    .description-full-content {
        font-size: 0.875rem;
        line-height: 1.65;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .view-more-btn {
        margin-top: 1rem;
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }

    .reviews-summary-box {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .rating-number-large {
        font-size: 2.5rem;
    }

    .rating-stars-large i {
        font-size: 1.125rem;
    }

    .rating-text-info {
        font-size: 0.875rem;
    }

    .reviews-list-container {
        gap: 1.25rem;
    }

    .review-card {
        padding: 1.25rem;
    }

    .reviewer-name-text {
        font-size: 0.9375rem;
    }

    .review-stars-display i {
        font-size: 0.8125rem;
    }

    .review-date-text {
        font-size: 0.8125rem;
    }

    .review-comment-text {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .no-reviews-message {
        padding: 3rem 1.5rem;
    }

    .no-reviews-message i {
        font-size: 3rem;
    }

    .no-reviews-message h3 {
        font-size: 1.25rem;
    }

    .no-reviews-message p {
        font-size: 0.9375rem;
    }

    .write-review-section {
        margin-top: 1.5rem;
    }

    .btn-write-review {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }

    .section-title-main {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        letter-spacing: 0.5px;
    }

    .related-products-carousel {
        padding-bottom: 2.5rem;
    }

    .related-product-item {
        border-radius: 10px;
    }

    .related-product-details {
        padding: 0.875rem;
    }

    .related-product-title {
        font-size: 0.875rem;
        margin-bottom: 0.625rem;
    }

    .related-product-price-display {
        margin-bottom: 0.625rem;
    }

    .related-price-old {
        font-size: 0.8125rem;
    }

    .related-price-new {
        font-size: 1rem;
    }

    .related-product-rating-display {
        margin-bottom: 0.625rem;
    }

    .related-product-rating-display i {
        font-size: 0.8125rem;
    }

    .related-product-action-btn {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }

    .related-discount-label {
        top: 0.625rem;
        right: 0.625rem;
        padding: 0.3125rem 0.625rem;
        font-size: 0.6875rem;
    }

    .lightbox-close-btn,
    .lightbox-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }

    .lightbox-close-btn {
        top: 1rem;
        right: 1rem;
    }

    .lightbox-prev-btn {
        left: 0.5rem;
    }

    .lightbox-next-btn {
        right: 0.5rem;
    }

    .lightbox-image-display {
        max-width: 95%;
        max-height: 85%;
    }

    .review-modal-content {
        padding: 1.5rem 1rem;
        max-height: 90vh;
        border-radius: 12px;
    }

    .modal-close-icon {
        top: 0.875rem;
        right: 0.875rem;
        width: 36px;
        height: 36px;
        font-size: 1.375rem;
    }

    .modal-title-text {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        padding-right: 2rem;
    }

    .form-group {
        margin-bottom: 1.125rem;
    }

    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }

    .form-control-input,
    .form-control-textarea {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        border-radius: 6px;
    }

    .form-hint-text {
        font-size: 0.75rem;
        margin-top: 0.375rem;
    }

    .star-rating-input {
        font-size: 1.625rem;
        gap: 0.375rem;
    }

    .form-actions-group {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .btn-cancel-modal,
    .btn-submit-modal {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .swiper-pagination-bullet-active {
        width: 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* === STICKY ORDER NOW BUTTON (MOBILE ONLY) === */
.sticky-order-button {
    display: none;
    /* Hidden by default, shown via inline style when enabled */
    position: fixed;
    bottom: 70px;
    /* Position above navigation bar (mobile nav is typically 60-70px tall) */
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.875rem 1rem;
    background: transparent;
    z-index: 998;
    /* Below modals but above content */
    animation: slideUp 0.3s ease-out;
    pointer-events: none;
    /* Allow clicks to pass through the container */
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.sticky-order-button .btn-sticky-order {
    width: 100%;
    padding: 1rem 1.5rem;
    pointer-events: auto;
    /* But enable clicks on the button itself */
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.sticky-order-button .btn-sticky-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.5);
}

.sticky-order-button .btn-sticky-order:active {
    transform: translateY(0);
}

.sticky-order-button .btn-sticky-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Only show on mobile devices (768px and below) */
@media (min-width: 769px) {
    .sticky-order-button {
        display: none !important;
    }
}

/* 🔥 FIX: REMOVE HEADER GAP ON PRODUCT PAGE (MOBILE) - DEFINITIVE */
@media (max-width: 768px) {
    .product-image-section {
        position: static !important;
        top: auto !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .product-layout {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .product-main-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* 🔥 EXTRA SAFE: For very small mobile screens */
@media (max-width: 480px) {
    .product-image-section {
        position: static !important;
        top: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .product-layout {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .product-main-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .product-container {
        padding-top: 0 !important;
    }
}

/* === CUSTOM STICKY CONTACT BUTTONS === */
.sticky-contact-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInRight 0.5s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sticky-contact-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.sticky-contact-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.sticky-contact-btn:active {
    transform: scale(0.95);
}

/* Individual button colors */
.sticky-contact-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.sticky-contact-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
}

.sticky-contact-messenger {
    background: linear-gradient(135deg, #00B2FF, #006AFF);
}

.sticky-contact-messenger:hover {
    background: linear-gradient(135deg, #006AFF, #0084FF);
}

.sticky-contact-telegram {
    background: linear-gradient(135deg, #0088CC, #005F8C);
}

.sticky-contact-telegram:hover {
    background: linear-gradient(135deg, #005F8C, #004466);
}

.sticky-contact-call {
    background: linear-gradient(135deg, #10B981, #059669);
}

.sticky-contact-call:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.sticky-contact-link {
    background: linear-gradient(135deg, #9333ea, #7e22ce);
}

.sticky-contact-link:hover {
    background: linear-gradient(135deg, #7e22ce, #6b21a8);
}

/* Tooltip on hover */
.sticky-contact-btn::before {
    content: attr(title);
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sticky-contact-btn::after {
    content: '';
    position: absolute;
    right: 60px;
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.sticky-contact-btn:hover::before,
.sticky-contact-btn:hover::after {
    opacity: 1;
}

/* Hide on desktop (769px and above) - UNLESS show-all-devices class is present */
@media (min-width: 769px) {
    .sticky-contact-buttons:not(.show-all-devices) {
        display: none !important;
    }
}

/* Adjust position on smaller screens */
@media (max-width: 480px) {
    .sticky-contact-buttons {
        right: 15px;
        bottom: 90px;
    }

    .sticky-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}