:root {
    /* Brand Accent */
    --primary: #FF2E2E;
    --primary-dark: #C8101A;

    /* Price Colors (Soft Sage Green) */
    --color-price: #4ADE80;
    --color-price-glow: rgba(74, 222, 128, 0.15);

    /* Primary Action Buttons (Ice White) */
    --btn-primary-bg: #ffffff;
    --btn-primary-text: #0a0a0a;
    --btn-primary-hover: #e5e5e5;
    --btn-primary-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);

    /* Backgrounds & Text */
    --bg-dark: #0a0a0a;
    --bg-card: #1c1c1c;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --accent-gold: #c5a059;
    --glass-bg: rgba(15, 15, 15, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --whatsapp-green: #25d366;
    --instagram-pink: #e1306c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo, .nav-toggle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(220, 38, 38, 0.25));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo-text-img {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(220, 38, 38, 0.2));
    transition: transform 0.25s ease, filter 0.25s ease;
}

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

.logo:hover .logo-img {
    filter: drop-shadow(0 0 12px rgba(220, 38, 38, 0.5));
}

.logo:hover .logo-text-img {
    filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.4));
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.footer-logo-text-img {
    height: 20px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.03);
}

/* Header Search Form */
.header-search-form {
    flex: 1;
    max-width: 480px;
    margin: 0 32px;
    display: flex;
    align-items: center;
    position: relative;
}

.header-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.header-search-wrapper input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 10px 40px 10px 42px;
    color: #fff;
    width: 100%;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
}

.header-search-wrapper input::placeholder {
    color: var(--text-dim);
    opacity: 0.85;
}

.header-search-wrapper input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(255, 46, 46, 0.25);
}

.header-search-wrapper .search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-dim);
    pointer-events: none;
    transition: var(--transition);
}

.header-search-wrapper:focus-within .search-icon {
    color: var(--primary);
}

.header-search-wrapper .clear-search-btn {
    position: absolute;
    right: 12px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 50%;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.header-search-wrapper .clear-search-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.search-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 6px;
    margin-left: 12px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* Search Suggestions Dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(14, 14, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.15);
    overflow: hidden;
    z-index: 1010;
    animation: suggestFadeIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes suggestFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestions-list {
    display: flex;
    flex-direction: column;
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.suggest-item:last-child {
    border-bottom: none;
}

.suggest-item:hover,
.suggest-item.is-selected {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.suggest-thumb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggest-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggest-img-fallback {
    font-size: 1.1rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggest-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.suggest-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-match {
    color: var(--primary);
    font-weight: 700;
}

.suggest-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggest-price {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--color-price);
}

.suggest-tag {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    padding: 1px 6px;
    border-radius: 4px;
}

.suggest-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-subtle);
    text-decoration: none;
    font-size: 0.84rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.suggest-footer strong {
    color: #fff;
}

.suggest-footer .suggest-arrow {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.suggest-footer:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.suggest-footer:hover .suggest-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

/* Header Actions (Search Toggle + Nav Toggle) */
.header-actions {
    display: none;
    align-items: center;
    gap: 10px;
}

.search-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.search-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.search-badge-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary);
}

@keyframes searchSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

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

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* Content Area */
.site-content {
    padding-top: 80px;
    flex: 1;
}

main {
    padding: 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Footer */
footer {
    padding: 40px 20px;
    background: #050505;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--btn-primary-hover);
    color: var(--btn-primary-text);
    transform: translateY(-2px);
    box-shadow: var(--btn-primary-shadow);
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1ebd56;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-instagram {
    background: var(--instagram-pink);
    color: #fff;
}

.btn-instagram:hover {
    background: #c12056;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    padding: 16px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.product-image {
    height: 240px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-content {
    padding: 14px 4px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
    max-height: 2.8em;
}

.product-title-wrap {
    position: relative;
    width: 100%;
}

.product-tags-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    max-height: 26px;
    overflow: hidden;
}

.tag-badge {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

/* Custom Themed Dark Tooltips */
.tooltip-trigger {
    position: relative;
    display: inline-flex;
}

.custom-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 75, 43, 0.12);
    white-space: normal;
    width: max-content;
    max-width: 280px;
    z-index: 120;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
    text-align: center;
}

.custom-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(18, 18, 18, 0.98) transparent transparent transparent;
}

.product-title-wrap:hover .custom-tooltip,
.tooltip-trigger:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tag-badge-more {
    cursor: pointer;
    background: rgba(95, 179, 179, 0.12) !important;
    border-color: rgba(95, 179, 179, 0.3) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    transition: var(--transition);
}

.tag-badge-more:hover {
    background: rgba(95, 179, 179, 0.22) !important;
    color: #fff !important;
}

.tags-tooltip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: 6px;
}

.tags-tooltip-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 14px;
    padding-top: 8px;
}

.price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-price);
}

.price-compare {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: line-through;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 0;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .header-inner {
        padding: 14px 24px;
        position: relative;
    }
    main { padding: 30px; }

    /* Header Actions & Search Toggle */
    .header-actions {
        display: flex;
    }
    .search-toggle-btn {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }

    /* Expandable Search Bar on Responsive Viewports */
    .header-search-form {
        display: none;
    }

    .header-search-form.is-active {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1005;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0 24px;
        margin: 0;
        max-width: 100%;
        align-items: center;
        box-sizing: border-box;
        animation: searchSlideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header-search-form.is-active .header-search-wrapper {
        flex: 1;
        width: 100%;
    }

    .header-search-form.is-active .search-close-btn {
        display: flex;
    }

    .header-search-form.is-active .search-suggestions-dropdown {
        top: 100%;
        left: 0;
        right: 0;
        border-radius: 0 0 16px 16px;
        border-top: 1px solid var(--border-subtle);
        max-height: 65vh;
        overflow-y: auto;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid var(--border-subtle);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .main-nav.open { max-height: 250px; }
    .main-nav ul { flex-direction: column; padding: 20px; gap: 15px; }
    .main-nav a { display: block; font-size: 15px; }
}

@media (max-width: 768px) {
    .header-inner { padding: 12px 18px; }
    .header-search-form.is-active { padding: 0 16px; }
    .logo-img { height: 32px; }
    .logo-text-img { height: 20px; }
    main { padding: 20px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
}
