/*
Theme Name: OppoDijital
Theme URI: https://oppodijital.com/
Author: OppoDijital
Author URI: https://oppodijital.com/
Description: OppoDijital custom WooCommerce theme featuring Tailwind CSS and Poppins font.
Version: 1.0.0
Text Domain: oppodijital
*/

/* Custom styles can be added here if needed, but Tailwind CSS will handle most styles. */
body {
    font-family: 'Poppins', sans-serif;
}

/* DESIGN GUIDELINES & CUSTOM STYLING RULES
 * - Do NOT use box-shadows (shadow, shadow-md, shadow-lg, etc.) on cards or custom container sections.
 * - Rely on clean borders (e.g. border-slate-200/80) and balanced spacing for container division.
 * - Primary Color: #02bec6
 * - Secondary Color: #231f20
 * - Page Background Color: #ffffff (Flat White)
 */

/* Logo Sizing Control */
.logo img, .custom-logo-link img {
    max-height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ----------------------------------------------------
 * WooCommerce Printing Calculator Styling Overrides
 * ---------------------------------------------------- */

/* Reset default calculator container style to match flat theme design */
.bh-calculator {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Hide default bottom summary box because we show calculated values in the sticky checkout panel */
.bh-summary {
    display: none !important;
}

/* Dimension inputs styling */
.bh-dimensions {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    flex-wrap: wrap !important;
}

.bh-field {
    flex: 1 !important;
    min-width: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.bh-field label {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #64748b !important; /* slate-500 */
}

.bh-field input[type="number"] {
    border: 1px solid #e2e8f0 !important; /* slate-200 */
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-family: 'Poppins', sans-serif !important;
    background-color: #f8fafc !important; /* slate-50 */
    color: #231f20 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !important;
}

.bh-field input[type="number"]:focus {
    border-color: #02bec6 !important;
    background-color: #ffffff !important;
}

.bh-separator {
    display: none !important; /* Hide math 'x' separator */
}

/* Dropdown select options styling */
.bh-option-group {
    margin-bottom: 20px !important;
}

.bh-option-label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #64748b !important;
    margin-bottom: 8px !important;
}

.bh-option-group select {
    width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-family: 'Poppins', sans-serif !important;
    background-color: #ffffff !important;
    color: #231f20 !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}

.bh-option-group select:focus {
    border-color: #02bec6 !important;
}

/* Radio buttons and checkboxes style overrides (block selection layout) */
.bh-radio-group,
.bh-checkbox-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 4px !important;
}

.bh-radio-label,
.bh-checkbox-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #231f20 !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
    user-select: none !important;
    flex: 1 !important;
    min-width: 120px !important;
}

.bh-radio-label input[type="radio"],
.bh-checkbox-label input[type="checkbox"] {
    display: none !important; /* Hide original inputs */
}

.bh-radio-label:hover,
.bh-checkbox-label:hover {
    border-color: #02bec6 !important;
    background-color: rgb(2 190 198 / 0.02) !important;
}

/* Custom Checked State via CSS :has */
.bh-radio-label:has(input:checked),
.bh-checkbox-label:has(input:checked) {
    border-color: #02bec6 !important;
    color: #02bec6 !important;
    background-color: rgb(2 190 198 / 0.05) !important;
}

.bh-radio-label:has(input:checked)::after,
.bh-checkbox-label:has(input:checked)::after {
    content: "✓" !important;
    margin-left: 8px !important;
    font-weight: 700 !important;
    color: #02bec6 !important;
}

/* Clean breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 12px !important;
    color: #94a3b8 !important; /* slate-400 */
}
.woocommerce-breadcrumb a {
    color: #64748b !important;
    transition: color 0.15s;
}
.woocommerce-breadcrumb a:hover {
    color: #02bec6 !important;
}

/* WooCommerce Details Page Layout Resets to prevent floats from breaking CSS grids */
.woocommerce div.product,
.woocommerce-page div.product {
    width: 100% !important;
    display: block !important;
    float: none !important;
    margin: 0 auto !important;
}

.woocommerce div.product div.images,
.woocommerce-page div.product div.images,
.woocommerce div.product div.summary,
.woocommerce-page div.product div.summary {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

/* Force form.cart to be a normal block level element so inner grids function correctly */
.woocommerce div.product form.cart,
.woocommerce-page div.product form.cart {
    display: block !important;
    float: none !important;
    width: 100% !important;
    clear: both !important;
    margin: 0 !important;
}

/* Reset WooCommerce product gallery spacing */
.woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
    display: block !important;
}

.woocommerce-product-gallery__wrapper {
    margin: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: calc(25% - 6px) !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: border-color 0.15s !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    border-color: #02bec6 !important;
}

