:root {
    --primary: #117a63;
    --primary-dark: #075442;
    --primary-light: #2d9a7e;
    --accent: #d89a1d;
    --accent-dark: #b88418;
    --bg: #f8f9fa;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --radius: 12px;
    --font: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.header {
    background:
        linear-gradient(105deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 58%),
        radial-gradient(150% 150% at 12% -35%, rgba(255,255,255,.9), rgba(255,255,255,0) 55%),
        linear-gradient(120deg, #eaeee9 0%, #f8f9f6 46%, #e5e9e3 100%);
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(11,79,60,.10);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar { background: var(--primary-dark); color: #fff; font-size: .85rem; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; gap: 1rem; flex-wrap: wrap; }
.top-cta { background: var(--accent); color: var(--text); padding: .25rem .75rem; border-radius: 20px; font-weight: 600; font-size: .8rem; }
.top-cta:hover { background: var(--accent-dark); color: #fff; }

.nav-wrap { display: flex; align-items: center; gap: 1.25rem; padding: 1rem 0; flex-wrap: wrap; }

.logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.25rem; color: var(--primary); flex-shrink: 0; }
.logo-img { height: 66px; width: auto; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.08)); transition: transform .2s ease; }
.logo:hover .logo-img { transform: scale(1.03); }
.logo-icon { font-size: 1.75rem; }

.search-form { flex: 1; min-width: 180px; max-width: 480px; display: flex; border: 2px solid var(--border); border-radius: 30px; overflow: hidden; }
.search-form input { flex: 1; border: none; padding: .55rem 1rem; font-size: .9rem; outline: none; }
.search-form button { background: var(--primary); color: #fff; border: none; padding: 0 1rem; cursor: pointer; }

.main-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; flex-wrap: wrap; }
.main-nav a { font-weight: 600; color: var(--text); white-space: nowrap; }
.main-nav a:hover,
.main-nav a.is-active { color: var(--primary); }
.main-nav a.is-active { font-weight: 800; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--primary); }
.nav-dropdown-arrow { font-size: .75rem; line-height: 1; }
.nav-mega-panel {
    display: none;
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, calc(100vw - 2rem));
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(0,0,0,.14);
    border: 1px solid rgba(0,0,0,.06);
    z-index: 120;
    padding: 1.5rem 0 1rem;
}
.nav-mega-panel::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,.06);
    border-top: 1px solid rgba(0,0,0,.06);
    transform: translateX(-50%) rotate(45deg);
}
.nav-mega-panel-inner { position: relative; }
.nav-mega-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,.08);
    text-align: right;
}
.nav-mega-footer a {
    font-weight: 700;
    color: var(--primary);
    font-size: .9rem;
}

