/* ===============================
   PRODUCT PAGE — PREMIUM ULTRA
   File: /assets/frontend/css/pages-product.css
   Features: 8K Ready • Glass Morphism • Premium Animations • Image Zoom
================================ */

/* Base Styles - 8K Ready with rem scaling */
.pd-page {
    padding: clamp(1rem, 2vw, 2rem) 0 clamp(2rem, 4vw, 4rem);
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    min-height: 100vh;
    font-size: 16px; /* Base for rem */
}

/* 8K Support */
@media (min-width: 3840px) {
    .pd-page { font-size: 24px; }
}

/* Premium Breadcrumbs */
.pd-crumbs {
    font-size: 0.85rem;
    color: rgba(17, 17, 17, 0.6);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1.5rem 0 1.5rem;
    position: relative;
}

.pd-crumbs a {
    text-decoration: none;
    color: rgba(17, 17, 17, 0.7);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.2rem 0;
}

.pd-crumbs a:hover {
    color: #c7a253;
}

.pd-crumbs a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c7a253;
    transition: width 0.3s ease;
}

.pd-crumbs a:hover::after {
    width: 100%;
}

.pd-crumbs span {
    margin: 0 0.8rem;
    color: #c7a253;
    font-weight: 700;
}

/* Premium Grid Layout */
.pd-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    margin-top: 1rem;
}

/* Premium Cards */
.pd-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(199, 162, 83, 0.15);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(199, 162, 83, 0.05) inset;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px -12px rgba(199, 162, 83, 0.25),
        0 0 0 1px rgba(199, 162, 83, 0.15) inset;
    border-color: rgba(199, 162, 83, 0.3);
}

/* Premium Image Gallery with Zoom */
.pd-mainimg {
    height: 520px;
    background: rgba(17, 17, 17, 0.02);
    position: relative;
    overflow: hidden;
}

.premium-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.premium-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: crosshair;
}

.premium-zoom-lens {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid #c7a253;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    display: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(199, 162, 83, 0.3);
}

