/* Variant Product Display - Main Styles */

:root {
    --vpd-purple: #9333EA;
    --vpd-purple-dark: #7C3AED;
    --vpd-purple-light: #A855F7;
    --vpd-bg-dark: #0F0F0F;
    --vpd-bg-card: #1A1A1A;
    --vpd-border: #2A2A2A;
    --vpd-text-primary: #FFFFFF;
    --vpd-text-secondary: #A0A0A0;
    --vpd-success: #10B981;
    --vpd-warning: #F59E0B;
}


/* Line 17-21 in assets/css/style.css - ADD WIDTH */

.vpd-single-product-wrapper {
    background: var(--vpd-bg-dark);
    min-height: 100vh;
    padding: 40px 0;
    width: 100%;
    max-width: 100%;
}

/* Line 23-33 in assets/css/style.css - RESTORED ORIGINAL */

.vpd-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--vpd-bg-dark);
    color: var(--vpd-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Left Side - Product Image */
.vpd-product-left {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.vpd-product-image {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--vpd-border);
}

.vpd-product-image img {
    width: 100%;
    height: 74%;
    object-fit: cover;
    display: block;
}

.vpd-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--vpd-text-secondary);
    font-size: 18px;
}

.vpd-product-description {
    margin-top: 20px;
    padding: 20px;
    background: var(--vpd-bg-card);
    border: 1px solid var(--vpd-border);
    border-radius: 8px;
}

.vpd-product-description p {
    margin: 0;
    color: var(--vpd-text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* Right Side - Product Details */
.vpd-product-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vpd-product-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: var(--vpd-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vpd-product-price-stock {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vpd-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--vpd-text-primary);
}

.vpd-stock {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vpd-stock.in-stock {
    background: rgba(16, 185, 129, 0.15);
    color: var(--vpd-success);
}

.vpd-stock.out-of-stock {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* Variants Section */
.vpd-variants-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vpd-variant-heading,
.vpd-quantity-heading {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--vpd-text-primary);
    text-transform: capitalize;
}

.vpd-variants-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vpd-variant-item {
    position: relative;
    padding: 12px 16px;
    background: var(--vpd-bg-card);
    border: 1px solid var(--vpd-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.vpd-variant-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--vpd-purple) 0%, var(--vpd-purple-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.vpd-variant-item:hover {
    transform: scale(1.02);
    border-color: var(--vpd-purple);
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.2);
}

.vpd-variant-item:hover::before {
    opacity: 0.08;
}

.vpd-variant-item.selected {
    transform: scale(1.02);
    border-color: var(--vpd-purple);
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.3);
}

.vpd-variant-item.selected::before {
    opacity: 0.12;
}

.vpd-variant-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.vpd-variant-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.vpd-variant-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--vpd-text-primary);
}

.vpd-variant-stock {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
    letter-spacing: 0.5px;
}

.vpd-variant-stock.in-stock {
    background: rgba(16, 185, 129, 0.15);
    color: var(--vpd-success);
}

.vpd-variant-stock.out-of-stock {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.vpd-variant-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color: var(--vpd-warning);
    line-height: 1.4;
}

.vpd-warning-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.vpd-variant-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 20px;
}

.vpd-variant-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--vpd-text-primary);
}

.vpd-variant-original-price {
    font-size: 13px;
    color: var(--vpd-text-secondary);
    text-decoration: line-through;
}

.vpd-variant-check {
    position: absolute;
    top: -1px;
    right: -1px;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
}

.vpd-variant-item.selected .vpd-variant-check {
    transform: scale(1);
    opacity: 1;
}

.vpd-variant-check svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Quantity Section */
.vpd-quantity-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vpd-quantity-controls {
    align-items: center;
    gap: 12px;
    width: 100%;
    display: grid;
    grid-template-columns: 50px 1fr 50px;
}

.vpd-quantity-btn {
    width: 44px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vpd-bg-card);
    border: 2px solid var(--vpd-border);
    border-radius: 8px;
    color: var(--vpd-text-primary);
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    padding-top: 10px;
}