.commemorative-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .35rem 1.25rem;
}
.commemorative-menu-grid-page { gap: .75rem 1.5rem; }
.commemorative-menu-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .65rem .5rem;
    border-radius: 10px;
    color: var(--text);
    transition: background .15s;
}
.commemorative-menu-item:hover {
    background: rgba(34, 139, 87, .07);
    color: var(--text);
}
.commemorative-menu-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
}
.commemorative-menu-text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}
.commemorative-menu-text strong {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .3px;
    line-height: 1.25;
}
.commemorative-menu-text small {
    font-size: .74rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.commemorative-page { padding-top: 2rem; }
.commemorative-show-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.commemorative-show-icon { font-size: 2.5rem; line-height: 1; }
.commemorative-show-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}
.commemorative-date-badge-lg {
    width: 96px;
    height: 96px;
    border-radius: 18px;
}
.commemorative-date-badge-lg .commemorative-day { font-size: 2rem; }
.commemorative-countdown-lg { margin: 1rem 0 1.5rem; }
.commemorative-show-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.breadcrumb { margin-bottom: .75rem; opacity: .85; font-size: .9rem; }
.breadcrumb a { color: #fff; text-decoration: underline; }

@media (min-width: 769px) {
    .nav-dropdown:hover .nav-mega-panel,
    .nav-dropdown.open .nav-mega-panel { display: block; }
}

.nav-location {
    display: inline-flex;
    align-items: center;
    padding: .35rem .85rem;
    border-radius: 20px;
    background: rgba(17, 122, 99, .12);
    color: var(--primary-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .4px;
    white-space: nowrap;
}

.nav-cart {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .85rem;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s;
}
.nav-cart:hover { background: var(--primary-light); color: #fff; }
.nav-cart-icon { font-size: 1rem; line-height: 1; }
.nav-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--text);
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
}

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn {
    display: inline-block; padding: .65rem 1.5rem; border-radius: 8px;
    font-weight: 600; font-size: .9rem; border: 2px solid transparent;
    cursor: pointer; transition: all .2s; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; color: #fff; }
.btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    padding: 1.25rem 0 0;
}
.hero-intro {
    width: 100%;
    padding: 0 clamp(1rem, 3vw, 2.5rem) .85rem;
}
.hero-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 1.5rem 2.5rem;
    align-items: center;
    width: 100%;
    max-width: none;
}
.hero-intro-aside {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.hero h1 { font-size: clamp(1.5rem, 3.2vw, 2.35rem); line-height: 1.15; margin: 0; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 1rem; opacity: .92; margin: 0; line-height: 1.55; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero .btn { padding: .55rem 1.25rem; font-size: .85rem; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--primary); }

.hero-carousel-band {
    width: 100%;
    padding: 0 0 1rem;
}
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: none;
    overflow: hidden;
    background: rgba(0, 0, 0, .12);
}
.hero-carousel-track {
    display: flex;
    gap: .75rem;
    padding: 0 3rem 1.75rem;
    transition: transform .55s ease;
    will-change: transform;
}
.hero-carousel-slide {
    flex-shrink: 0;
    position: relative;
    display: block;
    height: 175px;
    overflow: hidden;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.hero-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-carousel-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .75rem;
    background: linear-gradient(transparent, rgba(0,0,0,.78));
    font-size: .72rem; font-weight: 600; line-height: 1.2;
}
.hero-carousel-btn {
    position: absolute; top: 38%; transform: translateY(-50%);
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.92); color: var(--primary-dark);
    font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.hero-carousel-btn:hover { background: var(--accent); color: var(--text); }
.hero-carousel-btn.prev { left: .75rem; }
.hero-carousel-btn.next { right: .75rem; }
.hero-carousel-dots {
    position: absolute; bottom: .85rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: .45rem; z-index: 2; flex-wrap: wrap; justify-content: center;
    max-width: 90%;
}
.hero-carousel-dot {
    width: 8px; height: 8px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.45); cursor: pointer; padding: 0;
}
.hero-carousel-dot.is-active { background: var(--accent); transform: scale(1.2); }
.hero-carousel-empty {
    width: 100%; min-height: 120px; display: flex; align-items: center;
    justify-content: center; padding: 1.5rem; border-radius: var(--radius);
    background: rgba(255,255,255,.1); text-align: center; opacity: .85;
    margin-bottom: 1.5rem;
}

/* Sections */
section { padding: 3.5rem 0; }
.section-title { text-align: center; font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 2rem; color: var(--primary-dark); }

/* Categories */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.category-card {
    background: var(--surface); border-radius: var(--radius); padding: 1.25rem;
    text-align: center; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
    display: flex; flex-direction: column; gap: .35rem; color: var(--text);
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.12); color: var(--primary); }
.cat-icon { font-size: 2rem; }
.cat-name { font-weight: 600; font-size: .85rem; }
.cat-count { font-size: .75rem; color: var(--text-muted); }

