/* Kairos de Oración - Estilos principales */

:root {
    --primary: #4a3b2b;
    --secondary: #8b7355;
    --accent: #c9a87c;
    --light: #f8f4e9;
    --dark: #2c2420;
    --text: #4a4a4a;
    --success: #2e6b4c;
    --error: #9e2b2b;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    background: var(--light);
}

h1, h2, h3 {
    font-family: 'Garamond', 'Times New Roman', serif;
    letter-spacing: 1px;
    color: var(--primary);
}

a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--primary); text-decoration: underline; }

/* Header */
.header {
    border-bottom: 2px solid var(--accent);
    background: var(--light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.logo:hover { text-decoration: none; color: var(--primary); }

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text);
}

.nav a:hover, .nav a.active { color: var(--primary); }

.cart-link { position: relative; }
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn { display: none; }

/* Main */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 60vh;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--light) 0%, rgba(201, 168, 124, 0.2) 100%);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero h1 { margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 2rem; color: var(--text); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid var(--accent);
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--primary);
}

.btn-secondary { background: var(--light); color: var(--primary); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 0.8rem 1.5rem; font-size: 1.1rem; }

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card-product {
    border: 1px solid var(--accent);
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.card-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-product img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body { padding: 1rem; }
.card-body h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.card-body .price { font-weight: bold; color: var(--primary); margin: 0; }

.card-product .btn { margin: 0 1rem 1rem; width: calc(100% - 2rem); }

/* Product detail */
.product-detail .product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-price { font-size: 1.5rem; color: var(--primary); margin: 1rem 0; }
.product-description { margin-bottom: 1.5rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 500; }
.form-group input, .form-group select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--secondary);
    border-radius: 4px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.error { color: var(--error); font-size: 0.9rem; }
.form-group small { display: block; font-size: 0.85rem; color: var(--text); }

/* Auth */
.auth-section {
    max-width: 420px;
    margin: 2rem auto;
}

.auth-card {
    background: white;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 2rem;
}

.auth-card h1 { text-align: center; margin-bottom: 1.5rem; }
.auth-form .btn { margin-top: 1rem; }
.auth-link { text-align: center; margin-top: 1rem; }

/* Cart */
.cart-section h1 { margin-bottom: 1.5rem; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 0.8rem; border-bottom: 1px solid var(--accent); text-align: left; }
.cart-footer { margin-top: 2rem; display: flex; justify-content: space-between; align-items: center; }
.cart-total { font-size: 1.2rem; }

