/* ==========================================================================
   ECOM ESSENTIALS - SINGLE PRODUCT PAGE
   High-specificity selectors to override active theme (OceanWP, Astra, etc.)
   ========================================================================== */

/* --- RESET & CONTAINER --- */
body .ee-spp-container.woocommerce,
body .ee-spp-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: #333 !important;
    background: #fff !important;
    box-sizing: border-box !important;
}
body .ee-spp-container.woocommerce *,
body .ee-spp-container * {
    box-sizing: border-box !important;
}

/* --- LAYOUT (2-column grid) --- */
body .ee-spp-container .ee-spp-product-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 40px 0 20px !important;
    float: none !important;
    width: 100% !important;
}
@media (min-width: 992px) {
    body .ee-spp-container .ee-spp-product-layout {
        grid-template-columns: 1fr 1fr !important;
        gap: 50px !important;
        padding: 50px 0 30px !important;
        align-items: start !important;
    }
}


/* ==========================================================================
   GALLERY
   ========================================================================== */
body .ee-spp-container .ee-spp-gallery-column {
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
}

body .ee-spp-container .ee-spp-gallery {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Main image area */
body .ee-spp-container .ee-spp-gallery-main {
    width: 100% !important;
    background: #f8f8f8 !important;
    border: 1px solid #eee !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .ee-spp-container .ee-spp-slider {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    width: 100% !important;
}
body .ee-spp-container .ee-spp-slider::-webkit-scrollbar { display: none !important; }

body .ee-spp-container .ee-spp-slide {
    width: 100% !important;
    min-width: 100% !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}
body .ee-spp-container .ee-spp-slide img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    max-height: 500px !important;
}

/* Thumbnail row (below main image) */
body .ee-spp-container .ee-spp-thumbnails-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

body .ee-spp-container .ee-spp-thumb-arrow {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    color: #666 !important;
    cursor: pointer !important;
    padding: 0 !important;
}
body .ee-spp-container .ee-spp-thumb-arrow:hover {
    color: #111 !important;
    border-color: #999 !important;
}

body .ee-spp-container .ee-spp-thumbnails {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    flex-grow: 1 !important;
}
body .ee-spp-container .ee-spp-thumbnails::-webkit-scrollbar { display: none !important; }

body .ee-spp-container .ee-spp-thumb-btn {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    flex-shrink: 0 !important;
    border: 1px solid #eee !important;
    border-radius: 0 !important;
    padding: 4px !important;
    cursor: pointer !important;
    background: #f8f8f8 !important;
    overflow: hidden !important;
    opacity: 0.6 !important;
    transition: opacity 0.2s ease, border-color 0.2s ease !important;
}
body .ee-spp-container .ee-spp-thumb-btn img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}
body .ee-spp-container .ee-spp-thumb-btn:hover {
    opacity: 1 !important;
}
body .ee-spp-container .ee-spp-thumb-btn.is-active {
    opacity: 1 !important;
    border-color: #333 !important;
}


/* ==========================================================================
   PRODUCT INFO COLUMN
   ========================================================================== */
body .ee-spp-container .ee-spp-info-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}

/* Title */
body .ee-spp-container .ee-spp-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Rating Row */
body .ee-spp-container .ee-spp-rating-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}
body .ee-spp-container .ee-spp-rating-row .star-rating {
    font-size: 13px !important;
    color: #f5c518 !important;
}
body .ee-spp-container .ee-spp-review-link {
    font-size: 13px !important;
    color: #888 !important;
    text-decoration: none !important;
}
body .ee-spp-container .ee-spp-review-link:hover {
    color: #333 !important;
}

