/* =========================================
   SINGLE PRODUCT PAGE STYLES
   Complete styling for product detail pages
   ========================================= */

/* Product Details Section */
.product-details-section {
    padding: 140px 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-color, #050505);
}

.product-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 140px;
    width: 100%;
}

.main-image {
    position: relative;
    width: 100%;
    height: 700px;
    background: var(--card-bg, #111);
    border: 1px solid var(--border-color, #222);
    overflow: hidden;
    border-radius: 4px;
}

.product-fade-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.p-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-slide.active {
    opacity: 1;
    z-index: 1;
}

.p-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
}

.p-slider-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.p-slider-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
}

.p-slider-btn:hover {
    background: white;
    color: black;
    transform: scale(1.1);
}

/* Product Info Column */
.product-info-col {
    padding: 2rem 0;
}

.product-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted, #888);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 3.5rem;
    font-family: 'Anton', sans-serif;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.product-price-sale {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color, #fff);
    font-family: 'Inter', sans-serif;
}

.product-price-original {
    font-size: 1.8rem;
    color: var(--text-muted, #888);
    text-decoration: line-through;
    font-family: 'Inter', sans-serif;
}

.product-discount-badge {
    background: #ff4444;
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted, #ccc);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.product-description p {
    margin-bottom: 1rem;
    color: #ccc;
}

/* Product Options & Add to Cart */
.product-options-wrapper {
    margin-bottom: 2.5rem;
}

.custom-woo-form .cart,
.variations_form.cart,
.variations_button,
.woocommerce-variation-add-to-cart,
.woocommerce-variation-add-to-cart-enabled,
.single_variation_wrap {
    display: flex !important;
    flex-direction: column !important;
    /* Force stacked layout always */
    gap: 1.5rem !important;
    align-items: flex-start !important;
    /* FIXED FROM CENTER */
    width: 100% !important;
    text-align: left !important;
}

/* Variation Selectors */
.custom-woo-form .variations {
    border: none;
    margin: 0;
    width: 100%;
}

.custom-woo-form .variations tr {
    display: table-row;
    margin-bottom: 1.5rem;
}

.custom-woo-form .variations .label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color, #fff);
    margin-bottom: 0.8rem;
    font-family: 'Inter', sans-serif;
}

.custom-woo-form .variations .label label {
    margin: 0;
    color: #fff;
}

.custom-woo-form .variations .value {
    width: 100%;
}

