/* ==========================================================================
   SINGLE PRODUCT PAGE STYLES
   ========================================================================== */

/* Layout & Container */
.product-container {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    min-height: 100vh;
}

.product-container .container {
    max-width: 1280px;
    margin: 0 auto;
}


.woocommerce-variation{
    display: none!important;
}


/* ==========================================================================
   PRODUCT GALLERY & IMAGE ZOOM
   ========================================================================== */

.product-gallery {
    position: sticky;
    top: 20px;
    height: fit-content;
    z-index: 0;
}

@media (max-width: 768px) {
    .product-gallery {
        position: relative !important;
        top: auto;
    }
}

.product-main-image,
.dynamic-gallery-container {
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.product-main-image:hover,
.dynamic-gallery-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-main-image img,
.dynamic-gallery-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
    aspect-ratio: 1/1;
}

.product-main-image img:hover:not(.zoomed),
.dynamic-gallery-container img:hover:not(.zoomed) {
    transform: scale(1.03);
}

.product-main-image img.zoomed,
.dynamic-gallery-container img.zoomed {
    transform: scale(2.2);
    cursor: zoom-out;
    z-index: 1000;
    position: relative;
    transition: transform 0.1s ease-out;
}


/* ==========================================================================
   PRODUCT INFO & CONTENT
   ========================================================================== */

.product-info-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-title {
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.product-price {
    padding: 2rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.product-price h2 {
    color: var(--primary-text);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-price h2::before {                                                                                 content: '';
    width: 4px;
    height: 20px;
    background: var(--yellow-background);
}

.price-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Enhanced Price Meta Info - Integrated with new price design */
.price-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--primary-border);
}

/* Enhanced Price Meta Item - Cohesive with new price design */
.price-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}


/* Enhanced Price Meta Icon */
.price-meta-icon {
    width: 40px;
    height: 40px;
    color: var(--bg-blue-squarepancake);
    flex-shrink: 0;
    padding: 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.price-meta-item:hover .price-meta-icon {
    background: var(--bg-blue-squarepancake);
    color: white;
    transform: scale(1.05);
}

.price-meta-item.stock-out-of-stock:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(220, 38, 38, 0.04) 100%);
    border-color: rgba(220, 38, 38, 0.2);
}

.price-meta-item.stock-low-stock:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.price-meta-content {
    flex: 1;
    min-width: 0;
}

/* Enhanced Price Meta Label */
.price-meta-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Enhanced Price Meta Value */
.price-meta-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

/* SKU Copy Button Styles */
.sku-value-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced SKU Value */
.sku-value {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #334155;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

/* Enhanced SKU Copy Button */
.sku-copy-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    min-width: 32px;
    height: 32px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sku-copy-btn:hover {
    background: var(--bg-blue-squarepancake);
    border-color: var(--bg-blue-squarepancake);
    color: white;
    transform: scale(1.05);
}

.sku-copy-btn:active {
    transform: scale(0.95);
}

.sku-copy-btn.copied {
    background: #059669;
    border-color: #059669;
    color: white;
}

.sku-copy-btn svg {
    width: 14px;
    height: 14px;
}

/* SKU Copy Tooltip */
.sku-copy-tooltip {
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sku-copy-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #1f2937;
}

.sku-copy-tooltip.show {
    opacity: 1;
    transform: translateY(-5px);
}

.sku-copy-tooltip.tooltip-success {
    background: #059669;
}

.sku-copy-tooltip.tooltip-success::after {
    border-top-color: #059669;
}

.sku-copy-tooltip.tooltip-error {
    background: #dc2626;
}

.sku-copy-tooltip.tooltip-error::after {
    border-top-color: #dc2626;
}

/* ==========================================================================
   MODERN PRICE SECTION STYLES
   ========================================================================== */

.product-price-section {
    padding: 1rem 0rem;
}

.price-main-container {
    margin-bottom: 1rem;
}

.price-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.price-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    animation: discount-pulse 2s ease-in-out infinite;
}

