/* ============================================================
   UPPI Marketplace — Template 02
   Professional UX Overhaul
   Palette: Yellow #FFE600, Blue #3483FA, Green #00A650
   ============================================================ */

:root {
    --t2-yellow: #FFE600;
    --t2-yellow-dark: #E6CF00;
    --t2-yellow-light: #FFF4B3;
    --t2-blue: #3483FA;
    --t2-blue-hover: #2968C8;
    --t2-blue-light: #E6F0FF;
    --t2-blue-50: rgba(52,131,250,.06);
    --t2-blue-100: rgba(52,131,250,.12);
    --t2-blue-200: rgba(52,131,250,.20);
    --t2-green: #00A650;
    --t2-green-light: #E6F9EF;
    --t2-green-dark: #008C44;
    --t2-bg: #EBEBEB;
    --t2-bg-warm: #f5f5f5;
    --t2-card: #FFFFFF;
    --t2-text: #333333;
    --t2-text-secondary: #555555;
    --t2-text-muted: #999999;
    --t2-border: #EEEEEE;
    --t2-border-strong: #DDDDDD;
    --t2-font: 'Inter', -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Elevation system */
    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
    --shadow-xl: 0 20px 40px -5px rgba(0,0,0,.10), 0 8px 16px -4px rgba(0,0,0,.04);
    --shadow-blue: 0 4px 14px rgba(52,131,250,.25);

    /* Transitions */
    --ease-out: cubic-bezier(.215,.61,.355,1);
    --ease-spring: cubic-bezier(.175,.885,.32,1.275);
    --t-fast: 150ms;
    --t-normal: 250ms;
    --t-slow: 350ms;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* === FOUNDATIONS === */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--t2-font);
    background: var(--t2-bg);
    color: var(--t2-text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

a {
    color: var(--t2-blue);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease-out);
}
a:hover { color: var(--t2-blue-hover); }

::selection {
    background: var(--t2-blue-200);
    color: var(--t2-text);
}

img { max-width: 100%; height: auto; }

/* === HEADER === */
.t2-header {
    background: var(--t2-yellow);
    padding: 10px 0 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.t2-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.t2-logo {
    font-size: 30px;
    font-weight: 800;
    color: var(--t2-text);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -.5px;
    transition: opacity var(--t-fast);
}
.t2-logo:hover { color: var(--t2-text); opacity: .85; }

.t2-search {
    flex: 1;
    max-width: 680px;
    position: relative;
}

.t2-search-box {
    display: flex;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,.08);
    transition: box-shadow var(--t-normal) var(--ease-out);
}
.t2-search-box:focus-within {
    box-shadow: 0 2px 12px rgba(0,0,0,.15), 0 0 0 2px rgba(52,131,250,.2);
}

.t2-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 11px 16px;
    font-size: 15px;
    color: var(--t2-text);
    background: transparent;
}
.t2-search-box input::placeholder { color: #aaa; }

.t2-search-box button {
    background: var(--t2-bg);
    border: none;
    border-left: 1px solid #e0e0e0;
    padding: 0 18px;
    cursor: pointer;
    color: var(--t2-text-muted);
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: all var(--t-fast);
}
.t2-search-box button:hover {
    background: #ddd;
    color: var(--t2-text);
}

/* Search suggestions */
#search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--t2-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}

.t2-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.t2-header-actions a,
.t2-header-actions .dropdown-toggle {
    color: var(--t2-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: opacity var(--t-fast);
}
.t2-header-actions a:hover { opacity: .7; }

.t2-header-icon {
    font-size: 23px;
    color: var(--t2-text);
    position: relative;
    transition: transform var(--t-fast) var(--ease-spring);
}
.t2-header-icon:hover {
    transform: scale(1.1);
}

.t2-cart-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    background: var(--t2-blue);
    color: #fff;
    font-size: 10px;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 1px 4px rgba(52,131,250,.3);
    animation: badge-pop .3s var(--ease-spring);
}
@keyframes badge-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Sub-nav links */
.t2-subnav {
    max-width: 1200px;
    margin: 10px auto 0;
    padding: 0 16px 10px;
    display: flex;
    gap: 18px;
    font-size: 13px;
}
.t2-subnav a {
    color: var(--t2-text);
    opacity: 0.65;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    transition: all var(--t-fast);
    position: relative;
    padding-bottom: 2px;
}
.t2-subnav a:hover { opacity: 1; }
.t2-subnav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--t2-text);
    transition: width var(--t-normal) var(--ease-out);
}
.t2-subnav a:hover::after { width: 100%; }