.premium-zoom-result {
    position: absolute;
    top: 0;
    right: -400px;
    width: 400px;
    height: 400px;
    border: 2px solid #c7a253;
    border-radius: 12px;
    background-repeat: no-repeat;
    background-color: #fff;
    display: none;
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Premium Thumbnails */
.pd-thumbs {
    display: flex;
    gap: 0.8rem;
    padding: 1.2rem;
    border-top: 1px solid rgba(199, 162, 83, 0.1);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #c7a253 rgba(199, 162, 83, 0.1);
}

.pd-thumbs::-webkit-scrollbar {
    height: 4px;
}

.pd-thumbs::-webkit-scrollbar-track {
    background: rgba(199, 162, 83, 0.05);
    border-radius: 10px;
}

.pd-thumbs::-webkit-scrollbar-thumb {
    background: rgba(199, 162, 83, 0.3);
    border-radius: 10px;
}

.premium-thumb {
    width: 90px;
    height: 70px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    background: rgba(17, 17, 17, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.premium-thumb.active {
    border-color: #c7a253;
    transform: scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(199, 162, 83, 0.3);
}

.premium-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.premium-thumb:hover img {
    transform: scale(1.1);
}

.thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(199, 162, 83, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-thumb:hover .thumb-overlay {
    opacity: 1;
}

/* Premium Info Section */
.pd-info {
    padding: 2rem;
}

/* Premium Title - Smaller & Elegant */
.pd-title {
    font-size: clamp(1.8rem, 2.5vw, 2.2rem) !important;
    font-weight: 500 !important;
    font-family: 'Playfair Display', var(--serif);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0 0.2rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.pd-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, #c7a253, transparent);
    border-radius: 2px;
}

/* For very large screens */
@media (min-width: 3840px) {
    .pd-title {
        font-size: 2.5rem !important;
    }
}

/* Premium Chips */
.pd-meta {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.premium-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 100px;
    background: rgba(199, 162, 83, 0.05);
    border: 1px solid rgba(199, 162, 83, 0.15);
    color: rgba(17, 17, 17, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.premium-chip i {
    color: #c7a253;
    font-size: 1rem;
}

.premium-chip:hover {
    background: rgba(199, 162, 83, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -5px rgba(199, 162, 83, 0.3);
}

/* Premium Price */
.pd-price {
    margin-top: 2rem;
}

.premium-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.premium-now {
    font-weight: 900;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #c7a253, #b38f3f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-old {
    color: rgba(17, 17, 17, 0.4);
    text-decoration: line-through;
    font-size: 1.2rem;
}

.premium-sale {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, #c7a253, #b38f3f);
    color: white;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 5px 15px -5px rgba(199, 162, 83, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Premium Stock Alert */
.premium-stock-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(199, 162, 83, 0.05), rgba(199, 162, 83, 0.1));
    border: 1px solid rgba(199, 162, 83, 0.3);
    border-radius: 20px;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
    animation: stockPulse 2s infinite;
}

@keyframes stockPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(199, 162, 83, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(199, 162, 83, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(199, 162, 83, 0);
    }
}

.premium-stock-alert::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(199, 162, 83, 0.1) 0%, transparent 70%);
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stock-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #c7a253, #b38f3f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px -5px rgba(199, 162, 83, 0.4);
    position: relative;
    z-index: 1;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.stock-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stock-title {
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c7a253;
    margin-bottom: 0.3rem;
}

.stock-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.stock-highlight {
    color: #c7a253;
    font-weight: 800;
    font-size: 1.3rem;
    margin-left: 0.5rem;
}

.stock-badge {
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, #c7a253, #b38f3f);
    color: white;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    box-shadow: 0 5px 15px -5px rgba(199, 162, 83, 0.4);
    position: relative;
    z-index: 1;
}

/* Low Stock Warning */
.stock-warning {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-left: 1rem;
    animation: warningPulse 1.5s infinite;
}

@keyframes warningPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Sale Countdown Timer */
.sale-countdown {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.countdown-numbers {
    display: inline-flex;
    gap: 0.3rem;
    margin-left: 0.5rem;
}

.countdown-numbers span {
    background: #c7a253;
    color: #1a1a1a;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-weight: 900;
    min-width: 2rem;
    text-align: center;
}

/* Premium Section Titles */
.premium-section-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(199, 162, 83, 0.2);
}

.premium-section-title i {
    color: #c7a253;
    font-size: 1.2rem;
}

.premium-section-title span {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1rem;
    color: #1a1a1a;
}

/* Premium Color Grid */
.premium-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.premium-color-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border: 2px solid rgba(199, 162, 83, 0.2);
    border-radius: 100px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.premium-color-btn:hover {
    border-color: #c7a253;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(199, 162, 83, 0.2);
}

.premium-color-btn.active {
    border-color: #c7a253;
    background: rgba(199, 162, 83, 0.05);
    box-shadow: 0 0 0 3px rgba(199, 162, 83, 0.2);
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.color-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Premium Size Grid */
.premium-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.premium-size-btn {
    min-width: 80px;
    padding: 1rem;
    border: 2px solid rgba(199, 162, 83, 0.2);
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.premium-size-btn:hover {
    border-color: #c7a253;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(199, 162, 83, 0.2);
}

.premium-size-btn.active {
    border-color: #c7a253;
    background: rgba(199, 162, 83, 0.05);
    box-shadow: 0 0 0 3px rgba(199, 162, 83, 0.2);
}

.premium-size-btn.in-stock .size-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.premium-size-btn.in-stock .size-stock {
    font-size: 0.75rem;
    color: #10b981;
}

.premium-size-btn.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.premium-size-btn.out-of-stock .size-stock {
    color: #ef4444;
    font-size: 0.75rem;
}

.premium-size-note {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(199, 162, 83, 0.05);
    border-radius: 12px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-size-note i {
    color: #c7a253;
}

/* Premium Action Buttons */
.pd-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pd-actions .btn {
    flex: 1;
    min-width: 200px;
    padding: 1.2rem 1.5rem;
    border-radius: 18px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.pd-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pd-actions .btn:hover::before {
    left: 100%;
}

.pd-actions .btn {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.pd-actions .btn:hover {
    background: linear-gradient(135deg, #c7a253, #b38f3f);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(199, 162, 83, 0.4);
}

.btn--ghost {
    background: transparent !important;
    border: 2px solid #1a1a1a !important;
    color: #1a1a1a !important;
    box-shadow: none !important;
}

.btn--ghost:hover {
    background: #1a1a1a !important;
    color: white !important;
    border-color: #1a1a1a !important;
}

/* Premium Boxes */
.pd-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(199, 162, 83, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(199, 162, 83, 0.1);
}

.pd-boxhd {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #c7a253;
    margin-bottom: 1rem;
}

.pd-bullets {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-bullets li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: #4a4a4a;
    line-height: 1.6;
}

.pd-bullets li i {
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: #c7a253;
    font-size: 1rem;
}

.pd-desc {
    color: #4a4a4a;
    line-height: 1.8;
    font-size: 1rem;
}

/* Premium Popup */
.premium-cart-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-cart-popup.show {
    opacity: 1;
}

.popup-content {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(199, 162, 83, 0.2);
}

.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 20px 30px -10px rgba(16, 185, 129, 0.3);
}

.popup-content h3 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 800;
}

.popup-content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.popup-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.popup-btn.continue {
    background: #f5f5f5;
    color: #666;
}

.popup-btn.continue:hover {
    background: #e5e5e5;
}

.popup-btn.primary {
    background: linear-gradient(135deg, #c7a253, #b38f3f);
    color: white;
}

.popup-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(199, 162, 83, 0.4);
}

/* Skeleton Loading */
.skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Error Message */
.error-message {
    padding: 3rem;
    text-align: center;
    color: #ef4444;
    font-size: 1.2rem;
}

/* Premium No Image / No Colors */
.premium-no-image,
.premium-no-colors,
.premium-no-sizes {
    padding: 2rem;
    text-align: center;
    color: #999;
    font-style: italic;
    background: rgba(199, 162, 83, 0.02);
    border-radius: 16px;
}

/* ===============================
   MOBILE OPTIMIZATION - PREMIUM COMPACT
================================ */

@media (max-width: 600px) {
    /* Product Page Container */
    .pd-page {
        padding: 0.5rem 0 1.5rem;
    }

    /* Breadcrumbs - Smaller */
    .pd-crumbs {
        font-size: 0.7rem;
        padding: 0.8rem 0;
        letter-spacing: 0.05em;
    }
    
    .pd-crumbs span {
        margin: 0 0.3rem;
    }

    /* Title - Much Smaller */
    .pd-title {
        font-size: 1.3rem !important;
        margin: 0.3rem 0;
        line-height: 1.2;
    }
    
    .pd-title::after {
        width: 3rem;
        bottom: -0.3rem;
    }

    /* Meta Chips - Compact */
    .pd-meta {
        gap: 0.4rem;
        margin-top: 0.8rem;
    }
    
    .premium-chip {
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
        gap: 0.3rem;
    }
    
    .premium-chip i {
        font-size: 0.7rem;
    }

    /* Price Section - Compact */
    .pd-price {
        margin-top: 1rem;
    }
    
    .premium-price-wrapper {
        gap: 0.5rem;
    }
    
    .premium-now {
        font-size: 1.5rem;
    }
    
    .premium-old {
        font-size: 0.9rem;
    }
    
    .premium-sale {
        padding: 0.2rem 0.8rem;
        font-size: 0.7rem;
    }

    /* Stock Alert - Compact */
    .premium-stock-alert {
        padding: 0.8rem 1rem;
        margin: 1rem 0;
        gap: 0.5rem;
    }
    
    .stock-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .stock-title {
        font-size: 0.7rem;
    }
    
    .stock-message {
        font-size: 0.85rem;
    }
    
    .stock-badge {
        padding: 0.2rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .stock-warning {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
        margin-left: 0.3rem;
    }

    /* Section Titles - Smaller */
    .premium-section-title {
        margin: 1rem 0 0.6rem;
        gap: 0.5rem;
    }
    
    .premium-section-title i {
        font-size: 0.9rem;
    }
    
    .premium-section-title span {
        font-size: 0.8rem;
    }

    /* Color Grid - Compact */
    .premium-color-grid {
        gap: 0.5rem;
        margin: 0.5rem 0;
    }
    
    .premium-color-btn {
        padding: 0.4rem 0.8rem;
        gap: 0.4rem;
    }
    
    .color-swatch {
        width: 16px;
        height: 16px;
    }
    
    .color-name {
        font-size: 0.7rem;
    }

    /* Size Grid - Compact */
    .premium-size-grid {
        gap: 0.5rem;
        margin: 0.5rem 0;
    }
    
    .premium-size-btn {
        min-width: 50px;
        padding: 0.5rem;
    }
    
    .size-label {
        font-size: 0.8rem;
    }
    
    .size-stock {
        font-size: 0.6rem;
    }
    
    .premium-size-note {
        padding: 0.5rem;
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }

    /* Action Buttons - Compact */
    .pd-actions {
        margin-top: 1.2rem;
        gap: 0.6rem;
    }
    
    .pd-actions .btn {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
        gap: 0.4rem;
        min-width: auto;
    }

    /* Highlights & Description - Compact */
    .pd-box {
        margin-top: 1.2rem;
        padding: 1rem;
    }
    
    .pd-boxhd {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .pd-bullets li {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
        padding-left: 1.2rem;
    }
    
    .pd-bullets li i {
        font-size: 0.7rem;
        top: 0.1rem;
    }
    
    .pd-desc {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    /* Gallery - Smaller */
    .pd-mainimg {
        height: 280px;
    }
    
    .premium-thumb {
        width: 55px;
        height: 45px;
    }
    
    .pd-thumbs {
        padding: 0.8rem;
        gap: 0.5rem;
    }

    /* Popup - Smaller */
    .popup-content {
        padding: 1.5rem;
        width: 85%;
    }
    
    .popup-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .popup-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .popup-content p {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .popup-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.75rem;
    }

    /* Sale Countdown - Smaller */
    .sale-countdown {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
        margin-top: 0.3rem;
    }
    
    .countdown-numbers span {
        padding: 0.1rem 0.2rem;
        min-width: 1.5rem;
        font-size: 0.7rem;
    }
}

/* Extra Small Devices (under 380px) */
@media (max-width: 380px) {
    .pd-title {
        font-size: 1.1rem !important;
    }
    
    .premium-now {
        font-size: 1.3rem;
    }
    
    .premium-color-btn {
        padding: 0.3rem 0.6rem;
    }
    
    .premium-size-btn {
        min-width: 45px;
        padding: 0.4rem;
    }
    
    .size-label {
        font-size: 0.7rem;
    }
    
    .pd-mainimg {
        height: 220px;
    }
}

/* Fix for very small devices */
@media (max-width: 320px) {
    .premium-color-grid {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .premium-color-btn {
        width: 100%;
        justify-content: center;
    }
    
    .premium-size-grid {
        justify-content: center;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .premium-thumb:hover {
        transform: none;
    }
    
    .premium-color-btn:hover {
        transform: none;
    }
    
    .premium-size-btn:hover {
        transform: none;
    }
    
    .pd-actions .btn:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .pd-page {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .pd-card {
        background: rgba(45, 45, 45, 0.95);
        border-color: rgba(199, 162, 83, 0.15);
    }
    
    .pd-title {
        background: linear-gradient(135deg, #fff 0%, #c7a253 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .premium-chip {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.8);
    }
    
    .premium-color-btn {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .premium-color-btn .color-name {
        color: white;
    }
    
    .premium-size-btn {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .premium-size-btn .size-label {
        color: white;
    }
    
    .premium-size-note {
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.7);
    }
    
    .stock-message {
        color: white;
    }
    
    .sale-countdown {
        background: linear-gradient(135deg, #2d2d2d, #3d3d3d);
    }
    
    .pd-box {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .pd-bullets li {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .pd-desc {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .btn--ghost {
        border-color: white !important;
        color: white !important;
    }
    
    .btn--ghost:hover {
        background: white !important;
        color: #1a1a1a !important;
    }
}

/* Responsive Design for Tablets */
@media (min-width: 601px) and (max-width: 1199px) {
    .pd-title {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 1200px) {
    .premium-zoom-result {
        display: none !important;
    }
}

@media (max-width: 980px) {
    .pd-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pd-mainimg {
        height: 400px;
    }
    
    .premium-zoom-result {
        display: none !important;
    }
    
    .premium-size-grid {
        gap: 0.8rem;
    }
    
    .premium-size-btn {
        min-width: 70px;
        padding: 0.8rem;
    }
}
/* =========================================================
   ✅ FIX (2026-02-22)
   1) Mobile sticky actions (ADD TO CART + BUY NOW) styling
   2) Size buttons smaller + rectangle (not round)
   NOTE: JS show/hide works using inline !important display
========================================================= */

@media (max-width: 880px){

  /* ✅ Size buttons: smaller + rectangle */
  .premium-size-grid{
    gap: 8px !important;
  }
  .premium-size-btn{
    min-width: 64px !important;
    padding: 10px 10px !important;
    border-radius: 8px !important;   /* ✅ rectangle feel */
  }
  .premium-size-btn .size-label{
    font-size: 0.85rem !important;
    font-weight: 800 !important;
  }
  .premium-size-btn .size-stock{
    font-size: 0.62rem !important;
  }

  /* ✅ Mobile sticky action bar */
  .pd-mobile-actions{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;

    /* ✅ footer menu se upar rahe */
    bottom: 78px !important;

    z-index: 999999 !important;
    pointer-events: auto !important;

    /* IMPORTANT: display ko JS control karega */
    display: none;
  }

  .pd-mobile-actions .pd-act{
    width: 100% !important;
    border: 2px solid rgba(0,0,0,.12) !important;

    /* ✅ not round */
    border-radius: 14px !important;

    padding: 14px 14px !important;
    font-weight: 900 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;

    cursor: pointer !important;
    pointer-events: auto !important;
  }

  /* Top button: black */
  .pd-mobile-actions .pd-add{
    background: #111 !important;
    color: #fff !important;
    border-color: rgba(0,0,0,.15) !important;
    margin-bottom: 10px !important;
  }

  /* Bottom button: golden */
  .pd-mobile-actions .pd-buy{
    background: #c7a253 !important;
    color: #111 !important;
    border-color: rgba(199,162,83,.35) !important;
  }

  /* ✅ Page content bottom safe space (footer + bar overlap na kare) */
  body.has-pd-actions{
    padding-bottom: 190px !important;
  }
}