/**
 * HLHN Custom Styles
 * Margiela-inspired minimalist design system for HighLife HighNyanNyan
 */

/* Font Imports - Loaded via functions.php */
* {
    font-family: 'Inter', sans-serif;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Utility class for hiding elements (Tailwind CSS alternative) */
.hidden {
    display: none !important;
}

/* Background Colors */
.margiela-bg {
    background: #f8f8f8;
}

.margiela-dark {
    background: #1a1a1a;
}

/* Deconstruct Animation */
.deconstruct {
    position: relative;
    overflow: hidden;
}

.deconstruct::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: sweep 3s infinite;
}

@keyframes sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* T-Shirt Display Effects */
.tshirt-display {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.tshirt-card {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    transform-origin: center;
}

.tshirt-card:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.02);
}

/* Minimal Button */
.minimal-button {
    border: 1px solid #000;
    background: transparent;
    transition: all 0.3s ease;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.minimal-button:hover {
    background: #000;
    color: #fff;
}

/* Label Tag */
.label-tag {
    background: #fff;
    border: 1px solid #000;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dynamic Grid Layout */
.dynamic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
}

/* T-Shirt Showcase Card */
.tshirt-showcase {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
}

/* Design Number Badge */
.design-number {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 300;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .dynamic-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* WordPress Admin Bar Compatibility */
body.admin-bar {
    margin-top: 0 !important;
}

/* WooCommerce Add to Cart Button - Product Page */
.single-product .single_add_to_cart_button,
.woocommerce button.button.alt {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    transition: all 0.3s ease !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 12px 48px !important;
    font-size: 14px !important;
    border-radius: 0 !important;
}

.single-product .single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* Scroll to Top Button Styling */
#ast-scroll-top {
    background-color: transparent !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    border-radius: 0 !important;
    width: 48px !important;
    height: 48px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#ast-scroll-top:hover {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
}

#ast-scroll-top svg {
    fill: currentColor !important;
    width: 16px !important;
    height: 16px !important;
}

#ast-scroll-top .ast-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ============================================================================
 * Issue #22: Price Display - Tax and Shipping Included
 * ============================================================================
 */
.hlhn-price-display {
    margin: 0;
    padding: 0;
}

.hlhn-price-total {
    font-size: 24px;
    font-weight: 400;
    color: #000;
    margin-bottom: 4px;
}

.hlhn-price-breakdown {
    font-size: 12px;
    color: #666;
    font-weight: 300;
}

.hlhn-price-label {
    font-family: 'Inter', sans-serif;
}

/* Single product page price styling */
.single-product .price .hlhn-price-display {
    margin: 0;
}

.single-product .price .hlhn-price-total {
    font-size: 28px;
    font-weight: 300;
}

/* ============================================================================
 * Issue #23: Hide Category and Tag on Single Product Page
 * ============================================================================
 */
.single-product .product_meta,
.single-product .posted_in,
.single-product .tagged_as {
    display: none !important;
}

/* Hide category from breadcrumbs on product page */
.single-product .woocommerce-breadcrumb a[href*="product_cat"] {
    display: none;
}

/* Hide category link displayed after breadcrumb on single product page */
.single-product-category,
.woocommerce div.product .single-product-category,
.ast-woocommerce-container .single-product-category {
    display: none !important;
}

/* ============================================================================
 * Issue #24: Header Cart Icon Styling
 * ============================================================================
 */
/* Hide cart title text */
.ast-woo-header-cart-title {
    display: none !important;
}

/* Style cart container */
.ast-site-header-cart .cart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    position: relative;
}

/* Custom cart icon SVG styling */
.hlhn-cart-icon {
    width: 24px;
    height: 24px;
    color: #000;
    display: block;
}

/* Ensure cart icon container is visible */
.ast-site-header-cart .ast-cart-menu-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide cart total if displayed */
.ast-woo-header-cart-total,
.ast-woo-header-cart-total-only {
    display: none !important;
}

/* Style cart count badge */
.ast-site-header-cart .count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff0000;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
    z-index: 10;
}

