/*
Theme Name: EPIC FULL FILLS
Theme URI: https://epicfullfills.com
Author: Antigravity
Author URI: https://epicfullfills.com
Description: Custom WordPress WooCommerce theme for EPIC FULL FILLS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: epic-full-fills
Tags: e-commerce, custom-menu, two-columns, translation-ready
*/

/* Mobile-First Utility Variables & Overrides */
:root {
    --mob-spacing-sm: 8px;
    --mob-spacing-md: 16px;
    --mob-spacing-lg: 24px;
    --mob-font-body: 15px;
    --mob-font-h1: 24px;
    --mob-font-h2: 20px;
    --mob-line-height: 1.5;
}

@media (max-width: 767px) {
    /* Global Resets for Mobile */
    body {
        overflow-x: hidden;
    }

    /* Prevent iOS Zoom on Inputs & Ensure Tapability */
    .woocommerce form .form-row input.input-text, 
    .woocommerce form .form-row select,
    .woocommerce div.product form.cart .qty,
    input[type="text"], input[type="email"], input[type="number"], input[type="tel"], textarea {
        font-size: 16px !important;
    }

    /* Touch Target Optimization for common UI elements */
    .menu-toggle, 
    .header-cart-link, 
    .search-toggle,
    .custom-qty-minus,
    .custom-qty-plus {
        min-width: 48px !important;
        min-height: 48px !important;
    }
}

/* Native WooCommerce Product Form Styling */
.woocommerce div.product form.cart {
    margin-bottom: 0 !important;
}

