/*
Theme Name: POD Store Theme
Theme URI: 
Author: AI Assistant
Description: Professional Commercial POD Theme (Mega-Store Layout). High-Density & SEO-Rich.
Version: 1.4.0
Text Domain: pod-store
*/

:root {
    --color-primary: #e62e04;
    --color-primary-hover: #cc2500;
    --color-text: #111;
    --color-text-light: #555;
    --color-bg: #fff;
    --color-bg-alt: #f5f5f5;
    --color-border: #e2e2e2;
    --max-width: 1300px;
    --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; margin-top: 0; }

.button { background: var(--color-primary); color: #fff; padding: 14px 28px; border-radius: 4px; font-weight: 700; display: inline-block; cursor: pointer; border: none; text-align: center; }
.button:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(230, 46, 4, 0.2); }

/* ==========================================================================
   Header: Mega-Store Dense Layout
   ========================================================================== */
.site-header { background: #fff; border-bottom: 2px solid var(--color-primary); }

.top-bar { background: #f2f2f2; font-size: 12px; color: #666; padding: 10px 0; border-bottom: 1px solid #e5e5e5; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #666; }
.top-bar a:hover { color: var(--color-primary); text-decoration: underline; }

.header-main-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; gap: 40px; }
.site-branding .site-title { font-size: 28px; font-weight: 900; margin: 0; color: #000; letter-spacing: -1px; }

.header-search { flex: 1; max-width: 700px; }
.header-search .search-form { display: flex; width: 100%; border: 2px solid var(--color-primary); border-radius: 4px; overflow: hidden; }
.header-search .search-field { flex: 1; border: none; padding: 12px 15px; outline: none; font-size: 14px; }
.header-search .search-submit { background: var(--color-primary); color: #fff; border: none; padding: 0 35px; font-weight: bold; font-size: 15px; cursor: pointer; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.cart-customlocation { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 14px; color: #333; border: 1px solid #ddd; padding: 8px 15px; border-radius: 20px; }
.cart-icon { font-size: 20px; }

.header-nav-bar { border-top: 1px solid #eee; padding: 5px 0; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-navigation ul li a { display: block; padding: 12px 0; font-weight: 700; color: #333; font-size: 14px; }
.main-navigation ul li a:hover { color: var(--color-primary); }

/* ==========================================================================
   Homepage Specifics
   ========================================================================== */
.hero-section { background: #fdfdfd; padding: 100px 0; border-bottom: 1px solid #eee; text-align: center; }
.hero-tagline { color: var(--color-primary); letter-spacing: 2px; text-transform: uppercase; font-size: 13px; font-weight: 700; margin-bottom: 15px; }
.hero-title { font-size: 52px; margin-bottom: 25px; line-height: 1.1; }
.hero-subtitle { font-size: 20px; color: #666; margin-bottom: 40px; }

.section-padding { padding: 80px 0; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 50px; }
.bg-alt { background-color: var(--color-bg-alt); }

.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.brand-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 40px; text-align: center; transition: 0.3s; }
.brand-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.brand-card h3 { font-size: 24px; margin: 20px 0 10px; }

.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item img { border-radius: 8px; border: 1px solid #f0f0f0; }

.review-scroller { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 30px; }
.review-card { min-width: 320px; background: #fff; border: 1px solid #eee; padding: 30px; border-radius: 12px; }
.review-stars { color: #ff9900; margin-bottom: 15px; }

.latest-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card-thumb { height: 220px; border-radius: 8px; overflow: hidden; margin-bottom: 15px; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.seo-block { max-width: 900px; margin: 0 auto; line-height: 1.8; color: #444; }
.seo-block h2 { color: #111; margin-bottom: 30px; }
.seo-block details { border-bottom: 1px solid #eee; padding: 15px 0; cursor: pointer; }
.seo-block summary { font-weight: 700; font-size: 16px; color: #111; }

/* ==========================================================================
   WooCommerce Grid & Single Product
   ========================================================================== */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; gap: 15px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.woocommerce ul.products li.product { background: #fff; border: 1px solid transparent; padding: 12px !important; text-align: left !important; transition: 0.2s; }
.woocommerce ul.products li.product:hover { border-color: #ddd; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13px !important; line-height: 1.4 !important; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 8px !important; font-weight: 400 !important; }
.woocommerce ul.products li.product .price { font-size: 18px !important; font-weight: 700 !important; color: #111 !important; }

/* Single Product Gallery Overhaul - Anti-Squash & Anti-Repeat */
.woocommerce div.product div.images { 
    display: flex !important; 
    flex-direction: row-reverse !important; 
    align-items: flex-start !important;
    width: 55% !important; 
    float: left !important;
    gap: 15px !important;
}

/* The Main Image Viewport */
.woocommerce div.product div.images .flex-viewport {
    flex: 1 !important;
    width: auto !important;
    border: 1px solid #eee;
}

/* The Thumbnail List - Aligned to Main Image Height */
.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs {
    width: 80px !important;
    height: 100% !important;
    max-height: 550px !important; /* Matches typical main image height */
    overflow-y: auto !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    scrollbar-width: none; /* Firefox */
}
.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs li {
    width: 80px !important;
    height: 80px !important;
    min-height: 80px !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    float: none !important;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs li img {
    width: 80px !important;
    height: 80px !important;
    display: block !important;
    object-fit: cover !important;
    opacity: 0.5;
    transition: 0.3s;
}

.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs li img:hover {
    opacity: 1;
    border: 2px solid var(--color-primary);
}

/* Hide any other potential duplicate images or lists */
.woocommerce div.product div.images > ol:not(.flex-control-nav),
.woocommerce div.product div.images li.clone {
    display: none !important;
}

/* Variations UI Refinement */
.woocommerce div.product div.summary { width: 40% !important; float: right !important; }
.woocommerce table.variations { width: 100%; border: none !important; margin-bottom: 20px; }
.woocommerce table.variations th.label { display: none !important; } /* Hide redundant label as Swatches contain context */
.woocommerce table.variations td.value { padding: 0 !important; }

/* Swatches Styling */
.pod-swatch-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pod-swatch-item { 
    border: 1px solid #ddd; 
    padding: 10px 18px; 
    font-size: 14px; 
    background: #fff; 
    cursor: pointer; 
    border-radius: 4px;
    transition: 0.2s;
}
.pod-swatch-item:hover { border-color: #111; background: #fdfdfd; }
.pod-swatch-item.selected { 
    border: 2px solid #000; 
    box-shadow: inset 0 0 0 1px #000;
    font-weight: 700;
}

/* Force Hide Native Junk */
.variations select, .reset_variations { display: none !important; }

/* Price & Button Polish */
.product_title { font-size: 28px !important; margin-bottom: 15px !important; }
.woocommerce div.product p.price { 
    font-size: 36px !important; 
    color: var(--color-primary) !important; 
    font-weight: 900 !important; 
    margin-bottom: 25px !important;
}

.woocommerce div.product form.cart .button { 
    background: linear-gradient(to right, #e62e04, #ff5e3a) !important; 
    color: #fff !important; 
    border-radius: 50px !important; 
    font-size: 18px !important; 
    padding: 16px 50px !important; 
    font-weight: 800 !important; 
    border: none !important;
    box-shadow: 0 6px 20px rgba(230, 46, 4, 0.3) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.woocommerce div.product form.cart .button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(230, 46, 4, 0.4) !important;
}

/* ==========================================================================
   Checkout, Cart & My Account (High-End Professional UI)
   ========================================================================== */
.woocommerce-cart .woocommerce, 
.woocommerce-checkout .woocommerce, 
.woocommerce-account .woocommerce { 
    background: transparent; 
    padding: 0; 
    border: none; 
    margin-bottom: 80px; 
}

/* Common Card Style */
.woocommerce .col2-set, .woocommerce-checkout #order_review, .woocommerce-MyAccount-content, .woocommerce-cart-collaterals {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* --- Checkout: Professional Two-Column Split --- */
@media (min-width: 992px) {
    .woocommerce-checkout form.checkout {
        display: grid;
        grid-template-columns: 1fr 450px;
        gap: 40px;
        align-items: flex-start;
    }
    .woocommerce-checkout #customer_details { width: 100% !important; float: none !important; }
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review { width: 100% !important; float: none !important; }
}

.woocommerce-checkout #order_review {
    background: #fdfdfd;
    border: 2px solid #000; /* High-end contrast */
}

.woocommerce-checkout h3 {
    font-size: 22px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    color: #000;
}

/* Checkout Form Inputs */
.woocommerce form .form-row { margin-bottom: 20px; }
.woocommerce form .form-row label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 13px; color: #333; }
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea {
    padding: 15px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}
.woocommerce form .form-row input.input-text:focus { border-color: #000; background: #fff; outline: none; }

/* Payment Methods */
#payment { background: transparent !important; border: none !important; padding: 0 !important; }
#payment ul.payment_methods { border-bottom: 1px solid #eee; padding-bottom: 20px !important; margin-bottom: 20px !important; }
#payment .place-order { padding: 0 !important; }

/* --- My Account: Dashboard Style --- */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 40px;
}
.woocommerce-MyAccount-navigation {
    width: 280px;
    flex-shrink: 0;
}
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.woocommerce-MyAccount-navigation ul li { border-bottom: 1px solid #f0f0f0; }
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 18px 25px;
    font-weight: 600;
    color: #444;
    font-size: 15px;
}
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--color-primary);
    color: #fff;
}
.woocommerce-MyAccount-navigation ul li a:hover:not(.is-active) {
    background: #f9f9f9;
    color: var(--color-primary);
}

.woocommerce-MyAccount-content {
    flex: 1;
}

/* System-wide Table Consistency */
table.shop_table { border: none !important; border-radius: 12px; overflow: hidden; }
table.shop_table thead th { background: #f8f8f8; padding: 20px; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
table.shop_table tbody td { padding: 25px 20px; border-bottom: 1px solid #f0f0f0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #111; color: #aaa; padding: 80px 0 40px; }
.footer-main-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-title { color: #fff; font-size: 20px; margin-bottom: 25px; }
.site-bottom-info { border-top: 1px solid #333; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a:hover { color: #fff; text-decoration: underline; }

/* Responsive Header Fixes & Cleanup */
@media (max-width: 992px) {
    .header-main-inner { flex-direction: column; gap: 20px; padding: 15px 0; }
    .header-search { order: 3; max-width: 100%; width: 100%; }
    .latest-posts-grid { grid-template-columns: 1fr 1fr; }
    .footer-main-inner { grid-template-columns: 1fr; gap: 40px; }
    .woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; }
}
@media (max-width: 600px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .latest-posts-grid { grid-template-columns: 1fr; }
}