/* Checkout */
.checkout-steps {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkout-steps .step {
    padding: 0.5rem 1rem;
    background: #e0e0e0;
    border-radius: 4px;
}

.checkout-steps .step.active { background: var(--accent); color: white; }

.checkout-form, .order-summary { max-width: 500px; margin-bottom: 2rem; }

#payment-element { margin: 1rem 0; }

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success { background: #d4edda; color: var(--success); }
.alert-error { background: #f8d7da; color: var(--error); }

/* Footer */
.footer {
    background: var(--dark);
    color: var(--light);
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer h3, .footer h4 { color: var(--accent); }
.footer a { color: var(--accent); }
.footer-bottom { text-align: center; padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* Status badges */
.status { padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.85rem; }
.status-pending { background: #ffeaa7; }
.status-processing { background: #74b9ff; }
.status-completed { background: #55efc4; }
.status-cancelled { background: #dfe6e9; }
.status-paid { background: #55efc4; }
.status-failed { background: #ff7675; }

/* Empty */
.empty-message { text-align: center; padding: 2rem; color: var(--text); }

/* Admin */
.admin-body { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px;
    background: var(--dark);
    color: var(--light);
    padding: 1rem;
}

.sidebar-logo { display: block; font-weight: bold; color: var(--accent); margin-bottom: 2rem; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-sidebar nav a {
    color: var(--light);
    padding: 0.5rem;
    border-radius: 4px;
}

.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
    background: var(--secondary);
    color: white;
}

.sidebar-back { display: block; margin-top: 2rem; color: var(--accent); font-size: 0.9rem; }

.admin-main {
    flex: 1;
    padding: 2rem;
    background: var(--light);
}

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
    background: white;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card i { font-size: 2rem; color: var(--secondary); }
.stat-card span { display: block; font-size: 2rem; font-weight: bold; color: var(--primary); }

.admin-section, .admin-card { margin-bottom: 2rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 0.8rem; border: 1px solid var(--accent); text-align: left; }
.admin-table .thumb { width: 50px; height: 50px; object-fit: cover; }
.inline-form { display: inline; }
.help { font-size: 0.9rem; color: var(--text); margin-top: 0.5rem; }

.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; }

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; }
    .mobile-menu-btn { display: block; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
    .product-detail .product-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .admin-body { flex-direction: column; }
    .admin-sidebar { width: 100%; }
}

/* ---------------------------
   Ecommerce-style refresh
---------------------------- */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f7fb;
    color: #1f2937;
}

h1, h2, h3 {
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    color: #111827;
}

a { color: #1f4fd6; }
a:hover { color: #173fb0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid #dbe2ef;
}

.utility-bar {
    background: #0f172a;
    color: #dbeafe;
    font-size: 0.85rem;
}

.utility-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.45rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.utility-inner p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.utility-links {
    display: flex;
    gap: 1rem;
}

.utility-links a {
    color: #e5e7eb;
    text-decoration: none;
}

.header-main {
    border-bottom: 1px solid #e5e7eb;
}

.header-main-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    display: grid;
    grid-template-columns: 220px 1fr auto auto;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.65rem;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
}

.logo span {
    color: #1f4fd6;
}

.header-search {
    position: relative;
    display: flex;
}

.header-search input {
    width: 100%;
    border: 1px solid #cad4e3;
    border-radius: 10px;
    padding: 0.72rem 2.8rem 0.72rem 0.9rem;
    font-size: 0.95rem;
}

.header-search button {
    position: absolute;
    right: 0.25rem;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 38px;
    border: 0;
    border-radius: 8px;
    background: #1f4fd6;
    color: #fff;
    cursor: pointer;
}

.cart-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
    border: 1px solid #d1d9e6;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
}

.cart-quick-link .cart-count {
    position: static;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: #1f4fd6;
}

.header-nav-wrap {
    background: #fff;
}

.header-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 1rem;
}

.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.25rem;
}

.nav a {
    display: inline-block;
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    padding: 0.45rem 0;
}

.nav a.active,
.nav a:hover {
    color: #1f4fd6;
}

.mobile-menu-btn {
    display: none;
    border: 1px solid #d1d9e6;
    background: #fff;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.4rem 1rem 2.5rem;
}

.hero-modern {
    margin-top: 0.6rem;
    background: linear-gradient(110deg, #eef4ff 0%, #ffffff 55%);
    border: 1px solid #d8e2f1;
    border-radius: 14px;
    text-align: left;
    padding: 2.2rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
}

.hero-kicker {
    margin: 0 0 0.65rem;
    color: #1f4fd6;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.hero-content-modern h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
}

.hero-subtitle {
    margin: 0.9rem 0 1.4rem;
    color: #475569;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-aside-card {
    background: #111827;
    color: #f3f4f6;
    border-radius: 12px;
    padding: 1.2rem;
}

.hero-aside-card h3 {
    color: #fff;
    margin-top: 0;
}

.hero-aside-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.hero-aside-card li {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.home-categories,
.featured-products {
    margin-top: 2rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-head h2 {
    margin: 0;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.category-card {
    display: block;
    background: #fff;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    padding: 1.1rem;
    text-decoration: none;
    color: #1f2937;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.category-card i {
    font-size: 1.2rem;
    color: #1f4fd6;
}

.category-card h3 {
    margin: 0.65rem 0 0.35rem;
    font-size: 1rem;
}

.category-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.card-product {
    border: 1px solid #d9e2ef;
}

.card-body h3 {
    font-size: 1rem;
    color: #111827;
}

.card-body .price {
    color: #111827;
    font-size: 1.05rem;
}

.btn {
    border-radius: 10px;
    font-weight: 700;
}

.btn-primary {
    background: #1f4fd6;
    border-color: #1f4fd6;
}

.btn-primary:hover {
    background: #173fb0;
    border-color: #173fb0;
}

.btn-secondary {
    background: #fff;
    border-color: #ccd7e7;
    color: #1f4fd6;
}

.trust-strip {
    margin-top: 2rem;
    background: #fff;
    border: 1px solid #dbe2ef;
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.trust-strip article {
    padding: 0.6rem 0.7rem;
}

.trust-strip i {
    color: #1f4fd6;
    font-size: 1.2rem;
}

.trust-strip h3 {
    margin: 0.6rem 0 0.3rem;
    font-size: 1rem;
}

.trust-strip p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.footer {
    margin-top: 2.5rem;
    background: #0f172a;
    color: #e5e7eb;
}

.footer-top-strip {
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.footer-top-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.footer-top-strip article {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.footer-top-strip i {
    color: #93c5fd;
    font-size: 1.15rem;
}

.footer-top-strip h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #f8fafc;
}

.footer-top-strip p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.83rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.7rem 1rem;
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 1.2rem;
}

.footer h3,
.footer h4 {
    color: #fff;
    margin-top: 0;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

@media (max-width: 980px) {
    .header-main-inner {
        grid-template-columns: 180px 1fr auto auto;
    }
    .category-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .utility-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-main-inner {
        grid-template-columns: 1fr auto auto;
    }
    .header-search {
        grid-column: 1 / -1;
        order: 3;
    }
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .nav {
        display: none;
    }
    .nav.open {
        display: block;
    }
    .nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.4rem 0;
    }
    .hero-modern {
        grid-template-columns: 1fr;
        padding: 1.4rem;
    }
    .hero-content-modern h1 {
        font-size: 1.65rem;
    }
    .category-cards,
    .trust-strip,
    .footer-top-strip-inner,
    .footer-container {
        grid-template-columns: 1fr;
    }
    .cart-quick-link span {
        display: none;
    }
}

/* Shop experience refresh */
.shop-hero {
    background: #fff;
    border: 1px solid #dbe2ef;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.shop-hero h1 {
    margin: 0;
}

.shop-hero p {
    margin: 0.3rem 0 0;
    color: #64748b;
}

.shop-hero-kicker {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: #1f4fd6;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
}

.shop-sidebar {
    background: #fff;
    border: 1px solid #dbe2ef;
    border-radius: 12px;
    padding: 1rem;
    align-self: start;
    position: sticky;
    top: 132px;
}

.shop-sidebar h3 {
    margin-top: 0;
}

.shop-sidebar .form-group {
    margin-bottom: 0.8rem;
}

.shop-help-card {
    margin-top: 1rem;
    border: 1px dashed #b5c7e5;
    background: #f8fbff;
    border-radius: 10px;
    padding: 0.8rem;
}

.shop-help-card h4 {
    margin: 0;
    font-size: 0.95rem;
}

.shop-help-card p {
    margin-bottom: 0;
    font-size: 0.88rem;
    color: #64748b;
}

.shop-results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
}

.shop-results-head p {
    margin: 0;
    font-weight: 600;
}

.product-badge {
    margin: 0 0 0.5rem;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #1240b5;
    background: #eaf1ff;
}

.price-hint {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

/* Product detail polish */
.product-detail {
    background: #fff;
    border: 1px solid #dbe2ef;
    border-radius: 14px;
    padding: 1.2rem;
}

.product-detail .product-layout {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
}

.product-image {
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
}

.product-meta-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.product-meta-grid article {
    border: 1px solid #dbe2ef;
    background: #f8fbff;
    border-radius: 10px;
    padding: 0.7rem;
}

.product-meta-grid h4 {
    margin: 0;
    font-size: 0.85rem;
}

.product-meta-grid p {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

/* Cart card */
.cart-content-card {
    background: #fff;
    border: 1px solid #dbe2ef;
    border-radius: 12px;
    padding: 0.9rem;
}

@media (max-width: 980px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .shop-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* Home visual modules */
.promo-ribbon {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.promo-ribbon div {
    background: #eaf1ff;
    border: 1px solid #d1def8;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    font-size: 0.86rem;
    color: #173066;
}

.home-banner-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 220px 220px;
    gap: 0.8rem;
}

.home-banner {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #dbe2ef;
    display: block;
    color: #fff;
    text-decoration: none;
}

.home-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.75);
}

.home-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.65));
}

.home-banner-lg {
    grid-row: span 2;
}

.home-banner-content {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1;
}

.home-banner-content p {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    opacity: 0.95;
}

.home-banner-content h3 {
    margin: 0.35rem 0;
    color: #fff;
    font-size: 1.2rem;
}

.home-banner-content span {
    font-size: 0.85rem;
    font-weight: 700;
}

.popular-products {
    margin-top: 2rem;
}

.product-grid-compact .card-product .btn {
    display: none;
}

.testimonial-section,
.faq-section {
    margin-top: 2rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #dbe2ef;
    border-radius: 12px;
    padding: 1rem;
}

.testimonial-card p {
    margin: 0 0 0.9rem;
    color: #334155;
}

.testimonial-card h4 {
    margin: 0;
    color: #1f4fd6;
    font-size: 0.92rem;
}

.faq-list {
    display: grid;
    gap: 0.6rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #dbe2ef;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
}

.faq-item p {
    margin: 0.6rem 0 0.2rem;
    color: #475569;
}

.newsletter-strip {
    margin-top: 2rem;
    background: #111827;
    color: #e5e7eb;
    border-radius: 12px;
    padding: 1.1rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1rem;
    align-items: center;
}

.newsletter-strip h3 {
    color: #fff;
    margin: 0 0 0.45rem;
}

.newsletter-strip p {
    margin: 0;
    color: #cbd5e1;
}

.newsletter-form {
    display: flex;
    gap: 0.55rem;
}

.newsletter-form input {
    flex: 1;
    border: 1px solid #364152;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    background: #0b1220;
    color: #fff;
}

@media (max-width: 980px) {
    .home-banner-grid {
        grid-template-rows: 190px 190px;
    }
    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }
    .newsletter-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .promo-ribbon,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .home-banner-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 200px);
    }
    .home-banner-lg {
        grid-row: span 1;
    }
    .newsletter-form {
        flex-direction: column;
    }
}

/* Mega menu */
.mega-item {
    position: relative;
}

.mega-trigger {
    border: 0;
    background: transparent;
    color: #374151;
    font-weight: 600;
    padding: 0.45rem 0;
    cursor: pointer;
    font-size: 0.95rem;
}

.mega-trigger i {
    margin-left: 0.35rem;
    font-size: 0.76rem;
}

.mega-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: min(760px, 90vw);
    background: #fff;
    border: 1px solid #dbe2ef;
    box-shadow: 0 24px 35px rgba(15, 23, 42, 0.15);
    border-radius: 12px;
    padding: 1rem;
    display: none;
    gap: 1rem;
    z-index: 20;
}

.mega-item:hover .mega-menu,
.mega-item.open .mega-menu {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
}

.mega-col h4 {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
}

.mega-col a {
    display: block;
    padding: 0.35rem 0;
    color: #334155;
    font-weight: 500;
}

.mega-col a:hover {
    color: #1f4fd6;
}

.mega-promo {
    background: #eff6ff;
    border: 1px solid #cfe0ff;
    border-radius: 10px;
    padding: 0.9rem;
}

.mega-kicker {
    margin: 0;
    font-size: 0.74rem;
    text-transform: uppercase;
    color: #1d4ed8;
    font-weight: 700;
}

.mega-promo h4 {
    margin: 0.4rem 0;
}

.mega-promo p {
    margin-top: 0;
    color: #475569;
}

/* Brands strip */
.brands-strip {
    margin-top: 2rem;
    background: #fff;
    border: 1px solid #dbe2ef;
    border-radius: 12px;
    padding: 1rem;
}

.brand-logo-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.brand-logo {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.55rem;
    text-align: center;
    font-weight: 700;
    color: #334155;
    background: #f8fafc;
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .brand-logo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .mega-item {
        width: 100%;
    }
    .mega-trigger {
        padding: 0.55rem 0;
    }
    .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 0.4rem;
    }
    .mega-item:hover .mega-menu,
    .mega-item.open .mega-menu {
        grid-template-columns: 1fr;
    }
    .brand-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Carousel + quick view + volume table */
.banner-carousel {
    margin-top: 1rem;
}

.carousel-track {
    position: relative;
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dbe2ef;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    color: #fff;
}

.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.72);
}

.carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.7));
}