.woocommerce div.product table.variations {
    width: 100% !important;
    margin-bottom: 12px !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

.woocommerce div.product table.variations td.label {
    padding: 0 0 4px 0 !important;
    vertical-align: middle !important;
    width: auto !important;
    color: #a3a3a3 !important; /* text-neutral-400 */
    font-size: 9px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}

.woocommerce div.product table.variations td.value {
    padding: 0 !important;
    position: relative;
}

.woocommerce div.product table.variations select {
    width: 100% !important;
    padding: 10px 14px !important;
    background-color: #fff !important; 
    border: 1px solid #d4d4d4 !important; 
    border-radius: 8px !important;
    color: #000 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    height: 44px !important;
    outline: none !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px top 50% !important;
    background-size: 10px auto !important;
    transition: all 0.2s ease !important;
}

.woocommerce div.product table.variations select:focus,
.woocommerce div.product table.variations select:hover {
    border-color: #000 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.woocommerce div.product a.reset_variations {
    display: none !important;
}

.woocommerce div.product form.cart .button {
    background-color: #000 !important;
    color: #fff !important;
}

.woocommerce div.product form.cart .button.disabled,
.woocommerce div.product form.cart .button:disabled {
    background-color: #a3a3a3 !important;
    color: #f5f5f5 !important;
    cursor: not-allowed !important;
}

/* Hide native number input arrows */
.woocommerce div.product form.cart input[type=number]::-webkit-outer-spin-button,
.woocommerce div.product form.cart input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.woocommerce div.product form.cart input[type=number] {
    -moz-appearance: textfield;
}

.woocommerce div.product .woocommerce-variation-add-to-cart {
    display: flex !important;
    gap: 8px !important;
    align-items: stretch !important;
    margin-top: 16px !important;
}

.woocommerce div.product .woocommerce-variation-add-to-cart .quantity {
    margin: 0 !important;
}

.woocommerce div.product .woocommerce-variation-add-to-cart input.qty,
.woocommerce div.product form.cart input.qty {
    width: 60px !important;
    height: 44px !important;
    padding: 0 !important;
    text-align: center !important;
    border: 1px solid #d4d4d4 !important;
    border-radius: 6px !important;
    background: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.woocommerce div.product .woocommerce-variation-add-to-cart button.single_add_to_cart_button,
.woocommerce div.product button.single_add_to_cart_button {
    flex-grow: 1 !important;
    height: 44px !important;
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.woocommerce div.product .woocommerce-variation-add-to-cart button.single_add_to_cart_button:hover,
.woocommerce div.product button.single_add_to_cart_button:hover {
    background-color: #171717 !important;
}

.woocommerce div.product .woocommerce-variation-add-to-cart button.single_add_to_cart_button.disabled,
.woocommerce div.product button.single_add_to_cart_button.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.woocommerce div.product .single_variation_wrap {
    margin-top: 8px !important;
}

.woocommerce div.product .woocommerce-variation-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin-bottom: 8px !important;
}

.woocommerce div.product .woocommerce-variation-availability {
    font-size: 11px !important;
    color: #000 !important;
    margin-bottom: 8px !important;
}

/* Native WooCommerce Reviews Styling */
#reviews {
    color: #171717; /* neutral-900 */
}
#reviews .noreviews {
    font-size: 0.875rem;
    color: #737373; /* neutral-500 */
    margin-bottom: 2rem;
}
#reviews ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}
#reviews ol.commentlist li.review {
    border-bottom: 1px solid #f5f5f5; /* neutral-100 */
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}
#reviews ol.commentlist li.review .comment_container {
    display: flex;
    gap: 1rem;
}
#reviews ol.commentlist li.review img.avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}
#reviews ol.commentlist li.review .comment-text {
    flex: 1;
}
#reviews ol.commentlist li.review p.meta {
    font-size: 0.75rem;
    color: #737373; /* neutral-500 */
    margin: 0 0 0.5rem 0;
}
#reviews ol.commentlist li.review p.meta strong.woocommerce-review__author {
    color: #171717;
    font-weight: 700;
}
#reviews ol.commentlist li.review .description p {
    font-size: 0.875rem;
    font-weight: 300;
    color: #525252; /* neutral-600 */
    margin: 0;
}
.star-rating {
    overflow: hidden;
    position: relative;
    height: 1.2em;
    line-height: 1.2em;
    font-size: 0.875rem;
    width: 5.4em;
    font-family: star;
    color: #000;
    margin-bottom: 0.5rem;
}
.star-rating::before {
    content: "\73\73\73\73\73";
    color: #e5e5e5;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}
.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}
.star-rating span::before {
    content: "\53\53\53\53\53";
    top: 0;
    position: absolute;
    left: 0;
}
#review_form_wrapper {
    background-color: #fafafa !important;
    padding: 1.5rem !important;
    border-radius: 6px !important;
    border: 1px solid #e5e5e5 !important;
}
#review_form_wrapper .comment-reply-title {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #171717 !important;
    display: block !important;
    margin-bottom: 1rem !important;
}
#review_form_wrapper .comment-form-rating {
    margin-bottom: 1rem !important;
}
#review_form_wrapper .comment-form-rating label,
#review_form_wrapper p.comment-form-comment label,
#review_form_wrapper p.comment-form-author label,
#review_form_wrapper p.comment-form-email label {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
    color: #171717 !important;
}
#review_form_wrapper p.comment-form-comment,
#review_form_wrapper p.comment-form-author,
#review_form_wrapper p.comment-form-email {
    margin-bottom: 1rem !important;
}
#review_form_wrapper textarea,
#review_form_wrapper input[type="text"],
#review_form_wrapper input[type="email"] {
    width: 100% !important;
    background-color: #fff !important;
    border: 1px solid #d4d4d4 !important;
    color: #171717 !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    box-shadow: none !important;
}
#review_form_wrapper textarea:focus,
#review_form_wrapper input[type="text"]:focus,
#review_form_wrapper input[type="email"]:focus {
    border-color: #000 !important;
}
#review_form_wrapper p.form-submit {
    margin: 0 !important;
}
#review_form_wrapper input#submit,
#review_form_wrapper .submit {
    width: 100% !important;
    background-color: #000 !important;
    color: #fff !important;
    padding: 1rem 1.5rem !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    box-shadow: none !important;
    display: block !important;
    text-align: center !important;
}
#review_form_wrapper input#submit:hover,
#review_form_wrapper .submit:hover {
    background-color: #171717 !important;
}
p.stars a {
    position: relative !important;
    display: inline-block !important;
    text-decoration: none !important;
    margin-right: 4px !important;
    width: 18px !important;
    height: 18px !important;
    overflow: hidden !important;
    color: transparent !important;
}
p.stars a::before {
    content: '★' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    font-size: 18px !important;
    color: #e5e5e5 !important;
    text-align: center !important;
}
p.stars:hover a::before,
p.stars.selected a.active::before,
p.stars.selected a:not(.active)::before {
    color: #e5e5e5 !important;
}
p.stars a:hover ~ a::before {
    color: #e5e5e5 !important;
}
p.stars:hover a::before {
    color: #000 !important;
}
p.stars.selected a.active::before {
    color: #000 !important;
}
p.stars.selected a.active ~ a::before {
    color: #e5e5e5 !important;
}
p.stars.selected a:not(.active)::before {
    color: #000 !important;
}

