/* ============================================================
   SINGLE PRODUCT PAGE REDESIGN - BOUTIQUE THEME
   ============================================================ */

/* 1. Page Background Alignment */
.single-product {
    background: linear-gradient(135deg, hsl(40 30% 97%) 0%, hsl(40 25% 95%) 50%, hsl(40 30% 97%) 100%) !important;
}

.single-product .ast-container {
    padding-top: 140px !important;
    max-width: 1300px !important;
}

/* 2. Product Gallery (Left Side) */
.single-product div.product .woocommerce-product-gallery {
    background: hsla(var(--glass-bg) / 0.5) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid hsla(var(--glass-border) / 0.8) !important;
    border-radius: 30px !important;
    padding: 20px !important;
    box-shadow: 0 12px 40px rgba(var(--shadow-dark), 0.08) !important;
}

.single-product div.product .woocommerce-product-gallery__image {
    border-radius: 20px !important;
    overflow: hidden !important;
}

/* Thumbnails */
.flex-control-thumbs li img {
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    transition: 0.3s;
    filter: grayscale(1);
}

.flex-control-thumbs li img.flex-active {
    border-color: hsl(var(--accent)) !important;
    filter: grayscale(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.woocommerce-js ul.products li.product a img, .woocommerce-page ul.products li.product a img {

    border-radius: 17px;
}

/* 3. Product Summary (Right Side) */
.single-product .summary.entry-summary {
    background: linear-gradient(135deg, hsla(var(--glass-bg) / 0.8), hsla(var(--glass-bg) / 0.6)) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid hsla(var(--glass-border) / 0.8) !important;
    border-radius: 30px !important;
    padding: 40px 10px !important;
    box-shadow: 0 15px 45px rgba(var(--shadow-dark), 0.1) !important;
}

/* Typography Summary */
.single-product .product_title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(32px, 4vw, 48px) !important;
    font-weight: 300 !important;
    line-height: 1.1 !important;
    margin-bottom: 15px !important;
}

.single-product .woocommerce-breadcrumb {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 20px !important;
    color: hsl(var(--muted-foreground)) !important;
}

.single-product .price {
    font-size: 24px !important;
    font-weight: 500 !important;
    color: hsl(var(--foreground)) !important;
    margin-bottom: 25px !important;
}

.single-product .price ins {
    text-decoration: none !important;
    color: hsl(var(--accent)) !important;
    font-weight: 600;
}

/* 4. Add to Cart Form Styling */
.single-product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 40px !important;
    padding-top: 30px !important;
    border-top: 1px solid hsla(var(--border) / 0.4) !important;
}

/* Quantity Input Style */
.single-product  .quantity .qty {
    width: 70px !important;
    height: 52px !important;
    border-radius: 14px !important;
    background: hsla(var(--glass-bg) / 0.4) !important;
    border: 1px solid hsla(var(--glass-border) / 0.8) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03) !important;
    font-weight: 600 !important;
    text-align: center !important;

}
/* Chrome, Edge, Safari */
.single-product .summary   input[type=number]::-webkit-inner-spin-button,
.single-product  .summary input[type=number]::-webkit-outer-spin-button {
  opacity: 1;
  height: 60px;
  margin:20px 5px;
  border:1px solid black;
  width: 28px;
  cursor: pointer;
}

/* Firefox */
.single-product  input[type=number] {
  -moz-appearance: textfield;
}

/* Optional: make input nicer overall */
.single-product  input.qty {
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}


