/*
Theme Name: TwelveBD Pro E-Commerce
Theme URI: https://twelvebd.com/
Author: TwelveBD Studio
Author URI: https://twelvebd.com/
Description: Full-featured, pixel-matched WooCommerce Fashion Storefront modeled after TwelveBD.com. Includes 1-click AJAX setup for WooCommerce, Visual Page Builder, Bangladesh Payment Gateways (bKash, Nagad, SSLCommerz), interactive price range slider, brand/category/size/color sidebar filters, 50 Studio Fashion Products with model illustrations, 5 Blog Posts, and Pages (300+ words each).
Version: 4.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: twelvebd-pro
*/

:root {
    --twv-crimson: #E02027;
    --twv-orange: #F37021;
    --twv-black: #111111;
    --twv-dark: #222222;
    --twv-muted: #767676;
    --twv-border: #E5E5E5;
    --twv-studio-bg: #F3F2F0;
    --twv-white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--twv-black);
    background: var(--twv-white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

/* 1. Top Crimson Announcement Bar */
.twv-announcement-bar {
    background: var(--twv-crimson);
    color: var(--twv-white);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 16px;
}

/* 2. Sticky White Header with Orange Square TwelveBD Logo */
.twv-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--twv-white);
    border-bottom: 1px solid var(--twv-border);
}
.twv-header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.twv-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.twv-brand-square {
    width: 34px;
    height: 34px;
    background: var(--twv-orange);
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    line-height: 1;
    border-radius: 2px;
}
.twv-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.twv-brand-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--twv-black);
}
.twv-brand-sub {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--twv-muted);
    text-transform: uppercase;
}
.twv-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}
.twv-nav a {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--twv-dark);
}
.twv-nav a:hover { color: var(--twv-crimson); }
.twv-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.twv-search-box {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #CCC;
    padding: 3px 4px;
}
.twv-search-box input {
    border: none;
    outline: none;
    font-size: 12px;
    width: 130px;
    background: transparent;
}
.twv-icon-link {
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.twv-cart-badge {
    background: var(--twv-black);
    color: #fff;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 3. Main Container & Page Heading */
.twv-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px 24px 64px;
}
.twv-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--twv-border);
}
.twv-page-title {
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.twv-toolbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--twv-muted);
}

/* 4. Two-Column Shop Architecture: Left Filter Sidebar (240px) + 3-Column Studio Grid */
.twv-shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}
.twv-sidebar {
    position: sticky;
    top: 86px;
    padding-right: 16px;
    border-right: 1px solid var(--twv-border);
}
.twv-filter-block {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--twv-border);
}
.twv-filter-heading {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 12px;
    color: var(--twv-black);
}
.twv-price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.twv-price-inputs input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #D8D8D8;
    font-size: 12px;
    color: var(--twv-black);
}
.twv-range-track {
    height: 3px;
    background: #111;
    position: relative;
    margin: 12px 4px 14px;
}
.twv-range-dot-l, .twv-range-dot-r {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #111;
    position: absolute;
    top: -4px;
}
.twv-range-dot-l { left: 0; }
.twv-range-dot-r { right: 0; }

.twv-cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.twv-cat-list li a {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--twv-dark);
}
.twv-cat-list li a:hover {
    color: var(--twv-crimson);
    font-weight: 600;
}
.twv-cat-count {
    color: var(--twv-muted);
    font-size: 11px;
}
.twv-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.twv-size-btn {
    border: 1px solid #DCDCDC;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    background: #FFF;
}
.twv-size-btn:hover, .twv-size-btn.active {
    background: var(--twv-black);
    color: #FFF;
    border-color: var(--twv-black);
}
.twv-color-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.twv-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.2);
    cursor: pointer;
}

/* 5. 3-Column Studio Product Cards (Exact TwelveBD Visual Style) */
.twv-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 18px;
}
.twv-card {
    display: flex;
    flex-direction: column;
}
.twv-card-media {
    position: relative;
    background: var(--twv-studio-bg);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 10px;
}
.twv-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.twv-card:hover .twv-card-media img {
    transform: scale(1.03);
}
.twv-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--twv-crimson);
    color: #FFF;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 7px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 2;
}
.twv-badge.new {
    background: #1B7F5C;
}
.twv-card-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--twv-black);
    margin-bottom: 3px;
    line-height: 1.35;
}
.twv-card-price {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--twv-black);
    margin-bottom: 7px;
}
.twv-card-price del {
    color: var(--twv-muted);
    font-weight: 400;
    margin-right: 5px;
}
.twv-card-sizes {
    display: flex;
    gap: 4px;
    margin-bottom: 9px;
}
.twv-card-sizes span {
    font-size: 10px;
    font-weight: 600;
    border: 1px solid #DFDFDF;
    padding: 2px 6px;
    color: #555;
    cursor: pointer;
}
.twv-card-sizes span:hover, .twv-card-sizes span.selected {
    border-color: var(--twv-black);
    background: var(--twv-black);
    color: #FFF;
}
.twv-card-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 10px;
    border: 1px solid #D0D0D0;
    background: #FFF;
    color: var(--twv-black);
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}
.twv-card-cta:hover {
    background: var(--twv-black);
    border-color: var(--twv-black);
    color: #FFF;
}

/* 6. Floating Black Chat Circle on Right Edge */
.twv-floating-chat {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--twv-black);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 1000;
    font-size: 17px;
}

/* 7. Minimalist Centered Footer (Exact TwelveBD Footer Layout) */
.twv-footer {
    border-top: 1px solid var(--twv-border);
    padding: 44px 24px 26px;
    text-align: center;
    background: #FFFFFF;
}
.twv-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--twv-dark);
    margin-bottom: 20px;
}
.twv-footer-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}
.twv-footer-socials a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--twv-black);
    color: #FFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.twv-copyright {
    font-size: 11px;
    color: var(--twv-muted);
    border-top: 1px solid #F0F0F0;
    padding-top: 16px;
    max-width: 1360px;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .twv-shop-layout { grid-template-columns: 1fr; }
    .twv-sidebar { position: static; border-right: none; border-bottom: 1px solid var(--twv-border); padding-right: 0; }
    .twv-product-grid { grid-template-columns: repeat(2, 1fr); }
    .twv-nav { display: none; }
}