/* Products */
.catalog-search {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.catalog-search input {
    flex: 1;
    min-width: 220px;
    border: 2px solid var(--border);
    border-radius: 30px;
    padding: .65rem 1rem;
    font-size: .95rem;
    outline: none;
}
.catalog-search input:focus { border-color: var(--primary); }
.catalog-results-count { margin-bottom: 1.25rem; color: var(--text-muted); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.product-card:hover { transform: translateY(-4px); }
.product-image { position: relative; aspect-ratio: 1; overflow: hidden; display: block; background: #f4f7f6; }
.product-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .3s; }
.product-card:hover .product-image img { transform: scale(1.03); }
.badge { position: absolute; top: .75rem; left: .75rem; background: var(--accent); color: var(--text); padding: .2rem .6rem; border-radius: 20px; font-size: .7rem; font-weight: 700; }
.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.product-code { font-size: .75rem; color: var(--text-muted); font-weight: 600; }
.product-body h3 { font-size: .95rem; line-height: 1.3; }
.product-body h3 a { color: var(--text); }
.product-desc { font-size: .8rem; color: var(--text-muted); flex: 1; }
.product-footer { margin: .5rem 0; }
.product-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); display: block; }
.product-price.large { font-size: 1.75rem; }
.product-footer small, .price-note { font-size: .75rem; color: var(--text-muted); }
.price-note { text-align: center; margin-top: 1.5rem; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.25rem; }
.blog-card-body time { font-size: .8rem; color: var(--text-muted); }
.blog-card-body h3 { margin: .5rem 0; font-size: 1rem; }
.read-more { font-weight: 600; font-size: .85rem; }

/* Clients */
.clients-section { background: var(--surface); }
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.client-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.client-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.client-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem;
    text-align: center;
    min-height: 180px;
    justify-content: center;
}
.client-logo-wrap {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
}
.client-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.client-name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
}

/* Commemorative dates */
.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.section-heading-row .section-title { margin-bottom: 0; text-align: left; }
.section-link {
    font-weight: 700;
    font-size: .9rem;
    color: var(--primary);
    white-space: nowrap;
}
.commemorative-section { padding: 4rem 0; }
.commemorative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.commemorative-card {
    display: flex;
    gap: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    transition: transform .2s, box-shadow .2s;
    color: var(--text);
}
.commemorative-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
}
.commemorative-date-badge {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}
.commemorative-day { font-size: 1.5rem; font-weight: 800; }
.commemorative-month { font-size: .72rem; font-weight: 700; letter-spacing: .5px; opacity: .92; }
.commemorative-body { min-width: 0; }
.commemorative-icon { font-size: 1.1rem; display: block; margin-bottom: .35rem; }
.commemorative-body h3 {
    font-size: 1rem;
    margin: 0 0 .45rem;
    color: var(--primary-dark);
}
.commemorative-body p {
    margin: 0 0 .65rem;
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.commemorative-countdown {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(34, 139, 87, .1);
    padding: .25rem .55rem;
    border-radius: 999px;
}

.blog-article { padding: 2rem 0 4rem; }
.blog-hero-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius); margin: 1rem 0; }
.blog-excerpt { font-size: 1.1rem; color: var(--text-muted); margin: 1rem 0 2rem; }
.blog-content { margin-bottom: 2rem; line-height: 1.8; }

/* About & Testimonials */
.about-section { background: var(--surface); text-align: center; }
.about-inner h2 { color: var(--primary); margin-bottom: 1rem; }
.about-inner p { max-width: 800px; margin: 0 auto; color: var(--text-muted); }

