﻿/* ============================================
   ENHANCED PRODUCT DETAIL PAGE - OPTIMIZED
   ============================================ */

:root {
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f7fa;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.6;
    color: #1f2937;
}

/* ============================================
   CONTAINER & LAYOUT OPTIMIZATION
   ============================================ */
.container-fluid {
    padding: clamp(0rem, 2vw, 2.5rem) clamp(0rem, 2.5vw, 2.5rem);
}

.shadow-xl-custom {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 5px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius-lg);
}

/* ============================================
   IMAGE GALLERY - AUTO SLIDER WITH CONTROLS
   ============================================ */
.image-gallery-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

.image-main {
    width: 100%;
    height: clamp(280px, 45vw, 550px);
    object-fit: contain;
    border-radius: var(--border-radius-md);
    transition: opacity 0.4s ease-in-out, transform 0.3s ease;
    background: #f9fafb;
}

    .image-main:hover {
        transform: scale(1.02);
    }

/* Slider Navigation Buttons */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 clamp(0.25rem, 1vw, 0.75rem);
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    border: none;
    border-radius: 50%;
    width: clamp(32px, 6vw, 44px);
    height: clamp(32px, 6vw, 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: clamp(0.875rem, 2.5vw, 1.25rem);
}

    .slider-btn:hover {
        background: #3b82f6;
        color: white;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }

    .slider-btn:active {
        transform: scale(0.95);
    }

/* Slider Indicators */
.slider-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.375rem, 1vw, 0.5rem);
    margin-top: clamp(0.5rem, 1.5vw, 0.75rem);
    padding: clamp(0.25rem, 1vw, 0.5rem) 0;
}

.indicator-dot {
    width: clamp(6px, 1.5vw, 10px);
    height: clamp(6px, 1.5vw, 10px);
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

    .indicator-dot.active {
        background: #3b82f6;
        transform: scale(1.3);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }

    .indicator-dot:hover:not(.active) {
        background: #93c5fd;
        transform: scale(1.15);
    }

/* Thumbnail Container - Optimized Scroll */
.thumbnail-container {
    display: flex;
    gap: clamp(0.375rem, 1vw, 0.5rem);
    overflow-x: auto;
    overflow-y: hidden;
    padding: clamp(0.375rem, 1vw, 0.5rem) 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    margin-left: clamp(0.25rem, 1vw, 0.5rem);
}

    .thumbnail-container::-webkit-scrollbar {
        height: 5px;
    }

    .thumbnail-container::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }

    .thumbnail-container::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
        transition: background 0.3s ease;
    }

        .thumbnail-container::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

.product-thumbnail {
    flex: 0 0 clamp(55px, 12vw, 90px);
    width: clamp(55px, 12vw, 90px);
    height: clamp(55px, 12vw, 90px);
    object-fit: cover;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    background: #f9fafb;
}

    .product-thumbnail:hover,
    .product-thumbnail.active {
        border-color: #3b82f6;
        transform: scale(1.08);
        box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    }

/* ============================================
   TABS SECTION - ORIGINAL STYLES PRESERVED
   ============================================ */
.product-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ddd;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-xs);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.75rem, 3vw, 1.25rem);
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(var(--font-sm), 2vw, var(--font-base));
    background-color: #f9f9f9;
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

    .tab-button.active {
        background-color: white;
        border: 1px solid #ccc;
        border-bottom: 3px solid #3b82f6;
        color: #3b82f6;
        font-weight: 700;
    }

    .tab-button:hover:not(.active) {
        background-color: #f0f9ff;
        color: #3b82f6;
    }

.tab-content {
    display: none;
    padding: clamp(0.5rem, 1vw, 1rem);
    background-color: white;
}

    .tab-content.active {
        display: block;
    }

/* ============================================
   HORIZONTALLY SCROLLABLE GRIDS - ORIGINAL
   ============================================ */
.scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: var(--spacing-md) 0;
}

    .scroll-container::-webkit-scrollbar {
        height: 8px;
    }

    .scroll-container::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }

    .scroll-container::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

        .scroll-container::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

/* Features Grid - Horizontal Scroll */
.features-grid {
    display: grid;
    min-width: min-content;
    
}

.feature-item {
    flex: 0 0 clamp(280px, 45vw, 400px);
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}

    .feature-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

.feature-icon {
    width: clamp(30px, 8vw, 40px);
    height: clamp(30px, 8vw, 40px);
    flex-shrink: 0;
    margin-right: var(--spacing-md);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f9ff;
}

    .feature-icon img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