/* === FOOTER === */
.t2-footer {
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 40px 0 0;
    margin-top: 48px;
    font-size: 13px;
    color: var(--t2-text-muted);
}

.t2-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.t2-footer h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--t2-text);
    margin: 0 0 14px;
    letter-spacing: .01em;
}

.t2-footer a {
    color: var(--t2-text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    transition: all var(--t-fast);
}
.t2-footer a:hover {
    color: var(--t2-blue);
    padding-left: 3px;
}

.t2-footer-bottom {
    border-top: 1px solid var(--t2-border);
    margin-top: 28px;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: var(--t2-text-muted);
}

/* === PRODUCT CARD (vertical / home grid) === */
.t2-product-card {
    background: var(--t2-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--t-normal) var(--ease-out);
    border: 1px solid var(--t2-border);
}
.t2-product-card:hover {
    box-shadow: var(--shadow-lg);
    z-index: 1;
    position: relative;
    transform: translateY(-2px);
}

.t2-product-card .card-img-wrap {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #fafafa;
}

.t2-product-card .card-img-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform var(--t-slow) var(--ease-out);
}
.t2-product-card:hover .card-img-wrap img {
    transform: scale(1.04);
}

.t2-product-card .card-info {
    padding: 14px;
}

.t2-product-card .product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    color: var(--t2-text);
    line-height: 1.35;
    text-decoration: none;
    margin-bottom: 10px;
    font-weight: 400;
    transition: color var(--t-fast);
}
.t2-product-card .product-name:hover { color: var(--t2-blue); }

.t2-product-card .product-price {
    font-size: 22px;
    font-weight: 400;
    color: var(--t2-text);
    display: block;
    letter-spacing: -.01em;
}

.t2-product-card .product-price-compare {
    font-size: 12px;
    color: var(--t2-text-muted);
    text-decoration: line-through;
}

.t2-product-card .installments {
    font-size: 12px;
    color: var(--t2-green);
    margin-top: 3px;
    font-weight: 500;
}

.t2-product-card .frete-gratis {
    font-size: 12px;
    color: var(--t2-green);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    background: var(--t2-green-light);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.t2-product-card .product-rating {
    font-size: 12px;
    color: var(--t2-text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 2px;
}
.t2-product-card .product-rating .bi-star-fill {
    color: var(--t2-blue);
    font-size: 11px;
}

/* === PRODUCT CARD HORIZONTAL (catalog/search) === */
.t2-product-card-h {
    background: var(--t2-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--t2-border);
    display: flex;
    overflow: hidden;
    margin-bottom: 12px;
    transition: all var(--t-normal) var(--ease-out);
}
.t2-product-card-h:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.t2-product-card-h .card-img-wrap {
    width: 220px;
    min-width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    overflow: hidden;
    flex-shrink: 0;
}
.t2-product-card-h .card-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform var(--t-slow) var(--ease-out);
}
.t2-product-card-h:hover .card-img-wrap img {
    transform: scale(1.04);
}

.t2-product-card-h .card-info {
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.t2-product-card-h .product-name {
    font-size: 17px;
    color: var(--t2-text);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    font-weight: 400;
    transition: color var(--t-fast);
}
.t2-product-card-h .product-name:hover { color: var(--t2-blue); }

.t2-product-card-h .product-price {
    font-size: 26px;
    font-weight: 400;
    color: var(--t2-text);
    letter-spacing: -.01em;
}

.t2-product-card-h .product-price-compare {
    font-size: 13px;
    color: var(--t2-text-muted);
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}

.t2-product-card-h .installments {
    font-size: 13px;
    color: var(--t2-green);
    margin-top: 4px;
    font-weight: 500;
}

.t2-product-card-h .frete-gratis {
    font-size: 13px;
    color: var(--t2-green);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    background: var(--t2-green-light);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    width: fit-content;
}

.t2-product-card-h .product-rating {
    font-size: 12px;
    color: var(--t2-text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 2px;
}
.t2-product-card-h .product-rating .bi-star-fill {
    color: var(--t2-blue);
    font-size: 11px;
}
.t2-product-card-h .product-seller {
    font-size: 12px;
    color: var(--t2-text-muted);
    margin-top: 6px;
}

/* === HOME: Category Carousel === */
.t2-categories-carousel {
    background: #fff;
    padding: 24px 0;
    box-shadow: var(--shadow-xs);
}

.t2-categories-scroll {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}
.t2-categories-scroll::-webkit-scrollbar { display: none; }

.t2-cat-item {
    flex: 0 0 auto;
    width: 115px;
    text-align: center;
    padding: 14px 8px;
    text-decoration: none;
    color: var(--t2-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--t-normal) var(--ease-out);
    scroll-snap-align: start;
}
.t2-cat-item:hover {
    background: var(--t2-blue-50);
    color: var(--t2-blue);
    transform: translateY(-2px);
}

.t2-cat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #f5f5f5, #ebebeb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--t2-blue);
    transition: all var(--t-normal) var(--ease-spring);
}
.t2-cat-item:hover .t2-cat-icon {
    background: var(--t2-blue);
    color: #fff;
    transform: scale(1.08);
    box-shadow: var(--shadow-blue);
}

.t2-cat-name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === HOME: Product Grid === */
.t2-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.t2-product-grid .t2-product-card {
    border-radius: 0;
    border-right: none;
    border-bottom: none;
}
.t2-product-grid .t2-product-card:nth-child(5n) {
    border-right: 1px solid var(--t2-border);
}
.t2-product-grid .t2-product-card:hover {
    z-index: 2;
    border-radius: var(--radius-md);
}

/* === HOME: Section Header === */
.t2-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 14px;
}

.t2-section-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: var(--t2-text);
    letter-spacing: -.01em;
}