.carousel-slide-content {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 1;
}

.carousel-slide-content p {
    margin: 0;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.carousel-slide-content h3 {
    margin: 0.45rem 0;
    color: #fff;
    font-size: 1.55rem;
}

.carousel-slide-content span {
    font-size: 0.9rem;
    font-weight: 700;
}

.carousel-dots {
    margin-top: 0.7rem;
    display: flex;
    justify-content: center;
    gap: 0.45rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: #cbd5e1;
    cursor: pointer;
}

.carousel-dot.is-active {
    background: #1f4fd6;
}

.card-product .quick-view-btn {
    margin-top: 0;
    margin-bottom: 1rem;
}

.product-grid-compact .quick-view-btn {
    display: block;
}

.quick-view-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.quick-view-modal.open {
    display: block;
}

.quick-view-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.quick-view-dialog {
    position: relative;
    width: min(860px, 92vw);
    margin: 6vh auto 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dbe2ef;
    padding: 1rem;
}

.quick-view-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    border: 1px solid #d1d9e6;
    background: #fff;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.quick-view-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1rem;
}

.quick-view-layout img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #dbe2ef;
}

.quick-view-content h3 {
    margin-top: 0;
}

.quick-view-price {
    margin: 0.3rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.volume-pricing {
    margin-top: 1rem;
    border: 1px solid #dbe2ef;
    border-radius: 10px;
    padding: 0.8rem;
    background: #fff;
}

.volume-pricing h3 {
    margin: 0 0 0.7rem;
    font-size: 1rem;
}

.volume-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.volume-pricing-table th,
.volume-pricing-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.5rem 0.4rem;
    text-align: left;
}