@keyframes discount-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.price-display-main {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.current-price.normal {
    color: #111827;
}

.regular-price {
    font-size: 1.25rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.savings-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    width: fit-content;
}

.savings-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.savings-amount {
    font-size: 0.875rem;
    font-weight: 700;
    color: #059669;
}

.price-range-info {
    margin-top: 0.75rem;
}

.price-range-text {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
}

/* Mobile responsive for price section */
@media (max-width: 768px) {
    .product-price-section {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .price-header {
        margin-bottom: 0.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .regular-price {
        font-size: 1rem;
    }
    
    .savings-info {
        padding: 0.375rem 0.625rem;
        gap: 0.375rem;
    }
    
    .savings-text {
        font-size: 0.6875rem;
    }
    
    .savings-amount {
        font-size: 0.75rem;
    }
    
    .price-range-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .current-price {
        font-size: 1.375rem;
    }
    
    .regular-price {
        font-size: 0.9375rem;
    }
    
    .discount-badge {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.375rem;
    }
}

/* Enhanced Stock Status Styling - Cohesive with new design */
.stock.in-stock {
    color: #059669 !important;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}

/* Removed ::before pseudo-element to prevent duplicate pins */

/* Removed stock-pulse animation as ::before pseudo-element was removed */

.stock.out-of-stock {
    color: #dc2626 !important;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}

/* Removed ::before pseudo-element to prevent duplicate pins */

/* Enhanced Low stock warning */
.stock.low-stock {
    color: #d97706 !important;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}

/* Removed ::before pseudo-element to prevent duplicate icons */

/* Removed warning-blink animation as ::before pseudo-element was removed */

/* WooCommerce Stock Messages - Hide default ones since we have custom design */
.woocommerce-product-details__short-description .stock,
.single_variation_wrap .stock,
.woocommerce .stock,
.woocommerce-variation-availability .stock {
    display: none !important;
}

/* Only show our custom stock design */
.price-meta-value .stock.in-stock,
.price-meta-value .stock.out-of-stock,
.price-meta-value .stock.low-stock {
    display: inline-flex !important;
}

/* Hide WooCommerce default price display */
.woocommerce-product-details__short-description .price,
.summary .price,
.woocommerce .summary .price,
.single-product .summary .price,
.product .summary .price {
    display: none !important;
}

/* Hide WooCommerce variation price */
.woocommerce-variation-price,
.woocommerce-variation-price .price,
.single_variation_wrap .woocommerce-variation-price {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-price {
        padding: 0rem;
        border:none;
    }
    
    .price-meta-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .price-meta-item {
        padding: 0.875rem;
    }
    
    .price-meta-icon {
        width: 36px;
        height: 36px;
    }
    
    .price-meta-label {
        font-size: 0.65rem;
    }
    
    .price-meta-label svg {
        width: 10px;
        height: 10px;
    }
    
    .price-meta-value {
        font-size: 0.85rem;
    }
    
    .stock.in-stock,
    .stock.out-of-stock,
    .stock.low-stock {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .sku-value {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .sku-copy-btn {
        min-width: 28px;
        height: 28px;
        padding: 0.3rem;
    }
    
    .sku-copy-btn svg {
        width: 12px;
        height: 12px;
    }
}

.old-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 1.1rem;
    font-weight: 400;
}

.normal-price {
    color: var(--secondary-background);
    font-size: 1.5rem;
    font-weight: 700;
}

/* ==========================================================================
   PRODUCT TABS & ACCORDION
   ========================================================================== */

.product-tabs {
    margin-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
}

.product-tabs nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0.5rem;
}

.tab-button {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    outline: none;
    margin: 0.25rem;
}

.tab-button:hover {
    color: #334155;
    background: rgba(246, 114, 128, 0.1);
    transform: translateY(-1px);
}

.tab-button.active {
    color: #ffffff;
    background: linear-gradient(135deg, #F67280 0%, #C06C84 100%);
    box-shadow: 0 4px 15px rgba(246, 114, 128, 0.4);
}

.tab-content {
    padding: 2rem;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    border: 1px solid #f1f5f9;
    border-top: none;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accordion Styles */
.product-details-accordion {
    overflow: hidden;
}

.product-accordion-item {
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.product-accordion-item:last-child {
    border-bottom: none;
}

.product-accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.product-accordion-header:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.product-accordion-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: #6b7280;
}

.product-accordion-content {
    padding: 0 1.5rem 1.5rem;
    line-height: 1.7;
    color: #4b5563;
}

@media (max-width: 640px) {
    .product-tabs nav {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        text-align: center;
        margin: 0.25rem 0;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .product-accordion-header {
        padding: 1rem;
    }
    
    .product-accordion-content {
        padding: 0 1rem 1rem;
    }
}

/* ==========================================================================
   TRUST INDICATORS CAROUSEL
   ========================================================================== */

.trust-indicators-section {
    margin-top: 1.5rem;
    padding: 0;
}

.trust-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.trust-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.trust-slide.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trust-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    background: white;
    padding: 1.5rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgb(229, 231, 235);
    min-height: 80px;
}

.trust-stat-item {
    text-align: center;
    flex: 1;
    transition: transform 0.3s ease;
    cursor: default;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 35px;
    background: linear-gradient(to bottom, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
}

.trust-stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bg-blue-squarepancake);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.trust-stat-item:hover .stat-number {
    transform: scale(1.05);
}

.trust-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-blue-squarepancake);
    transition: all 0.3s ease;
}

.trust-stat-item:hover .trust-icon {
    transform: scale(1.1);
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.trust-stat-item:hover .stat-label {
    color: #374151;
}

/* Carousel Dots */
.trust-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.trust-carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trust-carousel-dots .dot:hover {
    background: #9ca3af;
}

.trust-carousel-dots .dot.active {
    background: var(--bg-blue-squarepancake);
    width: 24px;
    border-radius: 4px;
}

/* Mobile View */
@media (max-width: 768px) {
    .trust-stats {
        flex-direction: row;
        gap: 1rem;
        padding: 1.25rem 1rem;
        min-height: 70px;
    }

    .trust-stat-item {
        width: auto;
        flex: 1;
    }

    .trust-stat-item:not(:last-child)::after {
        right: -0.5rem;
        height: 30px;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .trust-icon {
        width: 32px;
        height: 32px;
    }

    .trust-icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .trust-stats {
        gap: 0.75rem;
        padding: 1rem 0.75rem;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .trust-icon {
        width: 28px;
        height: 28px;
    }

    .trust-icon svg {
        width: 20px;
        height: 20px;
    }
}


/* ==========================================================================
   RELATED PRODUCTS
   ========================================================================== */

.related-products-section .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.related-products-section ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    display: block !important;
}

.related-products-section ul.products::before,
.related-products-section ul.products::after {
    display: none !important;
}



/* Ensure product info section styling */
.related-products-section .product-card .p-4 {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}


/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Responsive adjustments */
@media (max-width: 768px) {
    .swiper-button-next.product-next-button,
    .swiper-button-prev.product-prev-button {
        padding: 0.5rem;
        --swiper-navigation-size: 20px;
    }
    
    .swiper-button-next.product-next-button {
        right: 0.5rem;
    }
    
    .swiper-button-prev.product-prev-button {
        left: 0.5rem;
    }
}

/* Responsive design for related products */
@media (max-width: 768px) {
    .product-container {
        padding: 1rem 0;
    }
    
    
    body.single-product {
        padding-bottom: 90px;
    }
    
    .related-products-section .products,
    .related-products-section .swiper-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .related-products-section .product-card {
        min-height: 300px;
    }
}

@media (max-width: 640px) {
    .related-products-section .products,
    .related-products-section .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-products-section .product-card h3 {
        font-size: 0.85rem;
        min-height: 2.4rem;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.hover-zoom:hover img {
    transform: scale(1.05);
}

.drop-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.swiper-button-next.product-next-button,
.swiper-button-prev.product-prev-button {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    padding: 0.75rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    --swiper-navigation-size: 24px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.swiper-button-next.product-next-button:hover,
.swiper-button-prev.product-prev-button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.swiper-button-next.product-next-button {
    right: 1rem;
}

.swiper-button-prev.product-prev-button {
    left: 1rem;
}

.swiper-button-next.product-next-button::after,
.swiper-button-prev.product-prev-button::after {
    font-size: 24px;
    font-weight: bold;
}

.category-tab.active {
    background-color: #ef4444;
    color: white;
}

.badge {
    font-size: 10px;
}

.swiper-slide {
    height: auto !important;
}

.product-swiper .swiper-slide {
    height: auto !important;
    width: 20% !important;
}

.related-products-section .swiper-slide {
    height: auto !important;
}

.related-products-section .swiper-slide .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1280px) {
    .product-swiper .swiper-slide {
        width: 25% !important;
    }
}

@media (max-width: 1024px) {
    .product-swiper .swiper-slide {
        width: 33.333% !important;
    }
}

@media (max-width: 768px) {
    .product-swiper .swiper-slide {
        width: 50% !important;
    }
}

@media (max-width: 640px) {
    .product-swiper .swiper-slide {
        width: 75% !important;
    }
}

@media (max-width: 768px) {
    .swiper-button-next.product-next-button,
    .swiper-button-prev.product-prev-button {
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        --swiper-navigation-size: 20px;
    }
    
    .swiper-button-next.product-next-button {
        right: 0.5rem;
    }
    
    .swiper-button-prev.product-prev-button {
        left: 0.5rem;
    }
}

/* ==========================================================================
   PRODUCT VARIATIONS & FORMS
   ========================================================================== */

.variations {
    width: 100%;
    margin-bottom: 2rem;
    border-spacing: 0;
}

.variation-row {
    margin-bottom: 1.5rem;
}

.variation-group {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Mobile responsive adjustments for variation buttons */
@media (max-width: 768px) {
    .variation-buttons-container {
        gap: 6px;
        padding-bottom: 10px;
    }
    
    .variation-buttons-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .single-variation-button {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: 55px;
    }
    
    .variation-buttons-container::before,
    .variation-buttons-container::after {
        width: 20px;
    }
}

.variation-label {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.variation-buttons-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Scrollbar styling */
.variation-buttons-container::-webkit-scrollbar {
    height: 8px;
}

.variation-buttons-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.variation-buttons-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.variation-buttons-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox scrollbar */
.variation-buttons-container {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Scroll indicator shadows */
.variation-buttons-container::before,
.variation-buttons-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 12px;
    width: 30px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.variation-buttons-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
}

.variation-buttons-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
}

.variation-buttons-container.has-scroll-left::before {
    opacity: 1;
}

.variation-buttons-container.has-scroll-right::after {
    opacity: 1;
}

.single-variation-button {
    padding: 12px 16px;
    border: 2px solid var(--primary-border);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: var(--primary-text);
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

/* Button click feedback animation */
.single-variation-button.button-clicking {
    transform: scale(0.95);
}

/* Selection pulse animation */
.single-variation-button.button-selected-pulse {
    animation: selection-pulse 0.3s ease-out;
}

@keyframes selection-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Deselection animation */
.single-variation-button.deselecting {
    animation: fade-out 0.2s ease-out;
}

@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.3;
    }
}

.single-variation-button:hover {
    border-color: var(--bg-blue-squarepancake);
    color: var(--primary-text);
    background: #f8f9ff;
}

.single-variation-button.selected {
    border-color: var(--bg-blue-squarepancake);
    background: var(--bg-blue-squarepancake);
    color: var(--white-text);
}

.single-variation-button:disabled,
.single-variation-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    position: relative;
}

/* Disabled state visual indicator */
.single-variation-button.disabled::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(0,0,0,0.03) 5px,
        rgba(0,0,0,0.03) 10px
    );
    pointer-events: none;
}

.single-variation-button:disabled:hover,
.single-variation-button.disabled:hover {
    background-color: #f9fafb;
    color: #9ca3af;
    border-color: #e5e7eb;
    transform: none;
}

.variation-button-text {
    display: block;
}

.variation-button-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--red-text);
    margin-top: 2px;
}

.single-variation-button.selected .variation-button-price {
    color: #fecaca;
}

/* Color variation specific styles */
.single-variation-button.color-variation {
    width: 3rem;
    height: 3rem;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.single-variation-button.color-variation:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.single-variation-button.color-variation.selected {
    box-shadow: 0 0 0 3px white, 0 0 0 5px var(--bg-blue-squarepancake);
}

.single-variation-button.color-variation.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Size variation specific styles */
.single-variation-button.size-variation {
    min-width: 4rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Hide the default select dropdown */
.variation-select-hidden {
    display: none !important;
}

.variation-select select {
    width: 100%;
    min-width: 200px;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--primary-border);
    color: var(--primary-text);
    font-size: 0.95rem;
    font-weight: 500;
    appearance: none;
    transition: all 0.3s ease;
}

.variation-select select:focus {
    outline: none;
    border-color: var(--bg-blue-squarepancake);
}

.variation-select select:hover {
    border-color: var(--primary-background-hover);
}

.reset_variations {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--primary-text);
    text-decoration: none;
    padding: 1rem 1rem;
    border: 1px solid var(--primary-border);
    background: transparent;
    transition: all 0.3s ease;
}

.reset_variations:hover {
    color: #F67280;
    border-color: #F67280;
    background: rgba(246, 114, 128, 0.05);
    text-decoration: none;
}

.woocommerce-variation {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--primary-border);
}

.woocommerce-variation-price {
    display: none !important;
}

.woocommerce-variation-price .price {
    display: none !important;
}

.woocommerce-variation-availability {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.woocommerce-variation-availability p.stock.in-stock {
    color: #059669;
    font-weight: 600;
    background: rgba(5, 150, 105, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.woocommerce-variation-availability p.stock.out-of-stock {
    color: #dc2626;
    font-weight: 600;
    background: rgba(220, 38, 38, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.woocommerce-variation-description {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ==========================================================================
   FLASH SALE STYLES
   ========================================================================== */

.flash-sale-single-container {
    background: var(--red-background);
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.flash-sale-single-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: flash-sale-shine 2s infinite;
}

@keyframes flash-sale-glow {
    0% {
        box-shadow: 0 8px 32px rgba(220, 38, 38, 0.4);
    }
    100% {
        box-shadow: 0 12px 40px rgba(220, 38, 38, 0.6);
    }
}

@keyframes flash-sale-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.flash-sale-single-container .countdown-timer {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.flash-sale-single-container .countdown-timer span {
    padding: 8px 12px;
    margin: 0 3px;
    display: inline-block;
    min-width: 35px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.flash-sale-single-container .countdown-timer.urgent {
    animation: countdown-pulse 1.5s infinite;
}

.flash-sale-single-container .countdown-timer.very-urgent {
    animation: countdown-pulse 0.8s infinite;
    color: #fef08a;
}

@keyframes countdown-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.flash-sale-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: flash-badge-pulse 2s infinite;
}

@keyframes flash-badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ==========================================================================
   BREADCRUMB & NAVIGATION - Optimized & Responsive
   ========================================================================== */

.breadcrumb-container {
    font-size: 0.875rem;
    color: #6B7280;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 0.75rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.breadcrumb-container::-webkit-scrollbar {
    display: none;
}

.breadcrumb-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.breadcrumb-nav {
    min-width: 100%;
}

.breadcrumb-container .woocommerce-breadcrumb {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.25rem;
    list-style: none;
    white-space: nowrap;
}

.breadcrumb-container .woocommerce-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-container .woocommerce-breadcrumb a {
    color: #4b5563;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
    min-height: 44px; /* Touch-friendly */
}

.breadcrumb-container .woocommerce-breadcrumb a:hover {
    color: #F67280;
    background: rgba(246, 114, 128, 0.1);
    transform: translateY(-1px);
}

.breadcrumb-container .woocommerce-breadcrumb a:active {
    transform: translateY(0);
}

/* Home icon styling */
.breadcrumb-home-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 2.5;
}

/* Separator styling */
.breadcrumb-separator {
    color: black;
    font-weight: 300;
    padding: 0 0.25rem;
    user-select: none;
}

/* Current page (last item) */
.breadcrumb-container .woocommerce-breadcrumb li:last-child {
    color: #111827;
    font-weight: 600;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .breadcrumb-container {
        padding: 0.5rem 0;
        font-size: 0.8125rem;
    }
    
    /* Hide home text on mobile, keep icon */
    .breadcrumb-home-text {
        display: none;
    }
    
    .breadcrumb-home-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Truncate long breadcrumb items */
    .breadcrumb-container .woocommerce-breadcrumb a {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0.5rem 0.625rem;
    }
    
    .breadcrumb-container .woocommerce-breadcrumb li:last-child {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    .breadcrumb-container {
        padding: 0.625rem 0;
    }
    
    .breadcrumb-container .woocommerce-breadcrumb a {
        padding: 0.5rem 0.75rem;
    }
}

/* Desktop - show full breadcrumb */
@media (min-width: 1025px) {
    .breadcrumb-container {
        padding: 1rem 0;
    }
    
    .breadcrumb-container .woocommerce-breadcrumb {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Focus states for accessibility */
.breadcrumb-container .woocommerce-breadcrumb a:focus {
    outline: 2px solid #F67280;
    outline-offset: 2px;
}

/* Smooth scroll indicator on mobile */
@media (max-width: 640px) {
    .breadcrumb-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, #f8fafc);
        pointer-events: none;
    }
}

/* ==========================================================================
   CART ANIMATIONS & INTERACTIONS
   ========================================================================== */

@keyframes cartShake {
    0% { transform: translateX(0); }
    15% { transform: translateX(-5px) rotate(-5deg); }
    30% { transform: translateX(5px) rotate(5deg); }
    45% { transform: translateX(-5px) rotate(-3deg); }
    60% { transform: translateX(5px) rotate(3deg); }
    75% { transform: translateX(-2px) rotate(-1deg); }
    100% { transform: translateX(0); }
}

.cart-shake {
    animation: cartShake 0.8s cubic-bezier(.36,.07,.19,.97) both;
    transform-origin: center center;
}

#add-to-cart-notification {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   RATING & REVIEWS
   ========================================================================== */

#rating-trigger {
    position: relative;
    padding: 8px 16px;
    margin: -8px -16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#rating-trigger:hover {
    background-color: rgba(246, 114, 128, 0.1);
    transform: translateY(-1px);
}

#rating-trigger::after {
    content: '→';
    display: inline-block;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-5px);
}

#rating-trigger:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.star-rating {
    position: relative;
    height: 1.2em;
    line-height: 1;
    font-size: 1rem;
    width: 5.4em;
    font-family: star;
    overflow: hidden;
    display: inline-block;
}

.star-rating::before {
    content: "\53\53\53\53\53";
    color: #e5e7eb;
    position: absolute;
    top: 0;
    left: 0;
}

.star-rating span {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 1.5em;
}

.star-rating span::before {
    content: "\53\53\53\53\53";
    position: absolute;
    top: 0;
    left: 0;
    color: #fbbf24;
}

.woocommerce-product-rating .star-rating {
    margin-top: 3px;
}

/* Cart shake animation */
@keyframes cartShake {
    0% { transform: translateX(0); }
    15% { transform: translateX(-5px) rotate(-5deg); }
    30% { transform: translateX(5px) rotate(5deg); }
    45% { transform: translateX(-5px) rotate(-3deg); }
    60% { transform: translateX(5px) rotate(3deg); }
    75% { transform: translateX(-2px) rotate(-1deg); }
    100% { transform: translateX(0); }
}

.cart-shake {
    animation: cartShake 0.8s cubic-bezier(.36,.07,.19,.97) both;
    transform-origin: center center;
}

/* Notification styling */
#add-to-cart-notification {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Related Products Styles */
.related-products-section .products {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 640px) {
    .related-products-section .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-products-section .products {
        grid-template-columns: repeat(4, 1fr);
    }
}

.related-products-section .product-card {
    width: 100%;
    margin: 0;
}

.related-products-section ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    display: block !important;
}

.related-products-section ul.products::before,
.related-products-section ul.products::after {
    display: none !important;
}




.video-thumb {
    position: relative;
}

.video-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}


/* ==========================================================================
   MOBILE STICKY BOTTOM BAR
   ========================================================================== */

.mobile-sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
    z-index: 999;
    
    /* ✅ Performance hints - GPU acceleration */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    
    /* Initial state - hidden below viewport */
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    padding: 12px 16px;
    display: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

/* Visible state - slide up into view */
.mobile-sticky-bottom-bar.visible {
    transform: translateY(100%);
}

/* Footer visible - hide sticky bar smoothly */
.mobile-sticky-bottom-bar.footer-visible {
    transform: translateY(0);
    transition: transform 0.2s ease-out;
}

/* Scroll direction based behavior (optional enhancement) */
.mobile-sticky-bottom-bar.scrolling-down:not(.footer-visible) {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .mobile-sticky-bottom-bar {
        display: block;
    }
}

.mobile-sticky-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

.mobile-sticky-price-info {
    flex: 1;
    min-width: 0;
}

.mobile-sticky-price-label {
    font-size: 0.6875rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 2px;
}

.mobile-sticky-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mobile-sticky-price .current-price {
    font-size: 1.375rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.mobile-sticky-price .current-price.normal {
    color: #111827;
}

.mobile-sticky-price .old-price {
    font-size: 0.9375rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.discount-badge-small {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    animation: discount-pulse-small 2s ease-in-out infinite;
}

@keyframes discount-pulse-small {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.mobile-sticky-actions {
    flex-shrink: 0;
}

.mobile-sticky-add-to-cart {
    background: var(--bg-blue-squarepancake));
    color: white;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 120px;
}

.mobile-sticky-add-to-cart:hover:not(:disabled) {
    transform: translateY(-1px);
}

.mobile-sticky-add-to-cart:active {
    transform: translateY(0);
}

.mobile-sticky-add-to-cart:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.mobile-sticky-add-to-cart svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mobile-sticky-add-to-cart .button-text {
    overflow: hidden;
    text-overflow: ellipsis;
}


.mobile-sticky-scroll-hint {
    position: absolute;
    top: -32px;
    right: 16px;
    background: var(--bg-blue-squarepancake);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-sticky-scroll-hint::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: var(--bg-blue-squarepancake);
    transform: rotate(45deg);
}

.mobile-sticky-scroll-hint.show {
    opacity: 1;
    transform: translateY(0);
}

/* Loading state */
.mobile-sticky-add-to-cart.loading {
    pointer-events: none;
    opacity: 0.7;
}

.mobile-sticky-add-to-cart.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Variation not selected state */
.mobile-sticky-add-to-cart.variation-required {
    background: #9ca3af;
    box-shadow: none;
}

.mobile-sticky-add-to-cart.variation-required:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .mobile-sticky-content {
        gap: 8px;
    }
    
    .mobile-sticky-add-to-cart {
        padding: 10px 12px;
        font-size: 0.8125rem;
        min-width: 100px;
    }
    
    .mobile-sticky-price .current-price {
        font-size: 1.25rem;
    }
    
    .mobile-sticky-price .old-price {
        font-size: 0.875rem;
    }
    
    .discount-badge-small {
        font-size: 0.5625rem;
        padding: 1px 4px;
    }
}

/* Add padding to product container on mobile to prevent content from being hidden behind sticky bar */
@media (max-width: 768px) {
    body.single-product .product-container {
        padding-bottom: 100px;
    }
}


/* ==========================================================================
   MOBILE ONLY - HIDE DESKTOP CART ON MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .desktop-only-cart {
        display: none !important;
    }
}

/* ==========================================================================
   MOBILE VARIATION MODAL
   ========================================================================== */

.mobile-variation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-variation-modal.active {
    display: block;
    opacity: 1;
}

.mobile-variation-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.mobile-variation-modal .modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-variation-modal.active .modal-content {
    transform: translateY(0);
}

/* Modal Header */
.mobile-variation-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.mobile-variation-modal .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.mobile-variation-modal .modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-variation-modal .modal-close:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.mobile-variation-modal .modal-close svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

/* Modal Body */
.mobile-variation-modal .modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* Product Info in Modal */
.modal-product-info {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-product-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Modal Price Section - Updated Design */
.modal-product-price-section {
    margin-bottom: 16px;
}

.modal-price-main-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.modal-price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.modal-price-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.modal-discount-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    animation: discount-pulse-small 2s ease-in-out infinite;
}

.modal-price-display-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.modal-regular-price {
    font-size: 0.9375rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.modal-current-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.modal-current-price.normal {
    color: #1e293b;
}

.modal-savings-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-savings-text {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.modal-savings-amount {
    font-size: 0.8125rem;
    color: #059669;
    font-weight: 700;
}

/* Legacy support - hide old structure */
.modal-product-price {
    display: none;
}

/* Variation Groups */
.modal-variations-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-variation-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-variation-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.modal-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-variation-option {
    padding: 10px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.modal-variation-option:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.modal-variation-option.active {
    background: var(--bg-blue-squarepancake);
    border-color: var(--bg-blue-squarepancake);
    color: #ffffff;
}

.modal-variation-option:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Stock Info in Modal */
.modal-stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.modal-stock-info svg {
    flex-shrink: 0;
}

.modal-stock-info .stock-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* Modal Footer */
.mobile-variation-modal .modal-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #ffffff;
}

.modal-add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: var(--bg-blue-squarepancake);
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.modal-add-to-cart-btn:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.modal-add-to-cart-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.modal-add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.modal-add-to-cart-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

.modal-add-to-cart-btn svg {
    width: 20px;
    height: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   MOBILE STICKY BOTTOM BAR
   ========================================================================== */

.mobile-sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    z-index: 9999;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-bottom-bar {
        display: block;
    }
}

.mobile-sticky-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

.mobile-sticky-price-info {
    flex: 1;
    min-width: 0;
}

.mobile-sticky-price-label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 2px;
    font-weight: 500;
}

.mobile-sticky-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mobile-sticky-price .current-price {
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
}

.mobile-sticky-price .old-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

.mobile-sticky-actions {
    flex-shrink: 0;
}

.mobile-sticky-add-to-cart {
    padding: 12px 20px;
    background: var(--bg-blue-squarepancake);
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mobile-sticky-add-to-cart:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
}

.mobile-sticky-add-to-cart:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.mobile-sticky-add-to-cart svg {
    width: 18px;
    height: 18px;
}

.mobile-sticky-add-to-cart.loading {
    pointer-events: none;
    opacity: 0.7;
}

.mobile-sticky-add-to-cart.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 6px;
}

.mobile-sticky-scroll-hint {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #1f2937;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.mobile-sticky-scroll-hint::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

.mobile-sticky-scroll-hint.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   MOBILE INLINE ADD TO CART (Below Price Section)
   ========================================================================== */

.mobile-inline-add-to-cart {
    display: none;
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .mobile-inline-add-to-cart {
        display: block;
    }
}

.mobile-inline-cart-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--bg-blue-squarepancake);
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.mobile-inline-cart-btn:hover {
    transform: translateY(-1px);
}

.mobile-inline-cart-btn:active {
    transform: translateY(0);
}

.mobile-inline-cart-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.mobile-inline-cart-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.mobile-inline-cart-btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 10px;
}