.feature-item p {
    margin: 0;
    font-size: clamp(var(--font-xs), 2vw, var(--font-base));
    line-height: 1.4;
    color: #1f2937;
    font-weight: 500;
}

/* Applications Grid - Horizontal Scroll */
.applications-grid {
    display: grid;
    
    min-width: min-content;
}

.application-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.application-icon {
    width: clamp(80px, 15vw, 120px);
    height: clamp(60px, 12vw, 90px);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    border: 0.5px solid #e5e7eb;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .application-icon img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

.application-item p {
    margin: 2px;
    font-size: clamp(var(--font-xs), 2vw, var(--font-sm));
    line-height: 1.3;
    color: #1f2937;
    font-weight: 500;
}

/* Safety Grid - Horizontal Scroll */
.safety-grid {
    display: grid;
    
    min-width: min-content;
}

.safety-item {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}

    .safety-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

.safety-icon {
    width: clamp(30px, 8vw, 40px);
    height: clamp(30px, 8vw, 40px);
    flex-shrink: 0;
    margin-right: var(--spacing-md);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fef3c7;
}

    .safety-icon img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

.safety-item p {
    margin: 0;
    font-size: clamp(var(--font-xs), 2vw, var(--font-base));
    line-height: 1.4;
    color: #1f2937;
    font-weight: 500;
}

/* Mobile: Show at least 2 cards */
@media (max-width: 640px) {
   
    .feature-item,
    .safety-item {
        flex: 0 0 calc(50vw - var(--spacing-lg));
        min-width: 250px;
    }

    .application-item {
        flex: 0 0 calc(45vw - var(--spacing-md));
        min-width: 130px;
    }
    
}

/* ============================================
   HOW TO APPLY & SIMILAR PRODUCTS
   ============================================ */
.how-to-apply-section,
.similar-products {
    padding: clamp(1rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.5rem);
    background: #f9fafb;
}

    .htas-text,
    .similar-products h2 {
        font-weight: 700;
        font-size: clamp(1.5rem, 4vw, 2.25rem);
        color: #111827;
        margin: clamp(0.75rem, 2vw, 1.25rem) 0;
        text-align: center;
    }

.heading-underline {
    height: 3px;
    width: clamp(100px, 25vw, 160px);
    margin: clamp(0.5rem, 1.5vw, 0.75rem) auto;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Video Grid - Horizontal Scroll */
.how-to-apply-section > div:last-child {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: clamp(0.875rem, 2.5vw, 1.5rem) !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: clamp(0.75rem, 2vw, 1.25rem) 0;
    margin: 0 clamp(-0.5rem, -2vw, -1rem);
    padding-left: clamp(0.5rem, 2vw, 1rem);
}

    .how-to-apply-section > div:last-child::-webkit-scrollbar {
        height: 6px;
    }

    .how-to-apply-section > div:last-child::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }

    .how-to-apply-section > div:last-child::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

.video-container {
    flex: 0 0 clamp(280px, 45vw, 400px);
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

    .video-container:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

    .video-container .relative {
        padding-bottom: 56.25%;
    }

/* Similar Products Grid */
.similar-products > div:last-child {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: clamp(0.875rem, 2.5vw, 1.5rem) !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: clamp(0.75rem, 2vw, 1.25rem) 0;
    margin: 0 clamp(-0.5rem, -2vw, -1rem);
    padding-left: clamp(0.5rem, 2vw, 1rem);
}

    .similar-products > div:last-child::-webkit-scrollbar {
        height: 6px;
    }

    .similar-products > div:last-child::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }

    .similar-products > div:last-child::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

    .similar-products > div:last-child > div {
        flex: 0 0 clamp(140px, 38vw, 210px) !important;
        min-width: clamp(140px, 38vw, 210px);
        background: white;
        border-radius: var(--border-radius-md);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        transition: all var(--transition-speed) ease;
        border: 1px solid #f3f4f6;
    }

        .similar-products > div:last-child > div:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
            border-color: #e5e7eb;
        }

        .similar-products > div:last-child > div img {
            height: clamp(110px, 24vw, 170px) !important;
        }

/* Mobile optimization */
@media (max-width: 640px) {
    .video-container {
        flex: 0 0 calc(85vw - 1rem);
        min-width: 260px;
    }

    .similar-products > div:last-child > div {
        flex: 0 0 calc(44vw - 0.75rem) !important;
        min-width: 130px !important;
    }
}

/* ============================================
   BUTTONS & INTERACTIVE ELEMENTS
   ============================================ */