.custom-woo-form .variations select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--card-bg, #111);
    border: 1px solid var(--border-color, #333);
    color: var(--text-color, #fff);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.custom-woo-form .variations select:hover,
.custom-woo-form .variations select:focus {
    border-color: var(--text-color, #fff);
    outline: none;
}

/* Size Selector Buttons (Custom) */
.size-selector {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.size-btn {
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 15px;
    min-width: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.size-btn:hover {
    border-color: #fff;
}

.size-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Color Swatches */
.color-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #333;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border: 2px solid #fff;
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #000 inset;
}

/* Quantity Input - Unified */
.quantity,
.product-actions-vlack .quantity,
.custom-woo-form .quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border: none !important; /* REMOVE OUTER BORDER */
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Style the internal wrapper (Injected by JS) */
.qty-wrapper {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #fff !important; /* SINGLE CLEAN BORDER */
    height: 50px !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    width: 140px !important;
}

.quantity .qty,
.product-actions-vlack .qty,
.custom-woo-form .quantity .qty,
.qty-wrapper input.qty {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    outline: none !important;
    height: 100% !important;
    width: 60px !important;
    text-align: center !important;
    font-size: 1.1rem !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Style the plus/minus buttons inside the wrapper */
.qty-btn {
    width: 40px !important;
    height: 100% !important;
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 1.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.qty-btn:hover {
    background: rgba(255,255,255,0.1) !important;
}


/* Product Accordions - Full Width */
.product-accordions {
    width: 100% !important;
    max-width: 100% !important;
    margin: 3rem 0 !important;
    border-top: 1px solid #333 !important;
    display: block !important;
    clear: both !important;
}

.accordion-item {
    border-bottom: 1px solid #333 !important;
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

.accordion-item summary {
    padding: 1.5rem 0 !important;
    list-style: none !important;
    cursor: pointer !important;
    font-family: 'Anton', sans-serif !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: #fff !important;
    outline: none !important;
}

.accordion-item summary::-webkit-details-marker {
    display: none !important;
}

.accordion-item .icon {
    font-size: 1.2rem !important;
    color: #888 !important;
}

.accordion-content {
    padding: 0 0 2rem 0 !important;
    color: #ccc !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    width: 100% !important;
}

/* Add to Cart Button */
.custom-woo-form button[type="submit"],
.custom-woo-form .single_add_to_cart_button,
.single_add_to_cart_button,
.product-actions-vlack .single_add_to_cart_button {
    background: #B6B6B6 !important;
    color: #17181A !important;
    border: none !important;
    padding: 0 2.5rem !important;
    height: 75px !important;
    /* Taller height */
    width: auto !important;
    min-width: 280px !important;
    max-width: 400px !important;
    /* Constrained horizontal length */
    font-family: 'Anton', sans-serif !important;
    text-transform: uppercase !important;
    font-size: 1.5rem !important;
    /* Bolder font */
    letter-spacing: 2px !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    margin-top: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.custom-woo-form button[type="submit"]:hover,
.custom-woo-form .single_add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.product-actions-vlack .single_add_to_cart_button:hover {
    background: #fff !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.custom-woo-form button[type="submit"]:disabled,
.custom-woo-form .single_add_to_cart_button:disabled,
.single_add_to_cart_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Product Meta */
.product-meta {
    border-top: 1px solid var(--border-color, #333);
    padding-top: 2rem;
    margin-top: 2rem;
}

.product-meta p {
    font-size: 0.95rem;
    color: var(--text-muted, #888);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.product-meta p span {
    color: var(--text-color, #fff);
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Related Products Section */
.related-products-section {
    padding: 4rem 2rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color, #333);
}

.related-products-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-family: 'Anton', sans-serif;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}

/* Product Grid (for related products) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: transparent;
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--card-bg, #111);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 0;
    text-align: left;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.product-info h3 a {
    color: #fff;
    text-decoration: none;
}

.product-info h3 a:hover {
    color: #ccc;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.price-sale {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-details-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .main-image {
        height: 600px;
    }

    .product-title {
        font-size: 2.5rem;
    }

    .product-price-sale {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .product-details-section {
        padding: 120px 1rem 2rem;
    }

    .product-details-container {
        gap: 2rem;
    }

    .main-image {
        height: 450px;
    }

    .p-slide img {
        padding: 1rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-price-sale {
        font-size: 1.8rem;
    }

    .product-price-original {
        font-size: 1.4rem;
    }

    .product-description {
        font-size: 1rem;
    }

    .p-slider-controls {
        bottom: 1rem;
        right: 1rem;
    }

    .p-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .related-products-section .section-title {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 1.8rem;
    }

    .product-price-sale {
        font-size: 1.5rem;
    }

    .main-image {
        height: 350px;
    }

    .custom-woo-form button[type="submit"],
    .custom-woo-form .single_add_to_cart_button,
    .single_add_to_cart_button {
        font-size: 1.1rem;
        padding: 1.2rem 2rem;
    }
}

/* Removed conflicting quantity wrapper block */


/* =========================================
   LEFT ALIGNMENT OVERRIDES (The "Vlack" Fix)
   ========================================= */
body .product-actions-vlack form.variations_form,
body .product-actions-vlack form.cart {
    display: flex !important;
    flex-direction: column !important;
}

body .product-actions-vlack form.variations_form,
body .product-actions-vlack form.cart,
body .woocommerce-variation-add-to-cart,
body .variations_button,
body .single_variation_wrap {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.variations,
.variations_form table.variations {
    margin-left: 0 !important;
    margin-right: auto !important;
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
    align-self: flex-start !important;
}

.variations tbody,
.variations tr {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin-block-end: 1rem !important;
}

.variations th.label,
.variations td.value {
    text-align: left !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
    width: 100% !important;
}

/* Fix Labels Specifically */
.variations th.label label {
    text-align: left !important;
    margin-left: 0 !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
    padding-top: 0 !important;
}

.product-actions-vlack .quantity,
.quantity,
.single_add_to_cart_button {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Ensure swatches/pills also align left */
.tawcvs-swatches,
.swatch-wrapper,
.size-selector {
    justify-content: flex-start !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    display: flex !important;
}

/* Fix the "BUY 2 GET EXTRA" Banner if it's centered */
.buy-promo-banner,
.product-actions-vlack strong {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* =========================================
   PRODUCT REVIEWS STYLING
   ========================================= */
.product-reviews-section {
    font-family: 'Inter', sans-serif;
}

.product-reviews-section h2.woocommerce-Reviews-title {
    font-size: 2.5rem !important;
    font-family: 'Anton', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 2rem !important;
    color: #fff !important;
}

/* Star Ratings */
.star-rating {
    float: none !important;
    margin: 0 0 1rem 0 !important;
    color: #fff !important; /* Gold stars standard, we use white for mono theme */
    font-size: 1.2rem !important;
}

/* Comment List */
ol.commentlist {
    list-style: none !important;
    padding: 0 !important;
}

ol.commentlist li.review {
    background: #111 !important;
    border: 1px solid #222 !important;
    padding: 2rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 4px !important;
}

ol.commentlist li.review .avatar {
    border-radius: 50% !important;
    border: 1px solid #333 !important;
    margin-right: 1.5rem !important;
}

ol.commentlist li.review .comment-text {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

ol.commentlist li.review .description {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: #ccc !important;
}

ol.commentlist li.review .meta {
    font-size: 0.9rem !important;
    color: #888 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 0.5rem !important;
}

/* Review Form */
#review_form_wrapper {
    background: #111 !important;
    border: 1px solid #222 !important;
    padding: 3rem !important;
    margin-top: 4rem !important;
    border-radius: 4px !important;
}

#review_form_wrapper h3#reply-title {
    font-size: 1.8rem !important;
    font-family: 'Anton', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 2rem !important;
    color: #fff !important;
}

#commentform p.comment-notes {
    color: #888 !important;
    margin-bottom: 2rem !important;
}

#commentform label {
    font-weight: 600 !important;
    color: #fff !important;
    display: block !important;
    margin-bottom: 0.8rem !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
    background: #000 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    padding: 1.2rem !important;
    width: 100% !important;
    font-family: 'Inter', sans-serif !important;
    border-radius: 4px !important;
}

#commentform input:focus,
#commentform textarea:focus {
    border-color: #fff !important;
    outline: none !important;
}

#commentform .submit {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    padding: 1.2rem 3.5rem !important;
    font-family: 'Anton', sans-serif !important;
    text-transform: uppercase !important;
    font-size: 1.2rem !important;
    letter-spacing: 2px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 1rem !important;
}

#commentform .submit:hover {
    background: #ccc !important;
    transform: translateY(-2px) !important;
}

/* Fix standard stars interactive selection (Improved Highlight Logic) */
p.stars {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 2rem !important;
}

p.stars a {
    position: relative !important;
    display: inline-block !important;
    width: 40px !important; /* Increased size */
    height: 40px !important;
    text-indent: -999em !important; /* Hide the text */
    overflow: hidden !important;
    cursor: pointer !important;
}

p.stars a::before {
    content: "\2606" !important; /* Empty star by default */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    text-indent: 0 !important;
    font-size: 38px !important; /* Larger stars */
    color: #fff !important;
    line-height: 1 !important;
    transition: color 0.1s ease !important;
}

/* Hover Effect: Fill all stars on hover, then unfill those after the hovered one */
p.stars:hover a::before {
    content: "\2605" !important;
}
p.stars a:hover ~ a::before {
    content: "\2606" !important;
}

/* Active/Selected State: Fill all stars if one is active, then unfill those after it */
/* Note: We use the parent state if a child is active */
p.stars a.active ~ a::before {
    content: "\2606" !important;
}

/* Base state for active stars - if any star has 'active' class, color all stars up to it */
/* This is a fallback if the parent doesn't have a class, but usually p.stars gets a class like 'selected' in Woo */
p.stars.selected a::before {
    content: "\2605" !important;
}
p.stars.selected a.active ~ a::before {
    content: "\2606" !important;
}

/* Fix display of existing ratings in the list */
.star-rating {
    overflow: hidden !important;
    position: relative !important;
    height: 1em !important;
    line-height: 1 !important;
    font-size: 1.4rem !important;
    width: 5.4em !important;
    font-family: 'star' !important;
}

.star-rating::before {
    content: "\2605\2605\2605\2605\2605" !important;
    color: #333 !important;
    float: left !important;
    top: 0 !important;
    left: 0 !important;
    position: absolute !important;
}

.star-rating span {
    overflow: hidden !important;
    float: left !important;
    top: 0 !important;
    left: 0 !important;
    position: absolute !important;
    padding-top: 1.5em !important;
}

.star-rating span::before {
    content: "\2605\2605\2605\2605\2605" !important;
    top: 0 !important;
    left: 0 !important;
    position: absolute !important;
    color: #fff !important;
}