/* ============================================================
   TIENDA PAMPA LIBERAL - Custom Theme Styles
   Paleta: Celeste argentino + Blanco + Dorado
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --tpl-celeste: #74ACDF;
    --tpl-celeste-dark: #4A8BC2;
    --tpl-celeste-light: #A8D0F0;
    --tpl-celeste-bg: #EEF5FB;
    --tpl-gold: #D4A843;
    --tpl-gold-dark: #B8912E;
    --tpl-gold-light: #E8C96A;
    --tpl-gold-bg: #FDF8ED;
    --tpl-dark: #1B2A4A;
    --tpl-dark-2: #243558;
    --tpl-dark-3: #0F1B33;
    --tpl-text: #1F2937;
    --tpl-text-muted: #6B7280;
    --tpl-light: #F3F4F6;
    --tpl-white: #FFFFFF;
    --tpl-border: #E5E7EB;
    --tpl-success: #059669;
    --tpl-danger: #DC2626;
    --tpl-font-heading: 'Montserrat', sans-serif;
    --tpl-font-body: 'Open Sans', sans-serif;
    --tpl-radius: 0.625rem;
    --tpl-radius-lg: 1rem;
    --tpl-radius-xl: 1.25rem;
    --tpl-shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.06);
    --tpl-shadow: 0 4px 20px rgba(27, 42, 74, 0.08);
    --tpl-shadow-hover: 0 12px 40px rgba(27, 42, 74, 0.14);
    --tpl-shadow-lg: 0 20px 50px rgba(27, 42, 74, 0.18);
    --tpl-transition: all 0.25s ease;
    --tpl-transition-slow: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Base ---------- */