button,
.btn {
    font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.875rem, 2.5vw, 1.5rem);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    font-weight: 600;
    line-height: 1.5;
}

    button:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    button:active:not(:disabled) {
        transform: translateY(0);
    }

    button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* ============================================
   SPECIFICATIONS TABLE - ORIGINAL STYLES
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(var(--font-xs), 2vw, var(--font-sm));
}

    table th,
    table td {
        padding: clamp(0.5rem, 2vw, 0.75rem);
        text-align: left;
        border: 1px solid #e5e7eb;
    }

    table th {
        background-color: #f9fafb;
        font-weight: 600;
    }

/* Specifications table specific styles */
.speci-sm {
    font-size: clamp(var(--font-xs), 2vw, var(--font-sm));
}

    .speci-sm th,
    .speci-sm td {
        padding: clamp(0.5rem, 2vw, 0.75rem);
        font-size: clamp(var(--font-xs), 2vw, var(--font-sm));
    }

/* For tables with odd/even row styling */
table tbody tr.odd\:bg-gray-50:nth-child(odd) {
    background-color: #f9fafb;
}

table tbody tr.even\:bg-white:nth-child(even) {
    background-color: white;
}

table tbody tr.hover\:bg-blue-50:hover {
    background-color: #eff6ff;
    transition: background-color 0.2s ease;
}

/* ============================================
   IMAGE POPUP MODAL
   ============================================ */
.image-popup-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

    .image-popup-modal:not(.hidden) {
        display: flex;
    }

body.modal-open {
    overflow: hidden;
}

.image-popup-content {
    position: relative;
    width: 90vw;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .image-popup-content img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease-out;
        cursor: grab;
    }

        .image-popup-content img:active {
            cursor: grabbing;
        }

.image-popup-close,
.image-nav-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-popup-close {
    position: absolute;
    top: clamp(0.5rem, 2vw, 1rem);
    right: clamp(0.5rem, 2vw, 1rem);
    width: clamp(32px, 7vw, 40px);
    height: clamp(32px, 7vw, 40px);
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    z-index: 10001;
}

    .image-popup-close:hover {
        background: #ef4444;
        color: white;
    }

.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(36px, 7vw, 48px);
    height: clamp(36px, 7vw, 48px);
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    z-index: 10001;
}

    .image-nav-btn:hover {
        background: #3b82f6;
        color: white;
    }

.image-nav-prev {
    left: clamp(0.5rem, 2vw, 1.25rem);
}

.image-nav-next {
    right: clamp(0.5rem, 2vw, 1.25rem);
}