/* Native WooCommerce General Layout Fixes */
.woocommerce div.product {
    max-width: 80rem; /* max-w-7xl */
    margin: 0 auto;
    padding: 2rem 1rem;
}
.woocommerce div.product .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin-bottom: 2rem;
}
.woocommerce div.product .product_title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.woocommerce div.product .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
}
.woocommerce div.product .woocommerce-tabs {
    margin-top: 3rem;
    border-top: 1px solid #e5e5e5;
    padding-top: 2rem;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0 0 0.5rem 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a3a3a3;
    transition: color 0.2s;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
}

/* ---------------------------------------------------- */
/* PREMIUM REVIEWS OVERRIDE (CusRev & Native) */
/* ---------------------------------------------------- */

.custom-reviews-wrapper #reviews h2 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em;
    color: #111 !important;
    margin-bottom: 2rem !important;
    text-transform: capitalize;
}

.custom-reviews-wrapper ol.commentlist {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.custom-reviews-wrapper ol.commentlist li.review {
    padding: 2rem 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.custom-reviews-wrapper ol.commentlist li.review:last-child {
    border-bottom: none !important;
}

.custom-reviews-wrapper .comment_container {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.custom-reviews-wrapper .comment_container img.avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: none !important;
    float: none !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f9f9f9;
}

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

.custom-reviews-wrapper .star-rating {
    float: none !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.85em;
    color: #000 !important;
}

.custom-reviews-wrapper p.meta {
    margin-bottom: 0.5rem !important;
    font-size: 0.85rem !important;
    color: #666 !important;
}

.custom-reviews-wrapper p.meta strong {
    color: #111 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

.custom-reviews-wrapper p.meta time {
    color: #999;
}

.custom-reviews-wrapper .description {
    font-size: 0.95rem !important;
    color: #444 !important;
    line-height: 1.6 !important;
}

/* Review Form Styling (Converted to Modal) */
.custom-reviews-wrapper #review_form_wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.6) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 1.5rem !important;
    backdrop-filter: blur(4px) !important;
    
    /* Hidden by default, toggled via JS */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-reviews-wrapper #review_form_wrapper.modal-open {
    opacity: 1;
    pointer-events: auto;
}

/* The actual form container inside the modal */
.custom-reviews-wrapper #review_form_wrapper #respond {
    background: #fff !important;
    padding: 2.5rem !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-w: 600px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    position: relative !important;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.custom-reviews-wrapper #review_form_wrapper.modal-open #respond {
    transform: translateY(0);
}

/* Modal Close Button (Injected via JS) */
.review-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
    transition: background 0.2s;
    z-index: 10;
}
.review-modal-close:hover {
    background: #e5e5e5;
}

.custom-reviews-wrapper .comment-reply-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #111 !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

.custom-reviews-wrapper .comment-form-rating label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #666 !important;
    margin-bottom: 0.5rem !important;
}

.custom-reviews-wrapper .stars {
    margin-bottom: 1.5rem !important;
}

.custom-reviews-wrapper .stars a {
    color: #000 !important;
}

.custom-reviews-wrapper p.comment-form-comment label,
.custom-reviews-wrapper p.comment-form-author label,
.custom-reviews-wrapper p.comment-form-email label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #666 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

.custom-reviews-wrapper input[type="text"],
.custom-reviews-wrapper input[type="email"],
.custom-reviews-wrapper textarea {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
    transition: all 0.2s ease !important;
}

.custom-reviews-wrapper input[type="text"]:focus,
.custom-reviews-wrapper input[type="email"]:focus,
.custom-reviews-wrapper textarea:focus {
    border-color: #000 !important;
    box-shadow: 0 0 0 1px #000 !important;
    outline: none !important;
}

.custom-reviews-wrapper .form-submit {
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}

.custom-reviews-wrapper .submit {
    background: #000 !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    padding: 1rem 2rem !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    width: 100% !important;
}

.custom-reviews-wrapper .submit:hover {
    background: #333 !important;
}