.t2-section-header a {
    font-size: 14px;
    color: var(--t2-blue);
    font-weight: 500;
    transition: all var(--t-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}
.t2-section-header a:hover {
    color: var(--t2-blue-hover);
    gap: 6px;
}

/* === HOME: Deals Section === */
.t2-deals-section {
    background: #fff;
    padding: 24px 0;
    margin-bottom: 16px;
    box-shadow: var(--shadow-xs);
}

.t2-deals-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.t2-deals-scroll::-webkit-scrollbar { display: none; }

.t2-deals-scroll .t2-product-card {
    flex: 0 0 200px;
    border-radius: var(--radius-md);
    scroll-snap-align: start;
}

/* === CATALOG: Filter Sidebar === */
.t2-filter-card {
    background: #fff;
    padding: 20px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

.t2-filter-card h6 {
    font-size: 15px;
    font-weight: 700;
    color: var(--t2-text);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--t2-border);
}

.t2-filter-card ul { list-style: none; padding: 0; margin: 0; }
.t2-filter-card ul li { margin-bottom: 8px; }

.t2-filter-card ul li a {
    color: var(--t2-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--t-fast);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}
.t2-filter-card ul li a:hover {
    color: var(--t2-blue);
    padding-left: 4px;
}
.t2-filter-card ul li a.active {
    color: var(--t2-blue);
    font-weight: 600;
}

/* === CATALOG: Sort Bar === */
.t2-sort-bar {
    background: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    box-shadow: var(--shadow-xs);
}

.t2-sort-bar .sort-label {
    color: var(--t2-text-muted);
    white-space: nowrap;
    font-weight: 500;
}

.t2-sort-btn {
    padding: 7px 18px;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--t2-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--t-fast);
}
.t2-sort-btn:hover {
    background: var(--t2-blue-50);
    color: var(--t2-blue);
}
.t2-sort-btn.active {
    background: var(--t2-blue);
    color: #fff;
    box-shadow: var(--shadow-blue);
}
.t2-sort-btn.active:hover {
    background: var(--t2-blue-hover);
    color: #fff;
}

/* View toggle */
.t2-view-toggle {
    margin-left: auto;
    display: flex;
    gap: 4px;
}
.t2-view-toggle button {
    background: none;
    border: 1.5px solid #ddd;
    padding: 5px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    color: var(--t2-text-muted);
    transition: all var(--t-fast);
}
.t2-view-toggle button:hover {
    border-color: var(--t2-blue);
    color: var(--t2-blue);
}
.t2-view-toggle button.active {
    border-color: var(--t2-blue);
    color: var(--t2-blue);
    background: var(--t2-blue-50);
}