body {
    font-family: var(--tpl-font-body);
    color: var(--tpl-text);
    background-color: var(--tpl-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.fw-black {
    font-family: var(--tpl-font-heading);
}

.fw-black {
    font-weight: 900 !important;
}

a {
    color: var(--tpl-celeste-dark);
    text-decoration: none;
    transition: var(--tpl-transition);
}

a:hover {
    color: var(--tpl-gold);
}

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

::selection {
    background: var(--tpl-celeste);
    color: var(--tpl-white);
}

/* ---------- Top Bar ---------- */
.tpl-topbar {
    background: var(--tpl-dark-3);
    padding: 0.5rem 0;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--tpl-gold);
}

.tpl-topbar__slogan {
    color: var(--tpl-gold);
    font-family: var(--tpl-font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
}

.tpl-topbar__slogan i {
    color: var(--tpl-gold-light);
    margin-right: 0.25rem;
}

.tpl-topbar__social {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
}

.tpl-topbar__social-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: var(--tpl-transition);
}

.tpl-topbar__social-link:hover {
    color: var(--tpl-gold);
    transform: scale(1.15);
}

.tpl-topbar__info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* ---------- Navbar ---------- */
.tpl-navbar {
    background: var(--tpl-white);
    box-shadow: var(--tpl-shadow);
    padding: 0.5rem 0;
    z-index: 1040;
    transition: var(--tpl-transition-slow);
}

.tpl-navbar.scrolled {
    padding: 0.35rem 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.tpl-navbar__brand {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.tpl-navbar__brand img,
.tpl-navbar__brand .custom-logo {
    max-height: 45px;
    width: auto;
}

.tpl-navbar__sitename {
    font-family: var(--tpl-font-heading);
    color: var(--tpl-dark);
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    white-space: nowrap;
}

.tpl-navbar .nav-link {
    color: var(--tpl-dark);
    font-weight: 600;
    font-family: var(--tpl-font-heading);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.85rem !important;
    transition: var(--tpl-transition);
    position: relative;
}

.tpl-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--tpl-gold);
    transition: width 0.3s ease;
}

.tpl-navbar .nav-link:hover::after,
.tpl-navbar .nav-link.active::after {
    width: 70%;
}

.tpl-navbar .nav-link:hover,
.tpl-navbar .nav-link.active {
    color: var(--tpl-celeste-dark);
}

.tpl-navbar .dropdown-toggle::after {
    display: none;
}

.tpl-navbar__search .form-control {
    border: 2px solid var(--tpl-border);
    border-radius: var(--tpl-radius) 0 0 var(--tpl-radius);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: var(--tpl-light);
    min-width: 200px;
}

.tpl-navbar__search .form-control:focus {
    border-color: var(--tpl-celeste);
    box-shadow: 0 0 0 3px rgba(116, 172, 223, 0.15);
    background: var(--tpl-white);
}

.tpl-btn-search {
    background: var(--tpl-celeste);
    color: var(--tpl-white);
    border: 2px solid var(--tpl-celeste);
    border-radius: 0 var(--tpl-radius) var(--tpl-radius) 0;
    padding: 0.5rem 1rem;
    transition: var(--tpl-transition);
}

.tpl-btn-search:hover {
    background: var(--tpl-celeste-dark);
    border-color: var(--tpl-celeste-dark);
    color: var(--tpl-white);
}

/* ---------- Buttons ---------- */
.tpl-btn-primary {
    background: var(--tpl-celeste);
    color: var(--tpl-white);
    border: none;
    font-family: var(--tpl-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    border-radius: var(--tpl-radius);
    transition: var(--tpl-transition);
    position: relative;
    overflow: hidden;
}

.tpl-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.tpl-btn-primary:hover::before {
    left: 100%;
}

.tpl-btn-primary:hover {
    background: var(--tpl-celeste-dark);
    color: var(--tpl-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 139, 194, 0.35);
}

.tpl-btn-gold {
    background: linear-gradient(135deg, var(--tpl-gold), var(--tpl-gold-dark));
    color: var(--tpl-white);
    border: none;
    font-family: var(--tpl-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--tpl-radius);
    transition: var(--tpl-transition);
    position: relative;
    overflow: hidden;
}

.tpl-btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: 0.5s;
}

.tpl-btn-gold:hover::before {
    left: 100%;
}

.tpl-btn-gold:hover {
    background: linear-gradient(135deg, var(--tpl-gold-light), var(--tpl-gold));
    color: var(--tpl-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
}

.tpl-btn-outline {
    background: transparent;
    color: var(--tpl-dark);
    border: 2px solid var(--tpl-dark);
    font-family: var(--tpl-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--tpl-radius);
    transition: var(--tpl-transition);
}

.tpl-btn-outline:hover {
    background: var(--tpl-dark);
    color: var(--tpl-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 42, 74, 0.25);
}

/* ---------- Section Header ---------- */
.tpl-section-header {
    margin-bottom: 2.5rem;
}

.tpl-section-header__badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--tpl-gold), var(--tpl-gold-dark));
    color: var(--tpl-white);
    font-family: var(--tpl-font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 0.35rem 1.25rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.tpl-section-header__title {
    font-size: 2rem;
    color: var(--tpl-dark);
    margin-bottom: 0;
    position: relative;
    display: inline-block;
}

.tpl-section-header__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--tpl-celeste), var(--tpl-gold));
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* ---------- Hero Banner ---------- */
.tpl-hero {
    position: relative;
    background: linear-gradient(160deg, var(--tpl-dark-3) 0%, var(--tpl-dark) 40%, var(--tpl-dark-2) 100%);
    background-size: cover;
    background-position: center;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* When a background image is set via Customizer */
.tpl-hero--has-bg {
    background-size: cover;
    background-position: center center;
}

.tpl-hero--has-bg .tpl-hero__overlay {
    background: linear-gradient(
        to right,
        rgba(15, 27, 51, 0.92) 0%,
        rgba(15, 27, 51, 0.85) 35%,
        rgba(27, 42, 74, 0.6) 65%,
        rgba(27, 42, 74, 0.45) 100%
    );
}

/* Default (no image): decorative gradient */
.tpl-hero--default .tpl-hero__overlay {
    background:
        linear-gradient(160deg, rgba(15, 27, 51, 0.97) 0%, rgba(27, 42, 74, 0.85) 50%, rgba(36, 53, 88, 0.9) 100%);
}

.tpl-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Flag stripes (celeste top & bottom) */
.tpl-hero__stripe {
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    z-index: 3;
}

.tpl-hero__stripe--top {
    top: 0;
    background: linear-gradient(90deg, var(--tpl-celeste) 0%, var(--tpl-celeste-light) 50%, var(--tpl-celeste) 100%);
}

.tpl-hero__stripe--bottom {
    bottom: 0;
    background: linear-gradient(90deg, var(--tpl-gold) 0%, var(--tpl-gold-light) 50%, var(--tpl-gold) 100%);
}

/* Decorative glow elements */
.tpl-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.tpl-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(116, 172, 223, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.tpl-hero__content {
    position: relative;
    z-index: 4;
    padding: 4rem 0;
}

.tpl-hero__badge {
    background: rgba(212, 168, 67, 0.15);
    color: var(--tpl-gold-light);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(212, 168, 67, 0.25);
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.tpl-hero__title {
    color: var(--tpl-white);
    line-height: 1.05;
    font-size: 3.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
}

.tpl-hero__subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 480px;
    line-height: 1.7;
}

/* Trust badges under CTA */
.tpl-hero__trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tpl-hero__trust-item {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tpl-hero__trust-item i {
    color: var(--tpl-gold);
    font-size: 0.9rem;
}

.min-vh-50 {
    min-height: 560px;
}

.tpl-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tpl-hero__actions .btn {
    padding: 0.75rem 2rem;
}

/* ---------- Category Cards ---------- */
.tpl-categories {
    background: var(--tpl-white);
}

.tpl-cat-card {
    display: block;
    text-decoration: none;
}

.tpl-cat-card__inner {
    position: relative;
    border-radius: var(--tpl-radius-xl);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--tpl-dark);
    box-shadow: var(--tpl-shadow);
    transition: var(--tpl-transition-slow);
}

.tpl-cat-card:hover .tpl-cat-card__inner {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--tpl-shadow-lg);
}

.tpl-cat-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: var(--tpl-transition-slow);
}