/* Main Button Style - High Contrast Black Pill */
.single-product .single_add_to_cart_button {
    flex: 1 !important;
    height: 52px !important;
    background: #1a1a1a !important;
    color: white !important;
    border-radius: 50px !important;
    border: none !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-size: 14px !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.single-product .single_add_to_cart_button:hover {
    background: #000 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

/* 5. Tabs Redesign (Description/Reviews) */
.woocommerce-tabs.wc-tabs-wrapper {
    margin-top: 60px !important;

    background: hsla(var(--glass-bg) / 0.3) !important;
    border-radius: 30px !important;
    border: 1px solid hsla(var(--glass-border) / 0.5) !important;
}

.wc-tabs {
    border: none !important;
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
    padding: 0 !important;
}

.wc-tabs li {
    background: transparent !important;
    border: none !important;
}

.wc-tabs li a {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    color: hsl(var(--muted-foreground)) !important;
    padding-bottom: 5px !important;
    position: relative !important;
}

.wc-tabs li.active a {
    color: hsl(var(--foreground)) !important;
}

.wc-tabs li.active a::after {
    content: '';
    position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
    background: hsl(var(--accent));
}

.woocommerce-Tabs-panel {
    line-height: 1.8 !important;
    color: hsl(var(--muted-foreground)) !important;
}

/* 6. Related Products */
.related.products {
    margin-top: 80px !important;
   
}

.related.products h2 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 32px !important;
    text-align: center;
}

/* 7. Sale Badge Pill */
.ast-onsale-card {
    background: #fff !important;
    color: hsl(var(--accent)) !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    top: 30px !important;
    left: 30px !important;
}

/* 8. Responsive Adjustments */
@media (max-width: 921px) {
    .single-product div.product {
        display: flex !important;
        flex-direction: column !important;
    }
    .single-product .summary.entry-summary {
        width: 100% !important;
        margin-top: 30px !important;
        
    }
}
/* ============================================================
   PRODUCT TABS & REVIEWS - MOBILE OPTIMIZATION
   ============================================================ */

/* 1. Fix Tab Titles on Mobile */
.woocommerce-tabs ul.tabs {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 10px 0 !important;
    border: none !important;
}

.woocommerce-tabs ul.tabs li a {
    font-size: 18px !important; /* Slightly smaller for mobile */
    letter-spacing: 0.05em !important;
}

/* 2. Review List Styling */
.commentlist {
    list-style: none !important;
    padding: 0 !important;
    margin: 30px 0 !important;
}

.commentlist li.review {
    background: hsla(var(--glass-bg) / 0.5) !important;
    border: 1px solid hsla(var(--glass-border) / 0.5) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: row !important; /* Image on left, text on right */
    gap: 15px !important;
}

.commentlist li .avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #eee !important;
}

.comment-text {
    flex: 1 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.comment-text .meta {
    font-size: 13px !important;
    color: hsl(var(--foreground)) !important;
    margin-bottom: 5px !important;
    word-break: break-all !important; /* Ensures emails don't break layout */
}

.comment-text .description p {
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: hsl(var(--muted-foreground)) !important;
}

/* 3. Star Rating Styling */
.star-rating {
    color: #f59e0b !important; /* Premium Gold */
    font-size: 12px !important;
}

/* 4. Add a Review Form Fix */
#review_form_wrapper {
    background: hsla(var(--glass-bg) / 0.7) !important;
    border-radius: 24px !important;
  
    border: 1px solid hsla(var(--glass-border) / 0.8) !important;
    margin-top: 40px !important;
}
#review_form{
padding:.5em !important;
}

.comment-reply-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 24px !important;
    display: block !important;
    margin-bottom: 20px !important;
}

/* Form Inputs */
#commentform p label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: hsl(var(--foreground)) !important;
    display: block !important;
    margin-bottom: 8px !important;
}

#commentform textarea, 
#commentform input[type="text"], 
#commentform input[type="email"] {
    width: 100% !important;
    background: hsla(var(--glass-bg) / 0.5) !important;
    border: 1px solid hsla(var(--glass-border) / 0.8) !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    font-family: inherit !important;
}

/* 5. Submit Button Re-design (The Black Pill) */
#commentform #submit {
    width: 100% !important;
    height: 50px !important;
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
    transition: 0.3s ease !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
    margin-top: 15px !important;
}

#commentform #submit:hover {
    background: #000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15) !important;
}

/* 6. Fix for character-by-character wrapping on mobile */
@media (max-width: 480px) {
    .woocommerce-Tabs-panel {
        padding: 20px 10px !important;
    }
    
    .comment-text .meta {
        display: flex !important;
        flex-direction: column !important;
    }

    .woocommerce-tabs li a {
        font-size: 16px !important;
    }
}
.woocommerce ul.products li.product.desktop-align-left, .woocommerce-page ul.products li.product.desktop-align-left,.woocommerce ul.products li.product.mobile-align-left, .woocommerce-page ul.products li.product.mobile-align-left{
box-shadow: 0 35px 60px -15px rgba(var(--shadow-dark), .25), 0 15px 30px -10px rgba(var(--shadow-dark), .15), 0 5px 10px rgba(var(--shadow-dark), .1) !important;
}