/* === PRODUCT PAGE === */
.t2-product-detail {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.t2-gallery {
    display: flex;
    gap: 14px;
}

.t2-gallery .thumb-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 60px;
    flex-shrink: 0;
}

.t2-gallery .thumb-col img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 3px;
    background: #fafafa;
    transition: all var(--t-fast);
}
.t2-gallery .thumb-col img:hover {
    border-color: var(--t2-blue-200);
}
.t2-gallery .thumb-col img.active {
    border-color: var(--t2-blue);
    box-shadow: 0 0 0 1px var(--t2-blue);
}

.t2-gallery .main-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    max-height: 480px;
    background: #fafafa;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.t2-gallery .main-img img {
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
    border-radius: var(--radius-md);
    transition: transform var(--t-slow) var(--ease-out);
}
.t2-gallery .main-img img:hover {
    transform: scale(1.03);
}

/* Product info column */
.t2-product-info .condition {
    font-size: 13px;
    color: var(--t2-text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.t2-product-info h1 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px;
    color: var(--t2-text);
    letter-spacing: -.01em;
}

.t2-product-info .rating-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--t2-blue);
    margin-bottom: 18px;
    font-weight: 500;
}
.t2-product-info .rating-line .bi-star-fill { font-size: 13px; }

.t2-price-block {
    margin-bottom: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--t2-border);
    border-bottom: 1px solid var(--t2-border);
}

.t2-price-block .price-compare {
    font-size: 14px;
    color: var(--t2-text-muted);
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}

.t2-price-block .price-main {
    font-size: 36px;
    font-weight: 300;
    color: var(--t2-text);
    letter-spacing: -.02em;
}

.t2-price-block .installments {
    font-size: 15px;
    color: var(--t2-green);
    margin-top: 6px;
    font-weight: 600;
}

.t2-shipping-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--t2-green);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    background: var(--t2-green-light);
    padding: 8px 14px;
    border-radius: var(--radius-md);
}

.t2-stock {
    font-size: 14px;
    color: var(--t2-text);
    margin-bottom: 18px;
    font-weight: 500;
}
.t2-stock span { color: var(--t2-text-muted); font-weight: 400; }

/* Quantity selector */
.t2-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: var(--radius-md);
    overflow: hidden;
    width: fit-content;
    margin-bottom: 22px;
}

.t2-qty button {
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    color: var(--t2-blue);
    transition: all var(--t-fast);
}
.t2-qty button:hover {
    background: var(--t2-blue-50);
}

.t2-qty input {
    width: 52px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    font-variant-numeric: tabular-nums;
}

/* Action buttons */
.t2-btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--t2-blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    margin-bottom: 10px;
    transition: all var(--t-normal) var(--ease-out);
    box-shadow: var(--shadow-sm);
    letter-spacing: .01em;
}
.t2-btn-primary:hover {
    background: var(--t2-blue-hover);
    color: #fff;
    box-shadow: var(--shadow-blue);
    transform: translateY(-1px);
}
.t2-btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

.t2-btn-secondary {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--t2-blue-light);
    color: var(--t2-blue);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all var(--t-normal) var(--ease-out);
}
.t2-btn-secondary:hover {
    background: #D2E4FF;
    color: var(--t2-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* === Seller Card === */
.t2-seller-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--t-normal);
}
.t2-seller-card:hover {
    box-shadow: var(--shadow-sm);
}

.t2-seller-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--t2-text-muted);
    flex-shrink: 0;
}

.t2-seller-info { flex: 1; }
.t2-seller-info .name {
    font-size: 15px;
    font-weight: 700;
    color: var(--t2-text);
}
.t2-seller-info .label {
    font-size: 12px;
    color: var(--t2-text-muted);
    margin-top: 2px;
}

.t2-seller-link {
    padding: 9px 22px;
    border: 1.5px solid var(--t2-blue);
    color: var(--t2-blue);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--t-fast);
}
.t2-seller-link:hover {
    background: var(--t2-blue-light);
    box-shadow: var(--shadow-blue);
    transform: translateY(-1px);
}

/* === Product Page: Description tabs === */
.t2-tabs {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-xs);
}