.tpl-cat-card:hover .tpl-cat-card__img {
    opacity: 0.4;
    transform: scale(1.1);
}

.tpl-cat-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--tpl-celeste), var(--tpl-celeste-dark));
    font-size: 3rem;
    color: var(--tpl-white);
    opacity: 0.8;
}

.tpl-cat-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.25rem 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.tpl-cat-card__name {
    color: var(--tpl-white);
    font-family: var(--tpl-font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tpl-cat-card__count {
    color: var(--tpl-gold-light);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ---------- Product Cards ---------- */
.tpl-product-card {
    background: var(--tpl-white);
    border-radius: var(--tpl-radius-xl);
    overflow: hidden;
    box-shadow: var(--tpl-shadow-sm);
    border: 1px solid var(--tpl-border);
    transition: var(--tpl-transition-slow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tpl-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tpl-shadow-hover);
    border-color: transparent;
}

.tpl-product-card__img-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--tpl-white);
    border-bottom: 1px solid var(--tpl-border);
}

.tpl-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.25rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tpl-product-card:hover .tpl-product-card__img {
    transform: scale(1.08);
}

.tpl-product-card__badge-sale {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--tpl-danger);
    color: var(--tpl-white);
    font-family: var(--tpl-font-heading);
    font-weight: 800;
    font-size: 0.65rem;
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.tpl-product-card__badge-featured {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--tpl-gold);
    color: var(--tpl-white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.4);
}