@media (max-width: 768px) {
    .carousel-track {
        min-height: 250px;
    }
    .carousel-slide-content h3 {
        font-size: 1.15rem;
    }
    .quick-view-layout {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------
   Discount-style inspired visual theme override
------------------------------------------------- */
:root {
    --dm-blue-900: #4ea6f5;
    --dm-blue-700: #67b7fb;
    --dm-blue-600: #8acbff;
    --dm-blue-100: #f2f9ff;
    --dm-orange-500: #ff7a00;
    --dm-orange-600: #e66c00;
    --dm-text-900: #111827;
    --dm-text-700: #374151;
    --dm-border: #d6deea;
    --dm-surface: #ffffff;
    --dm-bg: #f4f7fb;
}

html, body {
    font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    background: var(--dm-bg);
    color: var(--dm-text-700);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--dm-text-900);
    font-weight: 800;
    line-height: 1.2;
}

.site-header {
    border-bottom: 1px solid var(--dm-border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.utility-bar {
    background: var(--dm-blue-900);
}

.header-main,
.header-nav-wrap {
    background: #fff;
}

.logo {
    color: var(--dm-text-900);
    font-size: 1.75rem;
    font-weight: 900;
}

.logo span {
    color: var(--dm-orange-500);
}

.header-search input {
    border: 1px solid var(--dm-border);
    border-radius: 999px;
    min-height: 44px;
    font-size: 0.95rem;
}

.header-search button {
    border-radius: 999px;
    background: var(--dm-blue-600);
}

.header-search button:hover {
    background: var(--dm-blue-700);
}

.nav a,
.mega-trigger {
    font-size: 0.93rem;
    font-weight: 700;
}

.nav a.active,
.nav a:hover,
.mega-trigger:hover {
    color: var(--dm-blue-600);
}

.main-content {
    max-width: 1240px;
}

.promo-ribbon div {
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--dm-border);
    color: var(--dm-blue-900);
    font-weight: 600;
}

.hero-modern {
    background: linear-gradient(120deg, #f0f6ff 0%, #ffffff 65%);
    border: 1px solid var(--dm-border);
    border-radius: 18px;
}

.hero-content-modern h1 {
    font-size: clamp(1.8rem, 2.7vw, 2.7rem);
    letter-spacing: -0.02em;
}

.hero-kicker {
    color: var(--dm-orange-500);
    font-weight: 800;
}

.hero-aside-card {
    background: linear-gradient(145deg, #5ab0fb, #8dd0ff);
    border-radius: 16px;
}

.section-head h2 {
    font-size: clamp(1.25rem, 1.9vw, 1.7rem);
}

.section-head a {
    color: var(--dm-blue-600);
    font-weight: 700;
}

.category-card,
.card-product,
.shop-sidebar,
.product-detail,
.brands-strip,
.testimonial-card,
.faq-item,
.cart-content-card {
    border: 1px solid var(--dm-border);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    background: var(--dm-surface);
}

.card-product:hover,
.category-card:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.product-badge {
    background: #fff2e6;
    color: var(--dm-orange-600);
    font-weight: 800;
}

.card-body h3 {
    font-size: 1.02rem;
    line-height: 1.35;
}

.card-body .price,
.product-price,
.quick-view-price {
    color: var(--dm-blue-900);
    font-weight: 800;
}

.btn {
    border-radius: 999px;
    min-height: 42px;
    padding: 0.58rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 800;
}

.btn-primary {
    background: var(--dm-blue-700);
    border-color: var(--dm-blue-700);
    color: #fff;
}

.btn-primary:hover {
    background: var(--dm-blue-900);
    border-color: var(--dm-blue-900);
}

.btn-secondary {
    background: #fff;
    border-color: var(--dm-border);
    color: var(--dm-blue-600);
}

.btn-secondary:hover {
    border-color: var(--dm-blue-600);
    color: var(--dm-blue-700);
}

.carousel-track,
.home-banner,
.quick-view-dialog,
.newsletter-strip,
.mega-menu {
    border-radius: 14px;
}

.carousel-dot.is-active {
    background: var(--dm-orange-500);
}

.mega-promo {
    background: #fff3e8;
    border-color: #ffd9b3;
}

.mega-kicker {
    color: var(--dm-orange-600);
}

.trust-strip i,
.brand-logo,
.testimonial-card h4 {
    color: var(--dm-blue-600);
}

.newsletter-strip {
    background: linear-gradient(120deg, #67b7fb, #9ed9ff);
}

.newsletter-form input {
    border-radius: 999px;
    background: #fff;
    color: var(--dm-text-900);
}

.footer {
    background: #5ab0fb;
}

.footer-top-strip i {
    color: #ffb26b;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}
