/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BASE ===== */
body {
    font-family: 'Inter', sans-serif;
    background: #f5f5f7;
    color: #1f2937;
}

/* ===== NAVBAR ===== */
/* .navbar {
    background: #0f172a;
    color: white;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
} */

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
}

.navbar a:hover {
    opacity: 0.7;
}

.search-box {
    display: flex;
    gap: 8px;
}

.search-box input {
    padding: 8px 14px;
    border-radius: 20px;
    border: none;
    width: 220px;
}

.search-box button {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: white;
    cursor: pointer;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

/* ===== HERO ===== */
.hero {
    margin-top: 30px;
    min-height: 520px;
    border-radius: 26px;

    background:
        linear-gradient(
            to right,
            rgba(17, 24, 39, 0.85),
            rgba(17, 24, 39, 0.35),
            rgba(124, 58, 237, 0.15)
        ),
        url("/static/images/hero.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* PARALLAX */
    background-attachment: fixed;

    color: white;
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 500px;
    margin-bottom: 25px;
}

/* ===== BOTÓN ===== */
.btn-primary {
    background: white;
    color: #111827;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #e5e7eb;
}

/* ===== SECCIONES ===== */
.section {
    margin-top: 40px;
}

.section h2 {
    margin-bottom: 20px;
}

/* ===== CATEGORÍAS ===== */
.categories {
    display: flex;
    gap: 20px;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    flex: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ===== PRODUCTOS (CATÁLOGO) ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 20px;
}

.product-card {
    background: white;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    transition: 0.25s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

.product-card h3 {
    margin-bottom: 6px;
}

.product-card .price {
    font-weight: bold;
    margin-top: 8px;
}

/* ===== PRODUCT DETAIL FIX ===== */
.product-detail {
    width: min(92%, 1200px);
    margin: 40px auto;
    display: grid;
    grid-template-columns: 52% 48%;
    gap: 34px;
    align-items: start;
}

.product-main-image {
    grid-column: 2;
    grid-row: 1;
}

.product-thumbs {
    grid-column: 1;
    grid-row: 1;
}

.product-gallery {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    align-items: start;
}

.product-thumbs {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-thumbs img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 14px;
    background: white;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.product-main-image {
    width: 100%;
    height: 500px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-info {
    background: white;
    padding: 36px;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.07);
    position: sticky;
    top: 110px;
}

.product-category {
    color: #8b5cf6;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 14px;
    margin-bottom: 18px;
}

.product-info h1 {
    font-size: clamp(34px, 3vw, 48px);
    line-height: .95;
    margin-bottom: 20px;
}

.product-price {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
}

.product-description {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 28px;
}

.product-actions label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
}

.qty-box {
    width: fit-content;
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 6px;
    margin-bottom: 20px;
}

.qty-box button {
    width: 38px;
    height: 38px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.qty-box input {
    width: 56px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
}

.btn-add-cart,
.btn-buy-now {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 18px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 14px;
}

.btn-add-cart {
    background: #111827;
    color: white;
}

.btn-buy-now {
    background: #8b5cf6;
    color: white;
}

@media (max-width: 1000px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .product-thumbs {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
    }

    .product-main-image {
        height: 460px;
    }

    .product-info {
        position: static;
        padding: 32px;
    }

    .product-info h1 {
        font-size: 32px;
    }
}

/* ===== PRODUCT DETAIL PRO EFFECTS ===== */

.product-main-image img {
    transition: opacity 0.25s ease, transform 0.35s ease;
}

.product-main-image:hover img {
    transform: scale(1.03);
}

.product-thumbs img {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.product-thumbs img:hover {
    transform: translateY(-3px) scale(1.04);
    border-color: #8b5cf6;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
    opacity: 1;
}

.product-thumbs img.active-thumb {
    border: 3px solid #8b5cf6;
    opacity: 1;
}

.btn-add-cart,
.btn-buy-now {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-add-cart:hover,
.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
    opacity: 0.95;
}

/* ===== NAVBAR PREMIUM ===== */

.site-header {
    background: linear-gradient(135deg, #f6efe8 0%, #d8c3a5 45%, #111827 100%);
    padding: 18px 24px;
}

.navbar {
    width: min(94%, 1500px);
    margin: 0 auto;
    background: rgba(17, 24, 39, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    padding: 18px 34px;
    border-radius: 28px;

    display: grid;
    grid-template-columns: 1.2fr auto 1.2fr;
    align-items: center;
    gap: 28px;

    position: sticky;
    top: 18px;
    z-index: 1000;

    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    height: 72px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.06);
}

.brand-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.navbar-center {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.navbar-center a,
.navbar a {
    color: white;
    text-decoration: none;
}

.navbar-center a {
    font-size: 17px;
    font-weight: 600;
    opacity: 0.82;
    transition: 0.25s ease;
}

.navbar-center a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.navbar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.navbar-right .search-box {
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input {
    width: 240px;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    outline: none;
    background: rgba(255,255,255,0.96);
    color: #111827;
}

.search-box button {
    padding: 14px 22px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    color: #111827;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

@media (max-width: 1000px) {
    .navbar {
        grid-template-columns: 1fr;
        text-align: center;
        border-radius: 24px;
    }

    .navbar-left,
    .navbar-center,
    .navbar-right {
        justify-content: center;
    }

    .search-box input {
        width: 220px;
    }

    .logo {
        height: 60px;
    }

    .brand-name {
        font-size: 22px;
    }
}

/* ===== CATALOG PAGE PRO ===== */

.catalog-page {
    width: min(94%, 1500px);
    margin: 42px auto 70px;
}

.catalog-header {
    margin-bottom: 28px;
}

.catalog-eyebrow {
    color: #8b5cf6;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.catalog-header h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
    margin-bottom: 10px;
}

.catalog-header p {
    color: #6b7280;
    font-size: 18px;
}

.catalog-filters {
    background: white;
    border-radius: 26px;
    padding: 24px;
    display: grid;
    grid-template-columns: 260px 1fr auto;
    gap: 18px;
    align-items: end;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    margin-bottom: 34px;
}

.catalog-filters label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.catalog-filters input,
.catalog-filters select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    outline: none;
}

.catalog-filters button {
    border: none;
    background: #111827;
    color: white;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.catalog-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0,0,0,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(0,0,0,0.13);
}

.catalog-image {
    display: block;
    background: #f3f4f6;
    height: 260px;
    overflow: hidden;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.catalog-card:hover .catalog-image img {
    transform: scale(1.04);
}

.catalog-info {
    padding: 18px;
}

.catalog-category {
    color: #8b5cf6;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 8px;
}

.catalog-info h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.catalog-desc {
    color: #6b7280;
    font-size: 14px;
    min-height: 44px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.catalog-price {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 14px;
}

.catalog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.catalog-btn-primary,
.catalog-btn-secondary {
    text-align: center;
    border-radius: 999px;
    padding: 11px 13px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.catalog-btn-primary {
    background: #111827;
    color: white;
}

.catalog-btn-secondary {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #9ca3af;
}

@media (max-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .catalog-filters {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-image {
        height: 240px;
    }
}

@media (max-width: 600px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-image {
        height: 300px;
    }
}

/* ===== HOME PAGE PRO ===== */

.home-hero {
    width: min(94%, 1500px);
    margin: 34px auto 60px;
    min-height: 620px;
    border-radius: 34px;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(17, 24, 39, 0.88) 0%,
            rgba(17, 24, 39, 0.58) 38%,
            rgba(17, 24, 39, 0.10) 100%
        ),
        url("/static/images/hero.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.home-hero-content {
    max-width: 760px;
    padding: 70px;
    color: white;
}

.home-eyebrow {
    color: #c4a574;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 12px;
}

.home-hero h1 {
    font-size: clamp(44px, 6vw, 82px);
    line-height: .92;
    margin-bottom: 24px;
    text-shadow: 0 6px 28px rgba(0,0,0,0.45);
}

.home-hero p {
    font-size: 22px;
    line-height: 1.45;
    margin-bottom: 34px;
    color: rgba(255,255,255,0.92);
}

.home-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.home-btn-primary,
.home-btn-secondary {
    padding: 16px 34px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    transition: .25s ease;
}

.home-btn-primary {
    background: white;
    color: #111827;
}

.home-btn-secondary {
    background: rgba(255,255,255,0.14);
    color: white;
    border: 1px solid rgba(255,255,255,0.35);
}

.home-btn-primary:hover,
.home-btn-secondary:hover {
    transform: translateY(-2px);
}

.home-section {
    width: min(94%, 1500px);
    margin: 0 auto 64px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
}

.section-link {
    color: #111827;
    font-weight: 900;
    text-decoration: underline;
}

.home-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-category-card {
    min-height: 210px;
    border-radius: 30px;
    padding: 32px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
        linear-gradient(135deg, #f8e9d7, #d8c3a5);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(0,0,0,0.08);
    transition: .25s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.home-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(0,0,0,0.14);
}

.home-category-card span {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
}

.home-category-card p {
    color: #6b7280;
    font-size: 17px;
}

.home-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.home-product-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(0,0,0,0.08);
    transition: .25s ease;
}

.home-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0,0,0,0.14);
}

.home-product-image {
    display: block;
    height: 390px;
    background: #f3f4f6;
    overflow: hidden;
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s ease;
}

.home-product-card:hover .home-product-image img {
    transform: scale(1.04);
}

.home-product-info {
    padding: 26px;
}

.home-product-category {
    color: #8b5cf6;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 8px;
}

.home-product-info h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.home-product-info p {
    color: #6b7280;
    line-height: 1.5;
    min-height: 50px;
    margin-bottom: 16px;
}

.home-product-info strong {
    display: block;
    font-size: 26px;
    margin-bottom: 20px;
}

.home-product-btn {
    display: block;
    text-align: center;
    background: #111827;
    color: white;
    padding: 14px 18px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 1000px) {
    .home-hero {
        min-height: 520px;
        background-attachment: scroll;
    }

    .home-hero-content {
        padding: 42px;
    }

    .home-categories,
    .home-products {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== HOME CATEGORY IMAGE CARDS ===== */

.home-category-card-image {
    position: relative;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    color: white;
}

.home-category-card-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,24,39,0.05), rgba(17,24,39,0.78));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-category-card-image:hover::before {
    opacity: 1;
}

.home-category-overlay {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.home-category-card-image span {
    color: white;
    text-shadow: 0 3px 18px rgba(0,0,0,0.45);
}

.home-category-card-image p {
    color: rgba(255,255,255,0.88);
}

.home-category-card-image small {
    display: inline-block;
    margin-top: 14px;
    font-weight: 900;
    color: white;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.home-category-card-image:hover small {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CATEGORY HOVER PREMIUM ===== */

.home-category-card-image {
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.home-category-card-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
    filter: saturate(1.08) contrast(1.04);
}

.home-category-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.home-category-card-image:hover::after {
    opacity: 1;
}

.home-category-overlay span,
.home-category-overlay p {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.home-category-card-image:hover .home-category-overlay span {
    transform: translateY(-6px);
}

.home-category-card-image:hover .home-category-overlay p {
    transform: translateY(-4px);
    opacity: 0.95;
}

/* ===== ADMIN DASHBOARD ===== */

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.admin-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.admin-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.admin-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.admin-btn {
    display: inline-block;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
}

.admin-btn:hover {
    opacity: 0.9;
}

.admin-btn-disabled {
    padding: 10px 16px;
    background: #ddd;
    border-radius: 10px;
    border: none;
    color: #777;
}

/* ===== ADMIN LAYOUT PRO ===== */

.admin-body {
    background: #f4f6f8;
    color: #111827;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    font-family: 'Inter', sans-serif;
}

.admin-sidebar {
    background: #0f172a;
    color: white;
    min-height: 100vh;
    padding: 28px 22px;
    position: sticky;
    top: 0;
}

.admin-logo {
    margin-bottom: 36px;
}

.admin-logo span {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.admin-logo small {
    color: #94a3b8;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-menu a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 13px 16px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.admin-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.admin-main {
    padding: 36px;
}

/* ===== ADMIN COMPONENTS ===== */

.admin-page-header {
    margin-bottom: 26px;
}

.admin-page-header p {
    color: #8b5cf6;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.admin-page-header h1 {
    font-size: 44px;
    line-height: 1;
}

.admin-panel {
    background: white;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.06);
    margin-bottom: 26px;
}

.admin-panel h2 {
    margin-bottom: 18px;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(5, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.admin-form input,
.admin-form select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    outline: none;
}

.admin-form button,
.admin-btn {
    border: none;
    background: #111827;
    color: white;
    padding: 13px 18px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.admin-btn-light {
    background: #8b5cf6;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
    font-size: 13px;
    text-transform: uppercase;
    color: #6b7280;
}

.admin-thumb {
    width: 80px;
    height: 55px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 1000px) {
    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        min-height: auto;
    }

    .admin-form {
        grid-template-columns: 1fr;
    }
}

.admin-table-link {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
    margin-right: 10px;
}

.admin-danger-btn {
    border: none;
    background: #fee2e2;
    color: #991b1b;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

.admin-danger-btn:hover {
    background: #fecaca;
}

.admin-preview-img {
    width: 260px;
    height: 160px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
    border: 2px solid #e5e7eb;
    transition: 0.3s ease;
}

.admin-product-preview-grid {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.admin-product-preview-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    background: white;
}

/* ===== ADMIN LOGIN PRO ===== */

.admin-login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(196,165,116,0.28), transparent 34%),
        linear-gradient(135deg, #050816, #111827 48%, #1f2937);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.admin-login-bg-logo {
    position: absolute;
    width: 720px;
    height: 720px;
    background: url("/static/images/cifear-logo-base.png") center/contain no-repeat;
    opacity: 0.07;
    filter: blur(1px);
    right: -120px;
    bottom: -130px;
    pointer-events: none;
}

.admin-login-card {
    width: 420px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 38px;
    border-radius: 32px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.38);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.28);
}

.admin-login-logo {
    width: 110px;
    height: auto;
    display: block;
    margin: 0 auto 18px;
}

.admin-login-card h1 {
    text-align: center;
    margin-bottom: 6px;
    font-size: 30px;
}

.admin-login-card p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 26px;
}

.admin-login-card input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    margin-bottom: 14px;
    outline: none;
    font-size: 15px;
}

.admin-login-card input:focus {
    border-color: #c4a574;
    box-shadow: 0 0 0 4px rgba(196,165,116,0.18);
}

.admin-login-card button {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, #111827, #0f172a);
    color: white;
    padding: 16px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.25s ease;
}

.admin-login-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

.admin-login-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 700;
    text-align: center;
}


.site-footer {
    margin-top: 70px;
    padding: 28px 24px;
    background: #0f172a;
    color: #cbd5e1;
}

.site-footer-inner {
    width: min(94%, 1500px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer a {
    color: #c4a574;
    font-weight: 800;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.admin-form-section {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.admin-form-section > label {
    display: block;
    font-weight: 900;
    margin-bottom: 12px;
}

.admin-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.admin-check-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.admin-check-card input {
    width: auto;
}

.admin-check-card span {
    font-weight: 900;
}

.admin-check-card small {
    color: #6b7280;
}

.admin-save-full {
    grid-column: 1 / -1;
}


/* =========================================================
   AJUSTE FINAL - TARJETAS MÁS COMPACTAS
   Catálogo público y detalle de producto
   ========================================================= */

/* Contenedor del catálogo */
.catalog-page {
    width: min(94%, 1320px);
    margin: 36px auto 60px;
}

/* Grid de productos: 4 tarjetas en escritorio */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

/* Tarjeta del catálogo */
.catalog-card {
    border-radius: 22px;
}

/* Imagen más baja para reducir la tarjeta */
.catalog-image {
    height: 250px;
}

/* Contenido más compacto */
.catalog-info {
    padding: 17px;
}

.catalog-category {
    font-size: 12px;
    margin-bottom: 6px;
}

.catalog-info h2 {
    font-size: 19px;
    line-height: 1.15;
    margin-bottom: 8px;
}

.catalog-desc {
    font-size: 13px;
    min-height: 40px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.catalog-price {
    font-size: 19px;
    margin-bottom: 13px;
}

.catalog-actions {
    gap: 8px;
}

.catalog-btn-primary,
.catalog-btn-secondary {
    padding: 10px 12px;
    font-size: 13px;
}

/* Detalle de producto más compacto */
.product-detail {
    width: min(92%, 1180px);
    margin: 38px auto;
    grid-template-columns: 52% 48%;
    gap: 32px;
}

.product-gallery {
    grid-template-columns: 88px 1fr;
    gap: 16px;
}

.product-thumbs {
    gap: 12px;
}

.product-thumbs img {
    width: 88px;
    height: 88px;
    border-radius: 14px;
}

.product-main-image {
    height: 480px;
    border-radius: 24px;
}

.product-info {
    padding: 34px;
    border-radius: 24px;
}

.product-category {
    font-size: 13px;
    margin-bottom: 14px;
}

.product-info h1 {
    font-size: clamp(32px, 3vw, 46px);
    margin-bottom: 18px;
}

.product-price {
    font-size: 30px;
    margin-bottom: 18px;
}

.product-description {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 26px;
}

/* Responsivo */
@media (max-width: 1250px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .catalog-filters {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-image {
        height: 235px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 26px;
    }

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

    .product-thumbs {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
    }

    .product-main-image {
        height: 420px;
    }

    .product-info {
        position: static;
        padding: 28px;
    }

    .product-info h1 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-image {
        height: 290px;
    }
}

.admin-textarea-full {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 120px;
    padding: 13px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    outline: none;
    resize: vertical;
    font-family: inherit;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: 800;
}

.product-stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

.product-rating small {
    color: #6b7280;
    font-weight: 600;
}

.product-detail-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
}

.product-detail-box h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.product-detail-box p {
    color: #4b5563;
    line-height: 1.5;
}

.related-products-section {
    width: min(92%, 1180px);
    margin: 20px auto 70px;
}

.related-products-header {
    margin-bottom: 18px;
}

.related-products-header p {
    color: #8b5cf6;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 13px;
}

.related-products-header h2 {
    font-size: 30px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.related-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.07);
    transition: 0.25s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.12);
}

.related-product-image {
    display: block;
    height: 190px;
    background: #f3f4f6;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-info {
    padding: 14px;
}

.related-product-info p {
    color: #8b5cf6;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.related-product-info h3 {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.related-product-rating {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}

.related-product-rating span {
    color: #f59e0b;
    font-size: 12px;
}

.related-product-rating small {
    color: #6b7280;
    font-weight: 700;
}

.related-product-info strong {
    font-size: 16px;
}

@media (max-width: 900px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CART PAGE ===== */

.cart-page {
    width: min(92%, 1180px);
    margin: 42px auto 70px;
}

.cart-header {
    margin-bottom: 24px;
}

.cart-header p {
    color: #8b5cf6;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 13px;
}

.cart-header h1 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 26px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    background: white;
    border-radius: 24px;
    padding: 16px;
    display: grid;
    grid-template-columns: 110px 1fr 90px 120px auto;
    gap: 16px;
    align-items: center;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.cart-item-image {
    width: 110px;
    height: 110px;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f4f6;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info p {
    color: #8b5cf6;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.cart-item-info h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.cart-item-info strong {
    font-size: 18px;
}

.cart-qty-form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-qty-form input {
    width: 66px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
}

.cart-qty-form button,
.cart-remove-btn {
    border: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.cart-remove-btn {
    background: #fee2e2;
    color: #991b1b;
}

.cart-line-total {
    font-weight: 900;
    font-size: 18px;
}

.cart-summary {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    position: sticky;
    top: 120px;
}

.cart-summary h2 {
    margin-bottom: 18px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    margin-bottom: 16px;
}

.cart-summary p {
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 18px;
}

.cart-checkout-btn {
    display: block;
    background: #111827;
    color: white;
    text-align: center;
    padding: 15px 18px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    margin-bottom: 12px;
}

.cart-continue-link {
    display: block;
    text-align: center;
    color: #111827;
    font-weight: 900;
}

.cart-empty {
    background: white;
    border-radius: 24px;
    padding: 42px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.cart-empty h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.cart-empty p {
    color: #6b7280;
    margin-bottom: 20px;
}

.cart-empty a {
    display: inline-block;
    background: #111827;
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 900;
}

.cart-qty-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
}

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

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 90px 1fr;
    }

    .cart-line-total,
    .cart-qty-form,
    .cart-item form {
        grid-column: 1 / -1;
    }
}

.cart-qty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cart-qty-box span {
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-qty-box input {
    width: 70px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
}

.cart-clear-btn {
    width: 100%;
    margin-top: 14px;
    border: none;
    background: #fee2e2;
    color: #991b1b;
    padding: 13px 16px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.cart-clear-btn:hover {
    background: #fecaca;
}

.cart-menu-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-menu-count {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #8b5cf6;
    color: white;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== CHECKOUT ===== */

.checkout-page {
    width: min(92%, 1180px);
    margin: 42px auto 70px;
}

.checkout-header {
    margin-bottom: 24px;
}

.checkout-header p {
    color: #8b5cf6;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
}

.checkout-header h1 {
    font-size: clamp(38px, 5vw, 58px);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 26px;
    align-items: start;
}

.checkout-form {
    background: white;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.checkout-form h2 {
    margin-bottom: 16px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    outline: none;
}

.checkout-form textarea {
    min-height: 100px;
    margin-bottom: 16px;
}

.checkout-submit {
    width: 100%;
    background: #111827;
    color: white;
    padding: 15px;
    border-radius: 999px;
    font-weight: 900;
    border: none;
    cursor: pointer;
}

/* RESUMEN */
.checkout-summary {
    background: white;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    position: sticky;
    top: 120px;
}

.checkout-items {
    margin-bottom: 16px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.checkout-item-info span {
    font-weight: 700;
}

.checkout-item-info small {
    display: block;
    color: #6b7280;
}

.checkout-total {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 900;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }
}

.payment-result-page {
    width: min(92%, 900px);
    margin: 70px auto;
}

.payment-result-card {
    background: white;
    padding: 42px;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 16px 38px rgba(0,0,0,0.08);
}

.payment-result-card h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.payment-result-card p {
    color: #6b7280;
    font-size: 18px;
    margin-bottom: 26px;
}

.payment-result-success h1 {
    color: #166534;
}

.payment-result-error h1 {
    color: #991b1b;
}

.payment-result-pending h1 {
    color: #92400e;
}

.payment-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.payment-result-actions a {
    background: #111827;
    color: white;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
}

.admin-image-card {
    position: relative;
    width: 110px;
}

.admin-image-card .admin-product-preview-img {
    display: block;
}

.admin-image-delete-form {
    position: absolute;
    top: 6px;
    right: 6px;
}

.admin-image-delete-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: rgba(153, 27, 27, 0.92);
    color: white;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-image-delete-btn:hover {
    background: #7f1d1d;
}