.ast-site-header-cart .ast-count-text {
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

/* Cart icon hover effect */
.ast-site-header-cart .cart-container:hover .hlhn-cart-icon {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* About Us section body text - 35 characters per line */
.hlhn-about-us-body {
    max-width: 35em; /* Approximately 35 full-width characters */
    margin-left: auto;
    margin-right: auto;
}

.hlhn-about-us-body p {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hlhn-about-us-body {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* ============================================================================
 * Issue #21: Single Product Page - Font Unification
 * ============================================================================
 */

/* Product Title - Inter Font */
.single-product .product_title,
.single-product .entry-title,
.single-product h1.product_title {
    font-family: 'Inter', sans-serif !important;
}

/* Product Description - Inter Font */
.single-product .woocommerce-product-details__short-description,
.single-product .summary p,
.single-product .woocommerce-product-details__short-description p {
    font-family: 'Inter', sans-serif !important;
}

/* Size Chart Table - JetBrains Mono */
.single-product .woocommerce-product-attributes table,
.single-product .woocommerce-product-attributes table td,
.single-product .woocommerce-product-attributes table th {
    font-family: 'JetBrains Mono', monospace !important;
}

/* Button Text - Inter Font (explicit) */
.single-product .single_add_to_cart_button,
.single-product button.button.alt {
    font-family: 'Inter', sans-serif !important;
}

/* ============================================================================
 * Issue #21: Single Product Page - Button Style Unification
 * ============================================================================
 */

/* Review Form Submit Button */
.single-product #review_form_wrapper .form-submit input[type="submit"],
.single-product .comment-form .submit input[type="submit"],
.single-product #respond .form-submit input[type="submit"] {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    transition: all 0.3s ease !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 12px 48px !important;
    font-size: 14px !important;
    border-radius: 0 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
}

.single-product #review_form_wrapper .form-submit input[type="submit"]:hover,
.single-product .comment-form .submit input[type="submit"]:hover,
.single-product #respond .form-submit input[type="submit"]:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* Related Products / Upsells Add to Cart Button */
.single-product .related.products .button,
.single-product .upsells.products .button,
.single-product .related.products a.button,
.single-product .upsells.products a.button {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    transition: all 0.3s ease !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 12px 48px !important;
    font-size: 14px !important;
    border-radius: 0 !important;
    font-family: 'Inter', sans-serif !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.single-product .related.products .button:hover,
.single-product .upsells.products .button:hover,
.single-product .related.products a.button:hover,
.single-product .upsells.products a.button:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* Variation Add to Cart Button (explicit) */
.single-product .woocommerce-variation-add-to-cart .button {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    transition: all 0.3s ease !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 12px 48px !important;
    font-size: 14px !important;
    border-radius: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

.single-product .woocommerce-variation-add-to-cart .button:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* ============================================================================
 * Tab Focus Outline Removal - Remove vertical bars on tab links after click
 * ============================================================================
 */
/* Remove outline from WooCommerce product tabs when focused */
.single-product .woocommerce-tabs .wc-tabs li a:focus,
.single-product .woocommerce-tabs .wc-tabs li a:focus-visible,
.single-product .woocommerce-tabs .wc-tabs li a:active {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
}

/* ============================================================================
 * Issue #21: Single Product Page - Layout and Spacing
 * ============================================================================
 */

/* 1. Text Wrapping - 35 characters per line */
.single-product .woocommerce-product-details__short-description,
.single-product .summary p,
.single-product .woocommerce-product-details__short-description p {
    max-width: 35em !important; /* Approximately 35 full-width characters */
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Description tab content - 35 characters per line */
.single-product #tab-description,
.single-product #tab-description p,
.single-product .woocommerce-Tabs-panel--description,
.single-product .woocommerce-Tabs-panel--description p {
    max-width: 35em !important; /* Approximately 35 full-width characters */
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Description tab typography - Same as summary section */
.single-product #tab-description p,
.single-product .woocommerce-Tabs-panel--description p {
    font-size: 16px !important;
    line-height: 1.8 !important;
    letter-spacing: 0.01em !important; /* +1% */
    margin-bottom: calc(1.8em * 1.5) !important; /* line-height 1.8 * 1.5 = 2.7em */
}

.single-product #tab-description p:last-child,
.single-product .woocommerce-Tabs-panel--description p:last-child {
    margin-bottom: 0 !important;
}

/* 2. Heading to Body Font Size Ratio (1.96x - 2.5x) */
/* Product Title: 32px, Description: 16px = 2.0x ratio */
.single-product .product_title,
.single-product .entry-title,
.single-product h1.product_title {
    font-size: 32px !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
}

.single-product .woocommerce-product-details__short-description,
.single-product .summary p,
.single-product .woocommerce-product-details__short-description p {
    font-size: 16px !important;
    line-height: 1.8 !important;
}

/* 3. Kerning - Letter Spacing (-3% to +3%) */
.single-product .product_title,
.single-product .entry-title,
.single-product h1.product_title {
    letter-spacing: -0.01em !important; /* -1% */
}

.single-product .woocommerce-product-details__short-description,
.single-product .summary p,
.single-product .woocommerce-product-details__short-description p {
    letter-spacing: 0.01em !important; /* +1% */
}

/* 4. Paragraph Spacing - 1.5x line height */
.single-product .woocommerce-product-details__short-description p,
.single-product .summary p,
.single-product .woocommerce-product-details__short-description p {
    margin-bottom: calc(1.8em * 1.5) !important; /* line-height 1.8 * 1.5 = 2.7em */
}

.single-product .woocommerce-product-details__short-description p:last-child,
.single-product .summary p:last-child,
.single-product .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0 !important;
}

/* 5. Adjust spacing between Description, Price, and Add to Cart */
/* Reduce margin after description */
.single-product .woocommerce-product-details__short-description,
.single-product .summary .woocommerce-product-details__short-description {
    margin-bottom: 1.5rem !important;
}

/* Reduce margin around price */
.single-product .summary .price,
.single-product .woocommerce-product-price {
    margin-top: 1rem !important;
    margin-bottom: 1.5rem !important;
}

/* Reduce margin before add to cart form */
.single-product .summary form.cart,
.single-product .summary .woocommerce-variation-add-to-cart,
.single-product .summary .cart {
    margin-top: 1rem !important;
}

/* ============================================================================
 * Size Chart Tab - Button Style Unification
 * ============================================================================
 */
/* Size tab button styling - minimal button design */
.size-tab {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.size-tab.active {
    background: #000 !important;
    color: #fff !important;
    border-bottom-color: #000 !important;
}

.size-tab:not(.active) {
    background: transparent !important;
    border-bottom-color: transparent !important;
    color: #9ca3af !important; /* text-gray-400 */
}

.size-tab:hover:not(.active) {
    background: #000 !important;
    color: #fff !important;
    border-bottom-color: #000 !important;
}

/* Product detail page specific overrides */
.single-product .size-tab {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
}

.single-product .size-tab.active {
    background: #000 !important;
    color: #fff !important;
}

/* ============================================================================
 * Size Chart Tab - Spacing between Size Chart Note and Item Description
 * ============================================================================
 */
/* Add margin below size chart note to create space before Item Description */
.single-product #product-size-chart-container .size-table-content {
    margin-bottom: 1.5rem !important;
}

/* Ensure size chart note has bottom margin */
.single-product #product-size-chart-container .size-table-content .text-xs.text-gray-500 {
    margin-bottom: 1.5rem !important;
}

/* Item Description - Text indent for body lines */
#product-care-instructions-content > div {
    text-indent: 1em;
}

/* ============================================================================
 * Issue #25: Hide coupon form in cart totals when no available coupons
 * ============================================================================
 */
/* Hide all coupon forms in cart totals section by default */
.cart_totals .coupon,
.cart_totals form.coupon,
.cart_totals .woocommerce-cart-form .coupon,
.cart_totals .checkout_coupon,
.cart_totals .woocommerce-cart-form .checkout_coupon,
.cart_totals > .coupon,
.cart_totals > form.coupon {
    display: none !important;
}

/* Show coupon form only when available coupons exist (controlled by PHP) */
.cart_totals .coupon.has-available-coupons,
.cart_totals form.coupon.has-available-coupons {
    display: block !important;
}

/* Hide coupon form added by Astra theme via hooks */
.cart_totals .woocommerce-cart-form .coupon:not(.has-available-coupons),
.cart_totals .checkout_coupon:not(.has-available-coupons) {
    display: none !important;
}

/* ============================================================================
 * Issue #25: Hide WooCommerce Blocks coupon block when no available coupons
 * ============================================================================
 */
/* Hide WooCommerce Blocks coupon block by default */
.wc-block-components-totals-coupon {
    display: none !important;
}

/* Show coupon block only when available coupons exist (controlled by JS) */
.wc-block-components-totals-coupon.has-available-coupons {
    display: block !important;
}

/* ============================================================================
 * Issue #26: Cart page button styles (minimal-button style)
 * ============================================================================
 */
/* Coupon apply button */
.wc-block-components-totals-coupon__button {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    transition: all 0.3s ease !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
    border-radius: 0 !important;
}

.wc-block-components-totals-coupon__button:hover {
    background: #000 !important;
    color: #fff !important;
}

/* Proceed to checkout button */
.wc-block-cart__submit-button {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    transition: all 0.3s ease !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
    border-radius: 0 !important;
}

.wc-block-cart__submit-button:hover {
    background: #000 !important;
    color: #fff !important;
}

/* ============================================================================
 * Issue #27: Checkout page button styles (minimal-button style)
 * ============================================================================
 */
/* Place order button */
.wc-block-components-checkout-place-order-button {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    transition: all 0.3s ease !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
    border-radius: 0 !important;
}

.wc-block-components-checkout-place-order-button:hover {
    background: #000 !important;
    color: #fff !important;
}

/* Hide shipping options section (only one option: free shipping, already shown in order summary) */
.wc-block-checkout__shipping-option,
.wc-block-components-shipping-rates-control {
    display: none !important;
}

/* Hide country/region field (no international shipping) */
.wc-block-components-country-input,
#shipping-country,
#billing-country {
    display: none !important;
}

/* Hide short description in order summary */
.wc-block-components-product-metadata,
.wc-block-components-product-details {
    display: none !important;
}

/* ============================================================================
 * Issue #28: Order Complete Page - Table Styling
 * ============================================================================
 */
/* Hide order overview section (duplicate info with order details table) */
.woocommerce-order-received .woocommerce-order-overview,
.woocommerce-order-received ul.woocommerce-order-overview,
.woocommerce-order-received .order-overview {
    display: none !important;
}

/* Order complete page table - Font unification */
.woocommerce-order-received .woocommerce-table,
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details,
.woocommerce-order-received table {
    font-family: 'Inter', sans-serif !important;
    border-collapse: collapse !important;
}

/* Table headers */
.woocommerce-order-received .woocommerce-table th,
.woocommerce-order-received table th {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    border: 1px solid #e0e0e0 !important;
    padding: 12px 16px !important;
    background: transparent !important;
}

/* Table cells */
.woocommerce-order-received .woocommerce-table td,
.woocommerce-order-received table td {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    border: 1px solid #e0e0e0 !important;
    padding: 12px 16px !important;
}

/* Order details table - thin borders */
.woocommerce-order-received .woocommerce-table--order-details,
.woocommerce-order-received .order_details {
    border: 1px solid #e0e0e0 !important;
}

/* Order totals (tfoot) */
.woocommerce-order-received .woocommerce-table tfoot th,
.woocommerce-order-received .woocommerce-table tfoot td {
    border: 1px solid #e0e0e0 !important;
}

/* Address sections */
.woocommerce-order-received .woocommerce-customer-details address {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    line-height: 1.6 !important;
}

/* Section headings */
.woocommerce-order-received .woocommerce-column__title,
.woocommerce-order-received h2 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
}

/* ============================================================================
 * Issue #30: Shortcode Cart Button Styles (minimal-button style)
 * ============================================================================
 */
/* Update cart button */
.woocommerce-cart-form button[name="update_cart"],
.woocommerce-cart-form .button[name="update_cart"] {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    transition: all 0.3s ease !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    border-radius: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

.woocommerce-cart-form button[name="update_cart"]:hover,
.woocommerce-cart-form .button[name="update_cart"]:hover {
    background: #000 !important;
    color: #fff !important;
}

.woocommerce-cart-form button[name="update_cart"]:disabled,
.woocommerce-cart-form .button[name="update_cart"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Proceed to checkout button */
.wc-proceed-to-checkout .checkout-button,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.cart_totals .checkout-button {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    transition: all 0.3s ease !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    border-radius: 0 !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
    display: block !important;
}

.wc-proceed-to-checkout .checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.cart_totals .checkout-button:hover {
    background: #000 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Concept Section - Heading line spacing */
.margiela-dark h2 span {
    display: inline-block;
    margin-top: 0.1em;
}

/* ============================================================================
 * Hero Carousel
 * ============================================================================
 */
.hero-carousel-container {
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    /* Height will be set by JavaScript based on first image */
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 0;
}

/* First slide is visible initially to set initial height (before JS initialization) */
.hero-carousel-slide:first-child {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* When initialized by JS, ALL slides become absolute and hidden by default */
.hero-carousel.initialized .hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Fill the container height */
    opacity: 0;
    visibility: hidden;
    z-index: 0;
}

/* First child also becomes hidden when initialized */
.hero-carousel.initialized .hero-carousel-slide:first-child {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

/* Only the active slide is visible (higher specificity to override above rules) */
.hero-carousel.initialized .hero-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Images fill the slide container and crop to fit */
.hero-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* When initialized, images must fill the fixed-height container */
.hero-carousel.initialized .hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
}

.hero-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #333;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-carousel-dot:hover {
    background: #666;
}

.hero-carousel-dot.active {
    background: #333;
}

/* ============================================================================
 * Issue #39: Mobile Product Options Dropdown Fix
 * ============================================================================
 */
/* Product options container - ensure proper stacking context */
.hlhn-product-options {
    position: relative;
    z-index: 100;
}

/* Select element base styles */
.hlhn-product-options select {
    -webkit-appearance: none;
    -moz-appearance: none;
    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='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px !important;
}

/* Mobile-specific fixes for select dropdowns (without affecting Flexslider gallery) */
@media (max-width: 768px) {
    /* Reset transforms only on non-gallery elements */
    .single-product .summary,
    .single-product .summary > * {
        transform: none !important;
        -webkit-transform: none !important;
    }

    /* Fix select dropdown rendering on mobile */
    .hlhn-product-options select {
        font-size: 16px !important; /* Prevent iOS auto-zoom */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-color: #fff !important;
        touch-action: manipulation;
        position: relative;
        z-index: 9999;
    }

    /* Ensure select options are readable on mobile */
    .hlhn-product-options select option {
        font-size: 16px !important;
        padding: 12px !important;
    }

    /* Override any inherited transforms for product options */
    .hlhn-product-options {
        -webkit-transform: none !important;
        transform: none !important;
        isolation: isolate; /* Create isolated stacking context */
        position: relative;
        z-index: 9999;
    }

    /* Fix for WebKit browsers - prevent transform inheritance issues */
    .hlhn-option-group {
        transform: none !important;
        -webkit-transform: none !important;
        position: relative;
    }

    /* Increase touch target size */
    .hlhn-option-group select {
        min-height: 48px;
        padding: 12px !important;
    }

    /* Label styling for mobile */
    .hlhn-option-group label {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }

    /* Flexslider - ensure touch/swipe works on mobile */
    .single-product .woocommerce-product-gallery {
        touch-action: pan-y pinch-zoom;
    }

    .single-product .flex-control-thumbs {
        touch-action: manipulation;
    }

    .single-product .flex-control-thumbs li {
        cursor: pointer;
    }
}

/* ============================================================================
 * WordPress Block Button - Minimal Button Style Override
 * ============================================================================
 */
/* Override WordPress Gutenberg block buttons to match minimal-button style */
.wp-block-button__link,
.wp-block-button .wp-block-button__link,
.single-product .wp-block-button__link,
.woocommerce .wp-block-button__link,
a.wp-block-button__link {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    transition: all 0.3s ease !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 12px 48px !important;
    font-size: 14px !important;
    border-radius: 0 !important;
    font-family: 'Inter', sans-serif !important;
    text-decoration: none !important;
}

.wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:hover,
.single-product .wp-block-button__link:hover,
.woocommerce .wp-block-button__link:hover,
a.wp-block-button__link:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* Remove fill style from Gutenberg buttons */
.wp-block-button.is-style-fill .wp-block-button__link {
    background: transparent !important;
    color: #000 !important;
}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background: #000 !important;
    color: #fff !important;
}

/* ============================================================================
 * Issue #40: Mobile Product Tabs - Accordion Style
 * ============================================================================
 */
@media (max-width: 768px) {
    /* Hide default tab navigation on mobile */
    .single-product .woocommerce-tabs ul.wc-tabs {
        display: none !important;
    }

    /* Accordion container */
    .single-product .woocommerce-tabs {
        border: none;
    }

    /* Accordion item wrapper (created by JS) */
    .single-product .woocommerce-tabs .accordion-item {
        border-bottom: 1px solid #e0e0e0;
    }

    .single-product .woocommerce-tabs .accordion-item:first-child {
        border-top: 1px solid #e0e0e0;
    }

    /* Accordion header button */
    .single-product .woocommerce-tabs .accordion-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 16px 0;
        background: transparent;
        border: none;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 500;
        text-align: left;
        cursor: pointer;
        color: #000;
    }

    .single-product .woocommerce-tabs .accordion-header:hover {
        opacity: 0.7;
    }

    /* Accordion arrow icon */
    .single-product .woocommerce-tabs .accordion-header::after {
        content: '';
        width: 10px;
        height: 10px;
        border-right: 2px solid #000;
        border-bottom: 2px solid #000;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        flex-shrink: 0;
        margin-left: 10px;
    }

    .single-product .woocommerce-tabs .accordion-header.active::after {
        transform: rotate(-135deg);
    }

    /* Accordion content panel */
    .single-product .woocommerce-tabs .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
    }

    .single-product .woocommerce-tabs .accordion-content.active {
        max-height: 2000px; /* Large enough to accommodate content */
        padding-bottom: 20px;
    }

    /* Panel content styling */
    .single-product .woocommerce-tabs .woocommerce-Tabs-panel {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide panels by default (JS will manage visibility) */
    .single-product .woocommerce-tabs.accordion-mode .woocommerce-Tabs-panel {
        display: block !important;
    }
}

