/* Aether-Inspired Dark Premium Design */
:root {
    --bg-black: #050505;
    --bg-card: #111111;
    --text-white: #ffffff;
    --text-gray: #888888;
    --accent-blue: #0070bc;
    --border-dark: #222222;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body,
.single-product-page {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-primary);
}

.custom-product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* Layout */
.product-main-layout {

    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Approx 36/64 split */
    gap: 80px;
    align-items: start;
}

/* Gallery Slider */
/* Gallery Slider (Standard Layout) */
.product-gallery-section {
    position: relative;
    /* Block layout for stacked elements */
}

/* Thumbnails - Horizontal Bottom */
.thumbnail-strip {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    overflow-x: auto;
    width: 100%;
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* Firefox, Chrome 121+ */
@supports (scrollbar-width: none) {
    .thumbnail-strip {
        scrollbar-width: none;
    }
}

/* Legacy Chrome, Safari, Edge */
.thumbnail-strip::-webkit-scrollbar {
    display: none;
}

.main-gallery-slider {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 0;
    aspect-ratio: 1/1;
    width: 100%;
    position: relative;
    border: 1px solid var(--border-dark);
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    /* Let clicks pass through if invisible */
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

/* Ensure inner image/wrapper fills the slide */
.gallery-slide img,
.gallery-slide .woocommerce-product-gallery__image,
.gallery-slide>div {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slider Nav */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    /* Lighter bg */
    border: none;
    color: white;
    padding: 10px;
    /* Smaller padding */
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition-smooth);
    opacity: 0;
    /* Hidden by default */
}

.main-gallery-slider:hover .slider-prev,
.main-gallery-slider:hover .slider-next {
    opacity: 1;
    /* Show on hover */
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.thumb-box {
    flex: 0 0 80px;
    /* Fixed size, don't shrink */
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    padding: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: hidden;
    flex-shrink: 0;
}

.thumb-box.active,
.thumb-box:hover {
    border-color: var(--text-white);
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Product Info - Right Side */
.product-summary-section {
    padding-top: 20px;
}

/* Breadcrumbs / Tag */
.product-collection-tag {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collection-pill {
    border: 1px solid var(--text-white);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.product-availability {
    font-size: 0.75rem;
    color: #4ade80;
    /* Bright green */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Typography */
.product_title {
    font-size: 27px;
    /* Massive title */
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    color: var(--text-white);
    letter-spacing: -0.3px;
}

.price-rating-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 30px;
}

.price {
    font-size: 27px;
    font-weight: 400;
    color: var(--text-white);
}

.review-badges-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Short Description */
.description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}



/* WooCommerce Add to Cart - Aether Styling */
.aether-add-to-cart-wrapper {
    margin-bottom: 40px;
}

/* Variable Product Selectors (Premium/Custom) */
.variations {
    width: 100%;
    margin-bottom: 40px;
    /* Increased margin */
    border: none;
    border-collapse: separate;
    border-spacing: 0 25px;
    /* Increased vertical gap */
}

.variations th.label {
    text-align: left;
    vertical-align: middle;
    width: 25%;
    padding-right: 15px;
}

.variations label {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
    /* Slightly larger label */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.variations td.value {
    vertical-align: middle;
    position: relative;
}

.variations select {
    width: 100%;
    background-color: var(--bg-card);
    color: var(--text-white);
    border: 1px solid var(--border-dark);
    padding: 20px 24px;
    /* Larger touch target */
    border-radius: 14px;
    /* More rounded */
    font-family: var(--font-primary);
    font-size: 1.1rem;
    /* Larger text */
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: var(--transition-smooth);

    /* Custom Chevron Arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 25px) center;
}

.variations select:hover {
    border-color: #555;
    background-color: #1a1a1a;
}

.variations select:focus {
    outline: none;
    border-color: var(--text-white);
    background-color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.reset_variations {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-gray);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.reset_variations:hover {
    color: var(--text-white);
    border-bottom-color: var(--text-white);
}

/* Single Add to Cart Button & Quantity */
/* Single Add to Cart Button & Quantity */
/* For Simple Products */
.cart:not(.variations_form) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Balanced split */
    gap: 20px;
}

/* For Variable Products (Target the wrapper div) */
.woocommerce-variation-add-to-cart {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Increase left part (Quantity) */
    gap: 20px;
    margin-top: 20px;
}

.quantity {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 30px;
    display: flex;
    align-items: center;
    position: relative;
    height: 60px;
}

.quantity input {
    background: transparent;
    border: none;
    color: var(--text-white);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    width: 50px;
    height: 100%;
    -moz-appearance: textfield;
    appearance: textfield;
    flex-shrink: 0;
}

/* Custom +/- Buttons */
.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 300;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
    margin: 0 4px;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qty-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.92);
}

/* Make .quantity a flex row to hold buttons + input */
.quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

/* Hide standard WC qty arrows */
.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single_add_to_cart_button {
    background: var(--text-white);
    color: var(--bg-black);
    border: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 60px;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.single_add_to_cart_button:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Trust Icons Below Button */
.trust-indicators {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-dark);
    padding-top: 30px;
    margin-top: 30px;
}

.trust-item {
    text-align: center;
}

.trust-item i {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    display: block;
}

.trust-item span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
}

/* Material Mastery Section */
.material-mastery-section {
    text-align: center;
    padding: 100px 0 60px;
    max-width: 800px;
    margin: 0 auto;
}

/* Details/Shipping Tabs */
.minimal-tabs {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 20px;
}

.minimal-tab-item {
    color: var(--text-gray);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.minimal-tab-item:hover {
    color: var(--text-white);
}

.minimal-tab-item.active {
    color: var(--text-white);
    position: relative;
}

.minimal-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.tab-content {
    animation: fadeIn 0.5s ease;
}

.material-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-white);
}

.material-desc {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-main-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product_title {
        font-size: 2.5rem;
    }

    .custom-product-container {
        padding: 40px 20px;
    }

    /* Stack Add to Cart & Quantity on Mobile */
    .cart:not(.variations_form),
    .woocommerce-variation-add-to-cart {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .single_add_to_cart_button,
    .quantity {
        height: 50px;
        /* Slightly shorter on mobile */
        font-size: 1rem;
    }

    /* Trust indicators: Allow wrapping or smaller text */
    .trust-indicators {
        flex-wrap: wrap;
        gap: 15px;
    }

    .trust-item {
        flex: 1 1 40%;
        /* 2 per row */
    }

}


/* Reviews Section - Dark Premium */
.reviews-container {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

/* Comment List */
.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.commentlist li {
    border-bottom: 1px solid var(--border-dark);
    padding: 30px 0;
    display: flex;
    gap: 20px;
}

.comment_container {
    display: flex;
    gap: 20px;
    width: 100%;
}

.commentlist img.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
}

.comment-text {
    flex: 1;
}

.meta {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 5px;
    display: block;
}

.meta strong {
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 10px;
}

/* Star Ratings in Reviews */
.star-rating {
    float: right;
    width: 80px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z'/%3E%3C/svg%3E") repeat-x left center;
    background-size: 16px 16px;
}

.star-rating span {
    display: block;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z'/%3E%3C/svg%3E") repeat-x left center;
    background-size: 16px 16px;
    text-indent: -9999px;
    width: 0;
    overflow: hidden;
}

/* Review Form */
#review_form_wrapper {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-dark);
}

#reply-title {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.comment-form-rating label {
    color: var(--text-gray);
    display: block;
    margin-bottom: 10px;
}

.stars {
    display: inline-block;
    margin-bottom: 20px;
}

.stars a {
    color: var(--text-gray);
    margin-right: 5px;
    transition: color 0.3s;
}

.stars a:hover,
.stars a.active {
    color: var(--text-white);
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    display: block;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    background: #000;
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 15px;
    color: var(--text-white);
    font-family: var(--font-primary);
    margin-bottom: 20px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--text-white);
}

.form-submit input[type="submit"] {
    background: var(--text-white);
    color: var(--bg-black);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.form-submit input[type="submit"]:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}