.testimonials-section { background: var(--primary-dark); color: #fff; }
.testimonials-section .section-title { color: #fff; }
.testimonials-slider { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: none; }
.testimonials-slider::-webkit-scrollbar { display: none; }
.testimonial-card { min-width: 320px; max-width: 400px; background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.5rem; scroll-snap-align: start; flex-shrink: 0; }
.testimonial-card p { font-style: italic; margin-bottom: 1rem; opacity: .95; }
.testimonial-card footer strong { display: block; }
.testimonial-card footer span { font-size: .85rem; opacity: .7; }
.slider-controls { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.slider-controls button { background: rgba(255,255,255,.15); border: none; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.25rem; cursor: pointer; }
.slider-controls button:hover { background: var(--accent); color: var(--text); }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); text-align: center; }
.cta-inner h2 { margin-bottom: .75rem; }
.cta-inner p { margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Page header */
.page-header { background: var(--primary-dark); color: #fff; padding: 2.5rem 0; }
.page-header h1 { font-size: 2rem; }
.breadcrumb { font-size: .85rem; opacity: .8; margin-bottom: .75rem; }
.breadcrumb a { color: #fff; }

/* Product detail */
.product-detail { padding: 3rem 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-gallery img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-gallery-single {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
    background: #f4f7f6;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.product-gallery-layout {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}
.product-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    flex: 0 0 88px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: .15rem;
    scrollbar-width: thin;
}
.product-gallery-thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    padding: 4px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #f4f7f6;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.product-gallery-thumb:hover,
.product-gallery-thumb:focus-visible,
.product-gallery-thumb.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(17, 122, 99, 0.15);
    outline: none;
}
.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
}
.product-gallery-main {
    flex: 1;
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #f4f7f6;
    border: 1px solid var(--border);
}
.product-gallery-main img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
}
.product-info h1 { font-size: 1.75rem; margin: .5rem 0 1rem; }
.product-full-desc { color: var(--text-muted); margin-bottom: 1.5rem; }
.price-box { background: var(--bg); padding: 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.price-disclaimer { font-size: .75rem; color: var(--text-muted); margin-top: .5rem; }
.product-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.product-features { list-style: none; }
.product-features li { padding: .35rem 0; font-size: .9rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-list { list-style: none; margin-bottom: 2rem; }
.contact-list li { padding: .4rem 0; }
.contact-form, .admin-form { background: var(--surface); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .35rem; }
.form-row input, .form-row textarea, .form-row select {
    width: 100%; padding: .65rem .85rem; border: 2px solid var(--border);
    border-radius: 8px; font-size: .9rem; font-family: var(--font);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--primary); outline: none; }
.form-row.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Footer */
.footer { background: var(--primary-dark); color: #fff; padding: 3rem 0 0; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding-bottom: 2rem; }
.footer h3, .footer h4 { margin-bottom: .75rem; }
.footer ul { list-style: none; }
.footer li { padding: .25rem 0; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; text-align: center; font-size: .85rem; opacity: .7; }

/* WhatsApp float */
.whatsapp-float {
    position: fixed; bottom: 1.5rem; right: 1.5rem; width: 56px; height: 56px;
    background: #25d366; color: #fff; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37,211,102,.4); z-index: 99; transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* Flash messages */
.flash-wrap { padding-top: 1rem; }
.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: .5rem; font-weight: 500; }
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error { background: #fee2e2; color: #991b1b; }

/* Pagination & empty */
.pagination { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2rem; font-weight: 600; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }

/* Cart */
.cart-section { padding: 2rem 0 3.5rem; }
.cart-table {
    width: 100%; background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow); border-collapse: collapse; margin-bottom: 1.5rem;
}
.cart-table th, .cart-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.cart-table th { background: #f8f9fa; font-size: .85rem; }
.cart-product-link { display: flex; align-items: center; gap: .75rem; color: var(--text); font-weight: 600; }
.cart-product-link img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.cart-qty-form { display: flex; align-items: center; gap: .5rem; }
.cart-qty-form input { width: 90px; padding: .4rem .5rem; border: 2px solid var(--border); border-radius: 6px; }
.cart-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.cart-add-form { display: inline; }
.product-actions .btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-link.danger { background: none; border: none; color: #dc2626; font-weight: 600; cursor: pointer; font-size: .85rem; }

/* Responsive */
@media (max-width: 992px) {
    .commemorative-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .page-header {
        padding: 1.75rem 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .top-bar {
        font-size: .78rem;
    }

    .top-bar-inner {
        justify-content: center;
        text-align: center;
        gap: .5rem;
    }

    .top-bar-inner span {
        width: 100%;
    }

    .nav-wrap {
        position: relative;
        gap: .75rem;
        padding: .65rem 0;
    }

    .logo-img {
        height: 50px;
    }

    .search-form {
        order: 3;
        max-width: 100%;
        width: 100%;
        min-width: 0;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin-left: auto;
        border-radius: 10px;
        background: var(--bg);
        color: var(--primary-dark);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + .5rem);
        left: 0;
        right: 0;
        z-index: 130;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding: .75rem;
        border-radius: var(--radius);
        background: #fff;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
        border: 1px solid var(--border);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav > a,
    .main-nav .nav-dropdown {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .main-nav > a,
    .main-nav .nav-dropdown-toggle,
    .nav-cart {
        padding: .85rem .5rem;
        white-space: normal;
    }

    .nav-location {
        width: 100%;
        justify-content: center;
        margin: .5rem 0;
        text-align: center;
        white-space: normal;
    }

    .nav-cart {
        justify-content: center;
        margin-top: .35rem;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown.open .nav-mega-panel {
        display: block;
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: 0;
        padding: .5rem 0 .75rem;
        margin-top: 0;
    }

    .nav-mega-panel::before {
        display: none;
    }

    .hero-intro-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 1.45rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-carousel-track {
        padding: 0 2.5rem 1.5rem;
        gap: .65rem;
    }

    .hero-carousel-slide {
        height: 150px;
    }

    .hero-carousel-btn {
        width: 36px;
        height: 36px;
    }

    .products-grid,
    .commemorative-grid,
    .clients-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

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

    .product-detail-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-detail {
        padding: 2rem 0;
    }

    .product-gallery-layout {
        flex-direction: column;
    }

    .product-gallery-thumbs {
        flex-direction: row;
        flex: none;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: .25rem;
    }

    .product-gallery-thumb {
        flex: 0 0 68px;
        width: 68px;
        height: 68px;
    }

    .product-info h1 {
        font-size: 1.4rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn,
    .product-actions .cart-add-form,
    .product-actions .cart-add-form .btn {
        width: 100%;
    }

    .catalog-search {
        flex-direction: column;
    }

    .catalog-search .btn {
        width: 100%;
    }

    .catalog-search input {
        min-width: 0;
        width: 100%;
    }

    .form-row.two-cols {
        grid-template-columns: 1fr;
    }

    .contact-form,
    .admin-form {
        padding: 1.25rem;
    }

    .section-heading-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-heading-row .section-title {
        text-align: left;
    }

    .commemorative-menu-grid,
    .commemorative-menu-grid-page {
        grid-template-columns: 1fr;
    }

    .commemorative-show-body {
        grid-template-columns: 1fr;
    }

    .commemorative-show-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer {
        padding-top: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-table {
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        background: var(--surface);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        margin-bottom: 1rem;
        padding: .75rem;
    }

    .cart-table td {
        border: 0;
        padding: .5rem 0;
    }

    .cart-table td::before {
        content: attr(data-label);
        display: block;
        font-size: .72rem;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: .04em;
        margin-bottom: .25rem;
    }

    .cart-qty-form {
        flex-wrap: wrap;
    }

    .cart-qty-form input {
        flex: 1;
        min-width: 90px;
    }

    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-actions .btn {
        width: 100%;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 52px;
        height: 52px;
    }

    .pagination {
        flex-direction: column;
        gap: .75rem;
    }
}

@media (max-width: 480px) {
    .products-grid,
    .commemorative-grid,
    .clients-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .top-bar-inner .top-cta {
        width: 100%;
        text-align: center;
    }

    .testimonial-card {
        min-width: 85vw;
    }

    .product-price.large {
        font-size: 1.45rem;
    }

    .btn-lg {
        padding: .8rem 1.25rem;
    }
}