.t2-tabs .nav-tabs {
    border-bottom: 1px solid var(--t2-border);
    margin-bottom: 22px;
}

.t2-tabs .nav-tabs .nav-link {
    color: var(--t2-text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 600;
    background: none;
    transition: all var(--t-fast);
}
.t2-tabs .nav-tabs .nav-link:hover {
    color: var(--t2-text);
    background: var(--t2-blue-50);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.t2-tabs .nav-tabs .nav-link.active {
    color: var(--t2-blue);
    border-bottom-color: var(--t2-blue);
}

/* === Variant chips === */
.t2-variant-chip {
    display: inline-block;
    padding: 8px 16px;
    border: 1.5px solid #ddd;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 8px 8px 0;
    transition: all var(--t-fast);
}
.t2-variant-chip:hover {
    border-color: var(--t2-blue-200);
    background: var(--t2-blue-50);
}
.t2-variant-chip.active {
    border-color: var(--t2-blue);
    color: var(--t2-blue);
    background: var(--t2-blue-50);
    box-shadow: 0 0 0 1px var(--t2-blue);
}

/* === AUTH PAGES === */
.t2-auth-wrapper {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--t2-bg) 0%, #e0e0e0 100%);
    padding: 40px 16px;
}

.t2-auth-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 44px;
    width: 100%;
    max-width: 420px;
}

.t2-auth-logo {
    text-align: center;
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 800;
    color: var(--t2-text);
}
.t2-auth-logo span {
    background: var(--t2-yellow);
    padding: 4px 18px;
    border-radius: var(--radius-md);
    display: inline-block;
}

.t2-auth-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--t2-text);
}

.t2-auth-card .form-control {
    border: 1.5px solid #ddd;
    border-radius: var(--radius-md);
    padding: 13px 16px;
    font-size: 14px;
    transition: all var(--t-fast);
}
.t2-auth-card .form-control:focus {
    border-color: var(--t2-blue);
    box-shadow: 0 0 0 3px var(--t2-blue-100);
}

.t2-btn-auth {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--t2-blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--t-normal) var(--ease-out);
    box-shadow: var(--shadow-sm);
}
.t2-btn-auth:hover {
    background: var(--t2-blue-hover);
    box-shadow: var(--shadow-blue);
    transform: translateY(-1px);
}

.t2-auth-divider {
    text-align: center;
    margin: 24px 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--t2-text-muted);
    position: relative;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.t2-auth-divider::before,
.t2-auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: #ddd;
}
.t2-auth-divider::before { left: 0; }
.t2-auth-divider::after { right: 0; }

.t2-social-login {
    display: flex;
    gap: 12px;
}

.t2-social-btn {
    flex: 1;
    padding: 11px;
    border: 1.5px solid #ddd;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--t2-text);
    text-decoration: none;
    transition: all var(--t-fast);
}
.t2-social-btn:hover {
    background: var(--t2-bg-warm);
    color: var(--t2-text);
    border-color: var(--t2-text-muted);
}

/* === BREADCRUMB === */
.t2-breadcrumb {
    font-size: 13px;
    color: var(--t2-text-muted);
    padding: 14px 0;
}
.t2-breadcrumb a {
    color: var(--t2-text-muted);
    text-decoration: none;
    transition: color var(--t-fast);
}
.t2-breadcrumb a:hover { color: var(--t2-blue); }
.t2-breadcrumb .separator {
    margin: 0 8px;
    opacity: .5;
}

/* === PAGINATION === */
.t2-pagination {
    background: #fff;
    padding: 18px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* === BANNER / HERO === */
.t2-hero {
    background: var(--t2-yellow);
    padding-bottom: 16px;
}

.t2-hero .carousel-inner {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.t2-hero .carousel-item img {
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.t2-hero .carousel-control-prev,
.t2-hero .carousel-control-next {
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,.3);
    border-radius: var(--radius-full);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity var(--t-normal);
}
.t2-hero:hover .carousel-control-prev,
.t2-hero:hover .carousel-control-next {
    opacity: 1;
}
.t2-hero .carousel-control-prev { left: 16px; }
.t2-hero .carousel-control-next { right: 16px; }

.t2-hero-placeholder {
    max-width: 1200px;
    margin: 0 auto;
    height: 300px;
    background: linear-gradient(135deg, var(--t2-blue) 0%, #1a6fd4 50%, #1558b0 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.t2-hero-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.t2-hero-placeholder h1 {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 10px;
    position: relative;
    letter-spacing: -.01em;
}
.t2-hero-placeholder p {
    font-size: 16px;
    opacity: .9;
    margin: 0 0 18px;
    position: relative;
    font-weight: 400;
}

/* === CONTAINER === */
.t2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* === FLASH BADGE === */
.t2-full-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--t2-green), var(--t2-green-dark));
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: .05em;
    margin-top: 4px;
    text-transform: uppercase;
}