.vpd-quantity-btn:hover {
    background: var(--vpd-purple);
    border-color: var(--vpd-purple);
    transform: scale(1.05);
}

.vpd-quantity-btn:active {
    transform: scale(0.95);
}

.vpd-quantity-input {
    width: 80px;
    height: 44px;
    text-align: center;
    background: var(--vpd-bg-card);
    border: 2px solid var(--vpd-border);
    border-radius: 8px;
    color: var(--vpd-text-primary);
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.vpd-quantity-input::-webkit-inner-spin-button,
.vpd-quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.vpd-quantity-input:focus {
    outline: none;
    border-color: var(--vpd-purple);
}

/* Action Buttons */
.vpd-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.vpd-btn {
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.vpd-add-to-cart {
    background: var(--vpd-purple);
    color: white;
}

.vpd-add-to-cart:hover {
    background: var(--vpd-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

.vpd-buy-now {
    background: transparent;
    color: var(--vpd-purple);
    border: 2px solid var(--vpd-purple);
}

.vpd-buy-now:hover {
    background: var(--vpd-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

.vpd-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vpd-product-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .vpd-product-left {
        position: relative;
        top: 0;
    }
}

@media (max-width: 640px) {
    .vpd-product-container {
        padding: 20px 16px;
    }
    
    .vpd-product-title {
        font-size: 24px;
    }
    
    .vpd-price {
        font-size: 22px;
    }
    
    .vpd-action-buttons {
        grid-template-columns: 1fr;
    }
    
    /* Keep variant layout same as desktop - DON'T change to column */
    .vpd-variant-content {
        flex-direction: row;
        justify-content: space-between;
        align-items:     align-items: center;
    }
    
    .vpd-variant-left {
        flex: 1;
    }
    
    .vpd-variant-right {
        flex-direction: row;
        align-items: center;
        margin-left: 12px;
    }
    
    /* Quantity controls full width on mobile */
    .vpd-quantity-controls {
        width: 100%;
        display: grid;
        grid-template-columns: 50px 1fr 50px;
        gap: 12px;
    }
    
    .vpd-quantity-input {
        width: 100%;
    }
}
/* Extra Items Styles */
.vpd-extra-items {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(147, 51, 234, 0.3);
    display: none;
    animation: vpd-slide-down 0.3s ease;
}

.vpd-variant-item.selected .vpd-extra-items {
    display: flex;
    gap: 16px;
}

@keyframes vpd-slide-down {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.vpd-extra-items-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vpd-extra-item-name {
    font-size: 13px;
    color: #FFFFFF;
    line-height: 1.5;
}

.vpd-extra-items-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.vpd-extra-items-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vpd-extra-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vpd-extra-btn {
    width: 28px;
    height: 28px;
    background: #06B6D4;
    border: none;
    border-radius: 4px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.vpd-extra-btn:hover {
    background: #0891B2;
}

.vpd-extra-input {
    width: 50px;
    height: 28px;
    text-align: center;
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 4px;
    color: #FFF;
    font-size: 13px;
}

.vpd-extra-input:focus {
    outline: none;
    border-color: #06B6D4;
}

/* Checkbox Extra Items Styles */
.vpd-extra-items-checkbox {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(147, 51, 234, 0.3);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 10px;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out, padding 0.5s ease-out;
}

.vpd-variant-item.selected .vpd-extra-items-checkbox {
    max-height: 1000px;
    opacity: 1;
    display: flex;
}

.vpd-extra-checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(147, 51, 234, 0.05);
    border: 2px solid rgba(147, 51, 234, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform: translateY(0);
    opacity: 1;
}

.vpd-extra-checkbox-item:hover {
    border-color: rgba(147, 51, 234, 0.5);
    background: rgba(147, 51, 234, 0.1);
}

.vpd-extra-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #9333EA;
}

.vpd-extra-checkbox-item input[type="checkbox"]:checked ~ .vpd-checkbox-label {
    color: #9333EA;
    font-weight: 600;
}

.vpd-extra-checkbox-item.checked {
    border-color: #9333EA;
    background: rgba(147, 51, 234, 0.15);
}

.vpd-checkbox-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    color: var(--vpd-text-primary);
}

.vpd-checkbox-name {
    font-size: 14px;
}

.vpd-checkbox-price {
    font-size: 14px;
    font-weight: 600;
    color: #10B981;
}

/* Quantity Section Fixes for Astra Theme */
.vpd-quantity-section {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-end;
    width: 100%;
}

.vpd-quantity-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vpd-quantity-controls {
    display: grid !important;
    grid-template-columns: 60px 1fr 60px !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
}

.vpd-quantity-btn {
    width: 60px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--vpd-bg-card) !important;
    border: 2px solid var(--vpd-border) !important;
    border-radius: 8px !important;
    color: var(--vpd-text-primary) !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.vpd-quantity-btn:hover {
    background: var(--vpd-purple) !important;
    border-color: var(--vpd-purple) !important;
    transform: scale(1.05) !important;
}

.vpd-quantity-btn:active {
    transform: scale(0.95) !important;
}

.vpd-quantity-input {
    width: 100% !important;
    height: 50px !important;
    text-align: center !important;
    background: var(--vpd-bg-card) !important;
    border: 2px solid var(--vpd-border) !important;
    border-radius: 8px !important;
    color: var(--vpd-text-primary) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    -moz-appearance: textfield !important;
    padding: 0 !important;
    margin: 0 !important;
}

.vpd-quantity-input::-webkit-inner-spin-button,
.vpd-quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.vpd-quantity-input:focus {
    outline: none !important;
    border-color: var(--vpd-purple) !important;
}

/* Action Button 50% Width */
.vpd-action-buttons {
    flex: 1;
    display: flex !important;
    align-items: flex-end;
}

.vpd-action-buttons .vpd-btn {
    width: 100% !important;
    height: 50px !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vpd-quantity-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .vpd-quantity-wrapper,
    .vpd-action-buttons {
        flex: none;
        width: 100%;
    }
    
    .vpd-quantity-controls {
        grid-template-columns: 50px 1fr 50px !important;
    }
    
    .vpd-quantity-btn {
        width: 50px !important;
        height: 46px !important;
        font-size: 20px !important;
    }
    
    .vpd-quantity-input {
        height: 46px !important;
        font-size: 16px !important;
    }
}

/* Archive Page Styles */
.vpd-archive-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #0A0A0F;
}

.vpd-category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.vpd-tab-btn {
    padding: 12px 24px;
    background: transparent;
    color: #A0A0A0;
    border: 2px solid #2A2A3E;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.vpd-tab-btn:hover {
    border-color: #9333EA;
    color: #fff;
}

.vpd-tab-btn.active {
    background: #9333EA;
    border-color: #9333EA;
    color: #fff;
}

.vpd-search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.vpd-search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    background: #1A1A2E;
    border: 2px solid #2A2A3E;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
}

.vpd-search-input:focus {
    outline: none;
    border-color: #9333EA;
}

.vpd-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B6B7B;
}

.vpd-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.vpd-product-card {
    background: transparent;
    border: 1px solid #2A2A3E;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.vpd-product-card:hover {
    border-color: #9333EA;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.vpd-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.vpd-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0A0A0F;
    border-bottom: 1px solid #2A2A3E;
}

.vpd-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vpd-card-details {
    padding: 16px 20px 20px;
    background: #0A0A0F;
}

.vpd-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.vpd-card-price-range {
    color: #fff;
}

.vpd-card-original-price {
    font-size: 14px;
    color: #6B6B7B;
    text-decoration: line-through;
    margin-left: 8px;
}

.vpd-card-title {
    font-size: 15px;
    color: #A0A0A0;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.vpd-load-more-container {
    text-align: center;
    margin-top: 40px;
}

.vpd-load-more-btn {
    padding: 16px 48px;
    background: transparent;
    color: #9333EA;
    border: 2px solid #9333EA;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.vpd-load-more-btn:hover {
    background: #9333EA;
    color: #fff;
}

.vpd-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #6B6B7B;
}

@media (max-width: 1024px) {
    .vpd-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .vpd-products-grid {
        grid-template-columns: 1fr;
    }
}