/* Add to Cart button layout matching primary color style */
.woocommerce #respond input#submit.alt, 
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt,
.woocommerce button.button.single_add_to_cart_button,
.single_add_to_cart_button {
    background-color: #02bec6 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    transition: background-color 0.2s !important;
    font-family: 'Poppins', sans-serif !important;
    box-shadow: none !important;
    border: none !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
}

.woocommerce #respond input#submit.alt:hover, 
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover,
.woocommerce button.button.single_add_to_cart_button:hover,
.single_add_to_cart_button:hover {
    background-color: #01a4ab !important;
    color: #ffffff !important;
}

/* Disable zoom hover pointer events on product images */
.woocommerce-product-gallery__image {
    pointer-events: none !important;
}

/* Hide magnifying glass search icon on product images */
.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* ----------------------------------------------------
 * Premium Checkout Sidebar & Price Typography Overrides
 * ---------------------------------------------------- */

/* Container for dynamic price */
.bh-custom-price-display {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

/* Override WooCommerce amount/currency symbol styles to ensure elegant layout */
.bh-custom-price-display .price-val,
.bh-custom-price-display .amount,
.bh-custom-price-display ins .amount,
.bh-custom-price-display bdi {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #231f20 !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    font-family: 'Poppins', sans-serif !important;
}

.bh-custom-price-display del .amount {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    margin-right: 8px !important;
}

/* Remove default float behavior and expand add-to-cart button to fill the width */
.woocommerce div.product form.cart .single_add_to_cart_button {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 16px 0 0 0 !important; /* Added 16px top margin to separate from price/fields */
    height: 52px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    border-radius: 12px !important;
    text-transform: uppercase !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

/* Ensure parents of sticky sidebar allow sticky positioning */
.woocommerce div.product,
.woocommerce-page div.product,
.site-content,
#content,
main {
    overflow: visible !important;
}

/* ----------------------------------------------------
 * WooCommerce Tabs / Description Styling
 * ---------------------------------------------------- */
.woocommerce-tabs {
    margin-top: 2rem !important;
}

/* Tabs Navigation List */
.woocommerce-tabs ul.tabs {
    display: flex !important;
    gap: 32px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    list-style: none !important;
    overflow-x: auto !important;
    scrollbar-width: none !important; /* Firefox */
}

.woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none !important; /* Safari/Chrome */
}

.woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 12px 0 16px 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.25s ease-in-out !important;
    text-decoration: none !important;
    outline: none !important;
    font-family: 'Poppins', sans-serif !important;
}

.woocommerce-tabs ul.tabs li a:hover {
    color: #02bec6 !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #02bec6 !important;
    font-weight: 600 !important;
    border-bottom-color: #02bec6 !important;
}

/* Tab Panel Content */
.woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 8px 0 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #475569 !important;
}

.woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #231f20 !important;
    margin-bottom: 16px !important;
    font-family: 'Poppins', sans-serif !important;
}

.woocommerce-tabs .woocommerce-Tabs-panel p {
    margin-bottom: 16px !important;
}

/* Quantity input field layout details */
.woocommerce .quantity {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce .quantity .qty {
    width: 100% !important;
    height: 48px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    color: #231f20 !important;
    background-color: #f8fafc !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !important;
    -moz-appearance: textfield !important;
}

.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.woocommerce .quantity .qty:focus {
    border-color: #02bec6 !important;
    background-color: #ffffff !important;
}

/* ----------------------------------------------------
 * Navigation Menu & Dropdown Styling
 * ---------------------------------------------------- */

.header-primary-menu {
    position: relative;
}

.header-primary-menu ul {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-primary-menu li {
    position: relative;
    padding: 10px 0;
}

/* Base styles for sub-menu */
.header-primary-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    min-width: 260px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0; /* border-slate-200 */
    border-radius: 12px;
    padding: 10px 0;
    margin-top: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    box-shadow: none !important;
}

/* Show submenu on hover */
.header-primary-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sub-menu items */
.header-primary-menu ul.sub-menu li {
    width: 100%;
    display: block;
    padding: 0;
}

.header-primary-menu ul.sub-menu li a {
    display: block;
    padding: 10px 20px !important;
    color: #231f20 !important; /* secondary */
    font-size: 13.5px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap;
}

.header-primary-menu ul.sub-menu li a:hover {
    color: #02bec6 !important; /* primary */
    background-color: rgb(2 190 198 / 0.04) !important; /* very light primary bg */
    padding-left: 24px !important; /* subtle sliding text animation */
}

/* Indicator arrow for items with children */
.header-primary-menu li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-primary-menu li.menu-item-has-children > a::after {
    content: "\f078"; /* FontAwesome Chevron Down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 9px;
    color: #94a3b8; /* slate-400 */
    transition: transform 0.25s ease, color 0.25s ease;
    display: inline-block;
}

.header-primary-menu li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    color: #02bec6;
}