/* === DROPDOWN MENUS === */
.dropdown-menu {
    border: 1px solid var(--t2-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    animation: dropdown-in .2s var(--ease-out);
}
@keyframes dropdown-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
    padding: 8px 16px;
    font-size: 13px;
    transition: all var(--t-fast);
    border-radius: var(--radius-sm);
    margin: 0 4px;
}
.dropdown-item:hover {
    background: var(--t2-blue-50);
    color: var(--t2-blue);
}

/* === ALERTS === */
.alert {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    font-weight: 500;
}
.alert-success {
    background: var(--t2-green-light);
    color: #1a7a3e;
    border-left: 4px solid var(--t2-green);
}
.alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border-left: 4px solid #ef4444;
}

/* === FORM OVERRIDES === */
.form-control:focus, .form-select:focus {
    border-color: var(--t2-blue);
    box-shadow: 0 0 0 3px var(--t2-blue-100);
}
.form-check-input:checked {
    background-color: var(--t2-blue);
    border-color: var(--t2-blue);
}
.form-check-input {
    transition: all var(--t-fast);
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--t2-blue-100);
    border-color: var(--t2-blue);
}

/* Pagination */
.page-link {
    color: var(--t2-blue);
    border-radius: var(--radius-sm);
    transition: all var(--t-fast);
}
.page-link:hover {
    background: var(--t2-blue-50);
    color: var(--t2-blue);
}
.page-item.active .page-link {
    background: var(--t2-blue);
    border-color: var(--t2-blue);
    box-shadow: var(--shadow-blue);
}

/* === LOADING SKELETON === */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: skeleton-pulse 1.4s ease infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-pulse {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .t2-product-grid { grid-template-columns: repeat(3, 1fr); }
    .t2-product-grid .t2-product-card:nth-child(5n) { border-right: none; }
    .t2-product-grid .t2-product-card:nth-child(3n) { border-right: 1px solid var(--t2-border); }
    .t2-product-card-h .card-img-wrap { width: 180px; min-width: 180px; height: 180px; }
    .t2-gallery { flex-direction: column-reverse; }
    .t2-gallery .thumb-col { flex-direction: row; width: 100%; overflow-x: auto; }
    .t2-product-detail { padding: 20px; }
    .t2-tabs { padding: 20px; }
}

@media (max-width: 768px) {
    .t2-product-grid { grid-template-columns: repeat(2, 1fr); }
    .t2-product-grid .t2-product-card:nth-child(3n) { border-right: none; }
    .t2-product-grid .t2-product-card:nth-child(2n) { border-right: 1px solid var(--t2-border); }
    .t2-header-inner { gap: 8px; }
    .t2-logo { font-size: 24px; }
    .t2-product-card-h { flex-direction: column; }
    .t2-product-card-h .card-img-wrap { width: 100%; height: 220px; min-width: auto; }
    .t2-subnav { overflow-x: auto; scrollbar-width: none; }
    .t2-subnav::-webkit-scrollbar { display: none; }
    .t2-sort-bar { flex-wrap: wrap; }
    .t2-price-block .price-main { font-size: 28px; }
    .t2-product-detail { border-radius: var(--radius-md); padding: 16px; }
    .t2-auth-card { padding: 32px 24px; }
    .t2-section-header h2 { font-size: 20px; }
}

@media (max-width: 576px) {
    .t2-header-actions { gap: 14px; }
    .t2-cat-item { width: 95px; }
    .t2-product-card .card-info { padding: 10px; }
    .t2-deals-scroll .t2-product-card { flex: 0 0 170px; }
}

/* === UTILITIES === */
.t2-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: box-shadow var(--t-normal);
}
.t2-card:hover {
    box-shadow: var(--shadow-md);
}