.zoom-controls {
    position: absolute;
    bottom: clamp(0.5rem, 2vw, 1rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(0.375rem, 1.5vw, 0.625rem);
    z-index: 10001;
}

.zoom-btn {
    background: rgba(0, 0, 0, 0.75);
    color: white;
    border: none;
    border-radius: 50%;
    width: clamp(32px, 6vw, 38px);
    height: clamp(32px, 6vw, 38px);
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .zoom-btn:hover {
        background: rgba(59, 130, 246, 0.95);
    }

.image-counter {
    position: absolute;
    top: clamp(0.5rem, 2vw, 1rem);
    left: clamp(0.5rem, 2vw, 1rem);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: clamp(0.25rem, 1vw, 0.375rem) clamp(0.625rem, 2vw, 0.875rem);
    border-radius: 20px;
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    z-index: 10001;
    font-weight: 600;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.animate-blink-smooth {
    animation: blinkSmooth 1.5s ease-in-out infinite;
}

@keyframes blinkSmooth {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .container-fluid {
        padding: clamp(0.5rem, 2vw, 1rem) clamp(0.625rem, 2.5vw, 1.25rem);
    }

    .image-main {
        height: clamp(240px, 50vw, 400px);
    }

    .tab-button {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    .feature-item,
    .safety-item {
        padding: 0.75rem;
    }

    .feature-icon,
    .safety-icon {
        width: 36px;
        height: 36px;
        margin-right: 0.75rem;
    }

    .application-item {
        padding: 0.625rem;
        min-height: 100px;
    }

    .application-icon {
        width: 65px;
        height: 50px;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .slider-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .indicator-dot {
        width: 5px;
        height: 5px;
    }

    .product-thumbnail {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
    }

    .tab-button {
        font-size: 0.75rem;
        padding: 0.5rem 0.625rem;
    }

    .htas-text,
    .similar-products h2 {
        font-size: 1.375rem;
    }

    .heading-underline {
        width: 80px;
        height: 2.5px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .slider-controls,
    .slider-indicators,
    .image-popup-modal,
    .zoom-controls,
    button:not(.no-print) {
        display: none !important;
    }

    .image-main {
        height: auto;
        max-height: 400px;
    }

    .scroll-container {
        overflow: visible;
    }

    .features-grid,
    .applications-grid,
    .safety-grid {
        flex-wrap: wrap;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 2px;
}

button:focus-visible,
.tab-button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
.image-main,
.product-thumbnail,
.feature-icon img,
.application-icon img,
.safety-icon img {
    will-change: transform;
}

.scroll-container,
.thumbnail-container {
    will-change: scroll-position;
}

/* Smooth scroll snap for better UX */
.scroll-container {
    scroll-snap-type: x mandatory;
}

.feature-item,
.application-item,
.safety-item,
.video-container,
.similar-products > div:last-child > div {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

/* ============================================
   OFFERS SECTION OPTIMIZATION
   ============================================ */
#offers-content {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-height: 0;
}

#offers-header {
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

    #offers-header:hover {
        background: linear-gradient(90deg, #fbbf24, #f59e0b);
    }

#offers-arrow {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.offer-card {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   DELIVERY & ENQUIRY SECTIONS
   ============================================ */
.delivery {
    gap: clamp(0.5rem, 2vw, 1rem);
}

    .delivery > div {
        padding: clamp(0.625rem, 2vw, 0.875rem);
        border-radius: var(--border-radius-sm);
        font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    }

    .delivery span {
        font-size: clamp(0.75rem, 1.8vw, 0.875rem);
        line-height: 1.4;
    }

.enquiry {
    padding: clamp(0.625rem, 2vw, 0.875rem);
    font-size: clamp(0.8125rem, 1.9vw, 0.9375rem);
    border-radius: var(--border-radius-sm);
}

    .enquiry p {
        margin: 0;
        line-height: 1.5;
    }

/* ============================================
   QUANTITY CONTROLS
   ============================================ */
#quantity {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 600;
}

#decrease-quantity,
#increase-quantity {
    padding: clamp(0.5rem, 1.5vw, 0.75rem);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.star-rating-input i {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    transition: all 0.2s ease;
}

    .star-rating-input i:hover {
        transform: scale(1.15);
    }

    .star-rating-input i.selected {
        transform: scale(1.1);
    }

/* ============================================
   LOADING STATES
   ============================================ */
.loading-skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}



/* ============================================
   NOTIFICATION MODAL
   ============================================ */
#notify-modal {
    z-index: 10000;
}

    #notify-modal > div {
        animation: modalSlideIn 0.3s ease-out;
        margin: auto;
        margin-top: 10vh;
    }

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PINCODE CHECK SECTION
   ============================================ */
#pincode-input,
#alternative-pincode-input {
    font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
    padding: clamp(0.5rem, 1.5vw, 0.625rem);
}

#check-pincode-button,
#check-alternative-pincode-button {
    font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
    white-space: nowrap;
}

#delivery-status,
#user-delivery-status,
#alternative-delivery-status {
    font-size: clamp(0.75rem, 1.7vw, 0.875rem);
}

/* ============================================
   CUSTOMER REVIEWS CARDS
   ============================================ */
.similar-products + div > div:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.875rem, 2.5vw, 1.25rem);
    justify-content: center;
}

    .similar-products + div > div:first-child > div {
        flex: 1 1 clamp(260px, 45%, 400px);
        max-width: 500px;
    }

@media (max-width: 768px) {
    .similar-products + div > div:first-child > div {
        flex: 1 1 100%;
    }
}

/* ============================================
   ANIMATIONS FOR INTERACTIVITY
   ============================================ */
.feature-item,
.application-item,
.safety-item {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

    .feature-item:nth-child(1),
    .application-item:nth-child(1),
    .safety-item:nth-child(1) {
        animation-delay: 0.05s;
    }

    .feature-item:nth-child(2),
    .application-item:nth-child(2),
    .safety-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .feature-item:nth-child(3),
    .application-item:nth-child(3),
    .safety-item:nth-child(3) {
        animation-delay: 0.15s;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FINAL POLISH
   ============================================ */
/* Ensure all images load smoothly */
img {
    display: block;
    max-width: 100%;
}

/* Smooth transitions for all interactive elements */
a,
button,
input,
select,
textarea {
    transition: all var(--transition-speed) ease;
}

/* Remove default outline and add custom focus */
:focus {
    outline: none;
}

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Prevent text selection on buttons */
button,
.slider-btn,
.tab-button {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