/* Price */
body .ee-spp-container .ee-spp-price-block {
    margin-bottom: 15px !important;
}
body .ee-spp-container .ee-spp-price-block .ee-spp-price {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #e63946 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
body .ee-spp-container .ee-spp-price-block .ee-spp-price del {
    color: #999 !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    margin-right: 8px !important;
}
body .ee-spp-container .ee-spp-price-block .ee-spp-price ins {
    text-decoration: none !important;
    background: none !important;
    padding: 0 !important;
}

/* Separator */
body .ee-spp-container hr.ee-spp-hr {
    border: none !important;
    border-top: 1px solid #eee !important;
    margin: 15px 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Short Description */
body .ee-spp-container .ee-spp-short-desc {
    font-size: 13px !important;
    line-height: 1.7 !important;
    color: #666 !important;
    margin-bottom: 15px !important;
}
body .ee-spp-container .ee-spp-short-desc p {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    color: #666 !important;
}
body .ee-spp-container .ee-spp-short-desc ul {
    padding-left: 18px !important;
    margin: 0 0 10px 0 !important;
}
body .ee-spp-container .ee-spp-short-desc li {
    font-size: 13px !important;
    line-height: 1.7 !important;
    color: #666 !important;
}


/* ==========================================================================
   VARIATIONS / SWATCHES COMPATIBILITY
   ========================================================================== */
body .ee-spp-container .ee-spp-add-to-cart-wrapper {
    margin-bottom: 15px !important;
}

/* The WooCommerce form.cart inside our wrapper */
body .ee-spp-container .ee-spp-add-to-cart-wrapper form.cart,
body .ee-spp-container .ee-spp-add-to-cart-wrapper .variations_form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* Variations table — make it clean */
body .ee-spp-container table.variations {
    width: 100% !important;
    border: none !important;
    border-collapse: collapse !important;
    background: transparent !important;
    margin-bottom: 10px !important;
}
body .ee-spp-container table.variations tr {
    border: none !important;
    background: transparent !important;
}
body .ee-spp-container table.variations th,
body .ee-spp-container table.variations td {
    border: none !important;
    padding: 8px 0 !important;
    background: transparent !important;
    vertical-align: top !important;
    text-align: left !important;
}
body .ee-spp-container table.variations th.label {
    width: 80px !important;
    padding-right: 15px !important;
}
body .ee-spp-container table.variations th.label label {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #333 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

/* Make swatches render properly inside our container */
body .ee-spp-container .ecom-essentials-swatches-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 5px !important;
}
body .ee-spp-container .ecom-essentials-swatch {
    cursor: pointer !important;
}
body .ee-spp-container .ecom-essentials-swatch-label {
    padding: 6px 14px !important;
    min-width: 36px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Quantity & Add to Cart button row */
body .ee-spp-container .ee-spp-add-to-cart-wrapper .single_variation_wrap .woocommerce-variation-add-to-cart,
body .ee-spp-container .ee-spp-add-to-cart-wrapper form.cart > .quantity + .single_add_to_cart_button {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

/* Quantity input */
body .ee-spp-container div.quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 2px solid #333 !important;
    border-radius: 0 !important;
    height: 44px !important;
    width: auto !important;
    min-width: 50px !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
}
body .ee-spp-container div.quantity input.qty {
    width: 46px !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #333 !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
body .ee-spp-container div.quantity input.qty::-webkit-inner-spin-button,
body .ee-spp-container div.quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
/* Hide theme +/- buttons */
body .ee-spp-container div.quantity .minus,
body .ee-spp-container div.quantity .plus,
body .ee-spp-container div.quantity button {
    display: none !important;
}

/* Add to Cart button */
body .ee-spp-container button.single_add_to_cart_button,
body .ee-spp-container .ee-spp-btn {
    height: 44px !important;
    background: #333 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 30px !important;
    margin: 0 !important;
    transition: background 0.2s ease !important;
    box-shadow: none !important;
    line-height: 1 !important;
}
body .ee-spp-container button.single_add_to_cart_button:hover,
body .ee-spp-container .ee-spp-btn:hover {
    background: #555 !important;
}

/* Reset variation link */
body .ee-spp-container .reset_variations {
    font-size: 13px !important;
    color: #e63946 !important;
}

/* Single variation description/price */
body .ee-spp-container .woocommerce-variation-price {
    margin-bottom: 10px !important;
}
body .ee-spp-container .woocommerce-variation-price .price {
    color: #e63946 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}


/* ==========================================================================
   ACTION LINKS (Wishlist / Compare)
   ========================================================================== */
body .ee-spp-container .ee-spp-product-actions {
    display: flex !important;
    gap: 20px !important;
    margin: 10px 0 !important;
    padding: 0 !important;
}
body .ee-spp-container .ee-spp-action-link {
    font-size: 13px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}
body .ee-spp-container .ee-spp-action-link:hover {
    color: #e63946 !important;
}


/* ==========================================================================
   META (SKU, Categories, Tags, Share)
   ========================================================================== */
body .ee-spp-container .ee-spp-meta {
    font-size: 13px !important;
    color: #666 !important;
    margin-top: 10px !important;
    line-height: 1.8 !important;
}
body .ee-spp-container .ee-spp-meta .ee-spp-meta-row {
    display: block !important;
    margin-bottom: 4px !important;
}
body .ee-spp-container .ee-spp-meta .ee-spp-meta-row strong {
    color: #333 !important;
    font-weight: 600 !important;
}
body .ee-spp-container .ee-spp-meta a {
    color: #666 !important;
    text-decoration: none !important;
}
body .ee-spp-container .ee-spp-meta a:hover {
    color: #e63946 !important;
}

body .ee-spp-container .ee-spp-share {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 10px !important;
    font-size: 13px !important;
}
body .ee-spp-container .ee-spp-share strong {
    color: #333 !important;
    font-weight: 600 !important;
}
body .ee-spp-container .ee-spp-share a {
    color: #888 !important;
    display: inline-flex !important;
}
body .ee-spp-container .ee-spp-share a:hover {
    color: #333 !important;
}


/* ==========================================================================
   TABS (Horizontal, below product)
   ========================================================================== */
body .ee-spp-container .ee-spp-tabs-section {
    padding: 30px 0 0 !important;
    margin: 0 !important;
    border-top: 1px solid #eee !important;
}

body .ee-spp-container .ee-spp-tabs-wrapper {
    width: 100% !important;
}

body .ee-spp-container .ee-spp-tabs-nav {
    display: flex !important;
    gap: 30px !important;
    border-bottom: 1px solid #ddd !important;
    margin-bottom: 25px !important;
    padding: 0 !important;
    justify-content: center !important;
}

body .ee-spp-container .ee-spp-tab-btn {
    background: none !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #999 !important;
    padding: 10px 5px 15px !important;
    margin-bottom: -1px !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
    text-transform: none !important;
}
body .ee-spp-container .ee-spp-tab-btn.is-active {
    color: #e63946 !important;
    border-bottom-color: #e63946 !important;
}
body .ee-spp-container .ee-spp-tab-btn:hover {
    color: #333 !important;
}

body .ee-spp-container .ee-spp-tab-panel {
    display: none !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    color: #666 !important;
    max-width: 100% !important;
    padding: 0 0 30px !important;
}
body .ee-spp-container .ee-spp-tab-panel.is-active {
    display: block !important;
}

/* Tab panel inner content overrides */
body .ee-spp-container .ee-spp-tab-panel h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 15px !important;
}
body .ee-spp-container .ee-spp-tab-panel p {
    font-size: 13px !important;
    line-height: 1.8 !important;
    color: #666 !important;
    margin-bottom: 12px !important;
}

/* Additional Information table */
body .ee-spp-container .ee-spp-tab-panel .shop_attributes {
    width: 100% !important;
    border: none !important;
}
body .ee-spp-container .ee-spp-tab-panel .shop_attributes th,
body .ee-spp-container .ee-spp-tab-panel .shop_attributes td {
    padding: 10px 15px !important;
    font-size: 13px !important;
    border-bottom: 1px solid #eee !important;
    border-right: none !important;
    border-left: none !important;
    border-top: none !important;
    background: transparent !important;
}
body .ee-spp-container .ee-spp-tab-panel .shop_attributes th {
    font-weight: 700 !important;
    color: #333 !important;
    text-transform: uppercase !important;
    width: 30% !important;
}
body .ee-spp-container .ee-spp-tab-panel .shop_attributes td {
    color: #666 !important;
}
body .ee-spp-container .ee-spp-tab-panel .shop_attributes td p {
    margin: 0 !important;
}

/* Reviews tab */
body .ee-spp-container .ee-spp-tab-panel #comments {
    margin: 0 !important;
}
body .ee-spp-container .ee-spp-tab-panel .comment-form-rating label {
    font-weight: 600 !important;
}


/* ==========================================================================
   STICKY ADD TO CART BAR
   ========================================================================== */
body .ee-spp-sticky-cart {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    border-top: 1px solid #ddd !important;
    z-index: 9999 !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08) !important;
    padding: 0 !important;
}
body .ee-spp-sticky-cart.is-visible {
    transform: translateY(0) !important;
}
body .ee-spp-sticky-cart .ee-spp-sticky-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}
body .ee-spp-sticky-cart .ee-spp-sticky-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
body .ee-spp-sticky-cart .ee-spp-sticky-info img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    border: 1px solid #eee !important;
}
body .ee-spp-sticky-cart .ee-spp-sticky-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 !important;
}
body .ee-spp-sticky-cart .ee-spp-sticky-price {
    font-size: 14px !important;
    color: #e63946 !important;
    font-weight: 700 !important;
}


/* ==========================================================================
   SIZE GUIDE MODAL
   ========================================================================== */
body .ee-spp-container .ee-spp-modal-overlay {
    display: none !important;
}
body .ee-spp-container .ee-spp-modal-overlay.is-open {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99999 !important;
    background: rgba(0,0,0,0.5) !important;
    align-items: center !important;
    justify-content: center !important;
}
body .ee-spp-container .ee-spp-modal-container {
    background: #fff !important;
    padding: 30px !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    position: relative !important;
}
body .ee-spp-container .ee-spp-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}
body .ee-spp-container .ee-spp-modal-header h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #333 !important;
}
body .ee-spp-container .ee-spp-modal-close {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    color: #999 !important;
    width: 24px !important;
    height: 24px !important;
}
body .ee-spp-container .ee-spp-modal-close:hover {
    color: #333 !important;
}