.tpl-product-card__body {
    padding: 1.1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tpl-product-card__cat {
    color: var(--tpl-text-muted);
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tpl-product-card__cat a {
    color: var(--tpl-text-muted);
}

.tpl-product-card__title {
    font-family: var(--tpl-font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tpl-product-card__title a {
    color: var(--tpl-dark);
}

.tpl-product-card__title a:hover {
    color: var(--tpl-celeste-dark);
}

.tpl-product-card__price {
    font-family: var(--tpl-font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--tpl-dark);
    margin-bottom: 0.75rem;
    margin-top: auto;
}

.tpl-product-card__price del {
    color: var(--tpl-text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.tpl-product-card__price ins {
    text-decoration: none;
    color: var(--tpl-success);
}

/* ---------- Mid Banner / Quote ---------- */
.tpl-mid-banner {
    background: linear-gradient(160deg, var(--tpl-dark-3) 0%, var(--tpl-dark) 50%, var(--tpl-dark-2) 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.tpl-mid-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.tpl-mid-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(116, 172, 223, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.tpl-mid-banner__content {
    position: relative;
    z-index: 1;
}

.tpl-mid-banner__quote {
    color: var(--tpl-white);
    font-size: 2.2rem;
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto;
}

.tpl-mid-banner__quote::before {
    content: '\201C';
    display: block;
    font-size: 4rem;
    color: var(--tpl-gold);
    line-height: 0.5;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.tpl-mid-banner__author {
    color: var(--tpl-gold);
    font-family: var(--tpl-font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ---------- CTA Section ---------- */
.tpl-cta {
    background: var(--tpl-white);
}

.tpl-cta__box {
    background: linear-gradient(135deg, var(--tpl-celeste) 0%, var(--tpl-celeste-dark) 100%);
    color: var(--tpl-white);
    position: relative;
    overflow: hidden;
    border-radius: var(--tpl-radius-xl) !important;
}

.tpl-cta__box::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.tpl-cta__box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.tpl-cta__icon {
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Shop Page ---------- */
.tpl-shop {
    background: var(--tpl-light);
}

.tpl-shop__sidebar {
    position: sticky;
    top: 90px;
    background: var(--tpl-white);
    border-radius: var(--tpl-radius-xl);
    padding: 1.5rem;
    box-shadow: var(--tpl-shadow-sm);
    border: 1px solid var(--tpl-border);
}

.tpl-filter-group__title {
    font-family: var(--tpl-font-heading);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tpl-dark);
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--tpl-gold);
    margin-bottom: 0.75rem;
}

.tpl-filter-group__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.5rem;
    color: var(--tpl-text);
    font-size: 0.88rem;
    transition: var(--tpl-transition);
    border-radius: var(--tpl-radius);
}

.tpl-filter-group__link:hover,
.tpl-filter-group__link.active {
    color: var(--tpl-celeste-dark);
    background: var(--tpl-celeste-bg);
    padding-left: 0.75rem;
}

.tpl-filter-group__count {
    background: var(--tpl-light);
    color: var(--tpl-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 2rem;
    min-width: 28px;
    text-align: center;
}

.tpl-shop__ordering .orderby {
    border: 2px solid var(--tpl-border);
    border-radius: var(--tpl-radius);
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-family: var(--tpl-font-body);
    background: var(--tpl-white);
}

/* Shop pagination */
.tpl-shop__pagination .page-numbers {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.tpl-shop__pagination .page-numbers li {
    list-style: none;
}

.tpl-shop__pagination .page-numbers a,
.tpl-shop__pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--tpl-radius);
    font-family: var(--tpl-font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    transition: var(--tpl-transition);
    text-decoration: none;
}

.tpl-shop__pagination .page-numbers a {
    background: var(--tpl-white);
    color: var(--tpl-dark);
    border: 1px solid var(--tpl-border);
}

.tpl-shop__pagination .page-numbers a:hover {
    background: var(--tpl-celeste);
    color: var(--tpl-white);
    border-color: var(--tpl-celeste);
    transform: translateY(-2px);
}

.tpl-shop__pagination .page-numbers .current {
    background: var(--tpl-dark);
    color: var(--tpl-white);
    border: 1px solid var(--tpl-dark);
}

/* ---------- Single Product ---------- */
.tpl-single-product {
    background: var(--tpl-white);
}

.tpl-product-gallery__main {
    background: var(--tpl-light);
    border-radius: var(--tpl-radius-xl);
    overflow: hidden;
    border: 1px solid var(--tpl-border);
}

.tpl-product-gallery__img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    padding: 1rem;
}

.tpl-product-gallery__thumb {
    width: 70px;
    height: 70px;
    padding: 0;
    border: 2px solid var(--tpl-border);
    border-radius: var(--tpl-radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--tpl-light);
    transition: var(--tpl-transition);
}

.tpl-product-gallery__thumb.active,
.tpl-product-gallery__thumb:hover {
    border-color: var(--tpl-celeste);
    box-shadow: 0 0 0 2px rgba(116, 172, 223, 0.2);
}

.tpl-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tpl-product-info__cat {
    font-size: 0.82rem;
    color: var(--tpl-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tpl-product-info__cat a {
    color: var(--tpl-celeste-dark);
    font-weight: 600;
}

.tpl-product-info__title {
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--tpl-dark);
}

.tpl-product-info__price {
    font-family: var(--tpl-font-heading);
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--tpl-dark);
}

.tpl-product-info__price del {
    color: var(--tpl-text-muted);
    font-size: 1.2rem;
    font-weight: 400;
}

.tpl-product-info__price ins {
    text-decoration: none;
    color: var(--tpl-success);
}

.tpl-product-info__short-desc {
    color: var(--tpl-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.tpl-product-info__buy .btn {
    font-size: 1rem;
    letter-spacing: 1.5px;
}

.tpl-feature-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem;
    background: var(--tpl-light);
    border-radius: var(--tpl-radius);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tpl-dark);
    border: 1px solid var(--tpl-border);
    transition: var(--tpl-transition);
}

.tpl-feature-box:hover {
    background: var(--tpl-celeste-bg);
    border-color: var(--tpl-celeste-light);
}

.tpl-feature-box i {
    font-size: 1.15rem;
    color: var(--tpl-celeste);
}

.tpl-product-description {
    line-height: 1.8;
    color: var(--tpl-text);
}

.tpl-product-description img {
    border-radius: var(--tpl-radius);
    margin: 1rem 0;
}

/* ---------- WooCommerce Breadcrumb Override ---------- */
.woocommerce .breadcrumb {
    font-size: 0.82rem;
    background: none;
    padding: 0;
}

.woocommerce .breadcrumb-item + .breadcrumb-item::before {
    content: '\F285';
    font-family: 'bootstrap-icons';
    font-size: 0.65rem;
}

.woocommerce .breadcrumb-item a {
    color: var(--tpl-text-muted);
}

.woocommerce .breadcrumb-item.active,
.woocommerce .breadcrumb-item:last-child {
    color: var(--tpl-dark);
    font-weight: 600;
}

/* ---------- WooCommerce Price ---------- */
.woocommerce .price .amount {
    font-family: var(--tpl-font-heading);
}

/* ---------- Footer ---------- */
.tpl-footer__main {
    background: linear-gradient(180deg, var(--tpl-dark) 0%, var(--tpl-dark-3) 100%);
    padding: 3.5rem 0 2.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.tpl-footer__logo img,
.tpl-footer__logo .custom-logo {
    max-height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.tpl-footer__title {
    color: var(--tpl-white);
    font-family: var(--tpl-font-heading);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.tpl-footer__desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    line-height: 1.7;
}

.tpl-footer__social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.tpl-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border-radius: var(--tpl-radius);
    font-size: 1rem;
    transition: var(--tpl-transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tpl-footer__social-link:hover {
    background: var(--tpl-gold);
    color: var(--tpl-white);
    border-color: var(--tpl-gold);
    transform: translateY(-3px);
}

.tpl-footer__main h6,
.tpl-footer__main .widget-title {
    color: var(--tpl-white);
    font-family: var(--tpl-font-heading);
    font-size: 0.82rem;
    letter-spacing: 1.5px;
}

.tpl-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tpl-footer__links li {
    margin-bottom: 0.5rem;
}

.tpl-footer__links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    transition: var(--tpl-transition);
    display: inline-flex;
    align-items: center;
}

.tpl-footer__links a:hover {
    color: var(--tpl-gold);
    transform: translateX(3px);
}

.tpl-footer__contact li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
}

.tpl-footer__contact i {
    color: var(--tpl-gold);
    font-size: 0.9rem;
}

.tpl-footer__bottom {
    background: var(--tpl-dark-3);
    padding: 1rem 0;
    font-size: 0.78rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tpl-footer__bottom,
.tpl-footer__bottom p {
    color: rgba(255, 255, 255, 0.4);
}

.tpl-footer__disclaimer {
    font-size: 0.72rem;
}

/* ---------- No Results ---------- */
.tpl-no-results {
    padding: 5rem 0;
}

.tpl-no-results i {
    opacity: 0.3;
}

/* ---------- 404 ---------- */
.tpl-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpl-404__code {
    font-family: var(--tpl-font-heading);
    font-weight: 900;
    font-size: 9rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--tpl-celeste), var(--tpl-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Sidebar Widgets ---------- */
.widget {
    background: var(--tpl-white);
    border-radius: var(--tpl-radius-xl);
    padding: 1.5rem;
    box-shadow: var(--tpl-shadow-sm);
    border: 1px solid var(--tpl-border);
}

.widget-title {
    font-family: var(--tpl-font-heading);
    color: var(--tpl-dark);
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--tpl-gold), var(--tpl-gold-light));
    border-radius: 2px;
}

/* ---------- Sidebar Trust ---------- */
.tpl-sidebar-trust p {
    line-height: 1.5;
}

/* ---------- Featured products section bg ---------- */
.tpl-featured-products {
    background: var(--tpl-light) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .tpl-hero {
        min-height: 420px;
    }

    .tpl-hero__title {
        font-size: 2.5rem;
    }

    .min-vh-50 {
        min-height: 420px;
    }

    .tpl-mid-banner__quote {
        font-size: 1.6rem;
    }

    .tpl-section-header__title {
        font-size: 1.6rem;
    }

    .tpl-product-info__title {
        font-size: 1.4rem;
    }

    .tpl-product-info__price {
        font-size: 1.75rem;
    }

    .tpl-navbar__search .form-control {
        min-width: auto;
    }
}

@media (max-width: 575.98px) {
    .tpl-hero {
        min-height: 380px;
    }

    .tpl-hero__title {
        font-size: 2rem;
    }

    .tpl-hero__content {
        padding: 2.5rem 0;
    }

    .tpl-hero__subtitle {
        font-size: 0.92rem;
    }

    .tpl-hero__actions {
        flex-direction: column;
    }

    .tpl-hero__actions .btn {
        width: 100%;
    }

    .tpl-product-card__body {
        padding: 0.85rem;
    }

    .tpl-product-card__title {
        font-size: 0.8rem;
    }

    .tpl-product-card__price {
        font-size: 1.05rem;
    }

    .tpl-mid-banner {
        padding: 3rem 0;
    }

    .tpl-mid-banner__quote {
        font-size: 1.3rem;
    }

    .tpl-404__code {
        font-size: 5rem;
    }

    .tpl-section-header__title {
        font-size: 1.35rem;
    }

    .tpl-footer__main {
        text-align: center;
    }

    .tpl-footer__social {
        justify-content: center;
    }
}

/* ---------- Utility: Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--tpl-light);
}

::-webkit-scrollbar-thumb {
    background: var(--tpl-celeste);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tpl-celeste-dark);
}

/* ---------- WooCommerce result count & ordering ---------- */
.woocommerce-result-count {
    margin: 0;
    font-size: 0.82rem;
    color: var(--tpl-text-muted);
}

.woocommerce-ordering {
    margin: 0;
}

/* ---------- Offcanvas filters ---------- */
.offcanvas {
    max-width: 320px;
}

.offcanvas-title {
    font-family: var(--tpl-font-heading);
}

/* ---------- Nav tabs override ---------- */
.nav-tabs .nav-link {
    color: var(--tpl-text-muted);
    font-family: var(--tpl-font-heading);
    font-size: 0.9rem;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.25rem;
}

.nav-tabs .nav-link.active {
    color: var(--tpl-dark);
    border-bottom-color: var(--tpl-gold);
    background: none;
}

/* ---------- Loading animation stagger ---------- */
@media (prefers-reduced-motion: no-preference) {
    .row > [class*="col-"]:nth-child(1) .tpl-product-card,
    .row > [class*="col-"]:nth-child(1) .tpl-cat-card__inner { animation-delay: 0s; }
    .row > [class*="col-"]:nth-child(2) .tpl-product-card,
    .row > [class*="col-"]:nth-child(2) .tpl-cat-card__inner { animation-delay: 0.05s; }
    .row > [class*="col-"]:nth-child(3) .tpl-product-card,
    .row > [class*="col-"]:nth-child(3) .tpl-cat-card__inner { animation-delay: 0.1s; }
    .row > [class*="col-"]:nth-child(4) .tpl-product-card,
    .row > [class*="col-"]:nth-child(4) .tpl-cat-card__inner { animation-delay: 0.15s; }
    .row > [class*="col-"]:nth-child(5) .tpl-product-card { animation-delay: 0.2s; }
    .row > [class*="col-"]:nth-child(6) .tpl-product-card { animation-delay: 0.25s; }
    .row > [class*="col-"]:nth-child(7) .tpl-product-card { animation-delay: 0.3s; }
    .row > [class*="col-"]:nth-child(8) .tpl-product-card { animation-delay: 0.35s; }
}
