/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: clip;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #000000;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    contain: layout style;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    position: relative;
}

.nav-desktop {
    display: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.875rem;
}

.nav-link:hover,
.nav-link.active {
    color: #FF6B35;
}

.header-actions {
    position: absolute;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: #FF6B35;
}

.cart-count {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: #FF6B35;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 9999px;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: flex;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.mobile-menu-btn:hover {
    color: #FF6B35;
}

.mobile-menu {
    display: none;
    background-color: #000000;
    padding: 0.5rem 1rem;
    border-top: 1px solid #222;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid #222;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: #FF6B35;
}

.hero {
    color: #ffffff;
    padding: 1rem 0;
    text-align: center;
}

.hero-gradient {
    background: linear-gradient(to bottom, #000000 0%, #1a1a1a 20%, #FF6B35 100%);
}

.hero-content {
    max-width: 48rem;
    margin: 0 auto;
}

.hero h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.hero-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-top: 0.25rem;
    display: inline-block;
}

.hero p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ffffff;
    color: #FF6B35;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #f3f4f6;
}

.products-section {
    padding: 2rem 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #6b7280;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.product-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    contain: layout style;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f3f4f6;
    width: 100%;
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

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

.discount-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #FF6B35;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.125rem;
}

.product-content {
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
    min-width: 0;
    overflow: hidden;
}

.product-name {
    font-weight: 600;
    font-size: 11px;
    line-height: 1.35;
    max-height: calc(1.35em * 2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-bottom: 0.25rem;
}

.product-brand {
    font-size: 0.65rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.58rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
    gap: 0.25rem;
}

.product-weight {
    background-color: #f3f4f6;
    padding: 0.2rem 0.35rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.product-pet-type {
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    margin-bottom: 0.4rem;
    margin-top: auto;
}

.original-price {
    font-size: 0.58rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.current-price {
    font-size: 0.78rem;
    font-weight: bold;
    color: #FF6B35;
}

.regular-price {
    font-size: 0.78rem;
    font-weight: bold;
    color: #1a1a1a;
}

.product-card-actions {
    display: flex;
    gap: 0.25rem;
    align-items: stretch;
    height: 1.75rem;
    flex-shrink: 0;
}

.product-card-actions .add-to-cart-btn {
    flex: 1;
    min-width: 0;
}

.add-to-cart-btn {
    height: 100%;
    padding: 0 0.25rem;
    border-radius: 0.4rem;
    font-weight: 600;
    font-size: 0.58rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    overflow: hidden;
}

.add-to-cart-btn svg {
    flex-shrink: 0;
    width: 11px;
    height: 11px;
}

.add-to-cart-btn:not(:disabled) {
    background-color: #FF6B35;
    color: #ffffff;
}

.add-to-cart-btn:not(:disabled):hover {
    background-color: #E55A2B;
}

.add-to-cart-btn:disabled {
    background-color: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.share-wa-btn {
    flex-shrink: 0;
    width: 1.6rem;
    height: 100%;
    background-color: #e5e7eb;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.15s, color 0.15s;
    padding: 0;
    color: #6b7280;
}

.share-wa-btn svg {
    flex-shrink: 0;
    width: 11px;
    height: 11px;
}

.share-wa-btn:hover {
    background-color: #d1d5db;
    color: #111;
    transform: scale(1.05);
}

.share-wa-btn:active {
    transform: scale(0.95);
}

@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 0.375rem;
}

.product-card-skeleton {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}

.skeleton-body {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-line {
    border-radius: 0.375rem;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}

.skeleton-line--title    { height: 14px; width: 90%; }
.skeleton-line--subtitle { height: 10px; width: 60%; }
.skeleton-line--meta     { height: 10px; width: 45%; }
.skeleton-line--price    { height: 18px; width: 50%; margin-top: 0.25rem; }
.skeleton-line--btn      { height: 30px; width: 100%; margin-top: 0.25rem; border-radius: 0.5rem; }

.loading-skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 0.5rem;
    height: 20rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 0;
    background-color: #ffffff;
    border-radius: 0.5rem;
    grid-column: 1 / -1;
}

.empty-state p {
    color: #6b7280;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.empty-state a {
    color: #FF6B35;
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

.cta-section {
    background-color: #000000;
    color: #ffffff;
    padding: 3rem 0;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h2 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
}

.copyright {
    font-size: 0.875rem;
    color: #6b7280;
}

.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar svg:first-child {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    z-index: 3;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.search-bar input[type="search"]::-webkit-search-cancel-button,
.search-bar input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.search-bar input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-clear-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0.5rem 0.5rem 0;
    transition: color 0.2s;
}

.search-clear-btn:hover {
    color: #FF6B35;
    background-color: #fff1ec;
}

.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 500;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-dropdown--open {
    display: block;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    transition: background-color 0.15s;
    border-bottom: 1px solid #f3f4f6;
}

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

.autocomplete-item:hover {
    background-color: #fff7f4;
}

.autocomplete-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.autocomplete-text {
    flex: 1;
    min-width: 0;
}

.autocomplete-label {
    display: block;
    font-size: 0.875rem;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-label mark {
    background: none;
    color: #FF6B35;
    font-weight: 700;
}

.autocomplete-sub {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
}

.autocomplete-tag {
    font-size: 0.65rem;
    font-weight: 600;
    background-color: #fff1ec;
    color: #FF6B35;
    border: 1px solid #ffd5c2;
    padding: 0.15rem 0.4rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.autocomplete-empty {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
    text-align: center;
}

#searchBarTop {
    display: none;
}

.search-bar-sidebar {
    display: none;
    margin-bottom: 1rem;
}

.search-bar-sidebar.search-bar-sidebar--visible {
    display: block;
}

.mobile-sticky-wrapper {
    position: sticky;
    top: 4rem;
    z-index: 100;
    background-color: #f9fafb;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    contain: layout style;
}

.search-bar-mobile-sticky {
    margin-bottom: 0.5rem;
}

.filters-sidebar {
    width: 16rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    contain: layout style;
}

.filters-sidebar-desktop {
    display: none;
}

.filters-sidebar.mobile-hidden {
    display: none;
}

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

.filters-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.clear-filters-btn {
    font-size: 0.875rem;
    color: #FF6B35;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.clear-filters-btn:hover {
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.filter-group select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.filter-group select:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.price-range-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-range-track {
    position: relative;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 9999px;
    margin: 1.2rem 0 0.25rem;
}

.price-range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: #FF6B35;
    border-radius: 9999px;
    pointer-events: none;
}

.price-range-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    background-color: #FF6B35;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.15s, box-shadow 0.15s;
}

.price-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.price-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    background-color: #FF6B35;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
    pointer-events: all;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 0.35rem;
}

.cart-page {
    min-height: calc(100vh - 4rem);
    background-color: #f9fafb;
    padding: 1.5rem 0;
    overflow-x: hidden;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.back-btn:hover {
    color: #FF6B35;
}

.cart-layout {
    display: grid;
    gap: 1.5rem;
    max-width: 100%;
    overflow: hidden;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 0;
    overflow: hidden;
    width: 100%;
    contain: layout style;
}

.cart-item-content {
    display: flex;
    gap: 0.6rem;
    min-width: 0;
    width: 100%;
}

.cart-item-image {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    padding: 0.25rem;
    border-radius: 9999px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #f3f4f6;
}

.quantity-value {
    font-weight: 600;
    width: 2rem;
    text-align: center;
}

.cart-item-price {
    text-align: right;
}

.cart-item-total {
    font-weight: bold;
    color: #FF6B35;
}

.cart-item-unit-price {
    font-size: 0.75rem;
    color: #6b7280;
}

.remove-btn {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s;
    flex-shrink: 0;
}

.remove-btn:hover {
    color: #dc2626;
}

.order-form {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    min-width: 0;
}

.order-form h2 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.radio-option:hover {
    background-color: #f9fafb;
}

.radio-option input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option span {
    flex: 1;
    line-height: 1.25rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.checkbox-option:hover {
    background-color: #f9fafb;
}

.checkbox-option input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-option span {
    flex: 1;
    line-height: 1.25rem;
}

.order-total {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.total-row.final {
    font-size: 1.125rem;
    font-weight: bold;
}

.total-row.final .total-amount {
    color: #FF6B35;
}

.submit-btn {
    width: 100%;
    background-color: #FF6B35;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover:not(:disabled) {
    background-color: #E55A2B;
}

.submit-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.error-message {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.products-page {
    min-height: calc(100vh - 4rem);
    background-color: #f9fafb;
    padding: 1.5rem 0;
}

.products-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    margin-bottom: 0;
}

.filter-toggle-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-count {
    background-color: #FF6B35;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.products-main {
    flex: 1;
}

.products-count {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.categories-section {
    background-color: #111111;
    padding: 1.25rem 0;
    border-bottom: 1px solid #222;
}

.cat-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.cat-row-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e0e0e0;
    text-align: center;
}

.cat-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0 0.5rem;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #1c1c1c;
    color: #e0e0e0;
    border: 1px solid #FF6B35;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    white-space: nowrap;
}

.cat-pill svg { flex-shrink: 0; opacity: 0.85; }

.cat-pill:hover {
    background-color: #FF6B35;
    border-color: #FF6B35;
    color: #ffffff;
    transform: translateY(-1px);
}

.cat-pill:hover svg { opacity: 1; }

.cat-pill--all {
    border-color: #444;
    color: #aaa;
}

.cat-pill--all:hover {
    background-color: #FF6B35;
    border-color: #FF6B35;
    color: #ffffff;
}

.cat-divider {
    height: 1px;
    background-color: #222;
    margin: 0.85rem 0;
}

.cat-pill-img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: filter 0.2s, opacity 0.2s;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.cat-pill:hover .cat-pill-img { opacity: 1; }

.why-us-section {
    padding: 2rem 0;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 0.25rem;
}

.why-us-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: box-shadow 0.2s, transform 0.2s;
    min-width: 0;
    overflow: hidden;
    contain: layout style;
}

.why-us-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.why-us-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.1rem;
}

.why-us-item h3 {
    font-size: 0.78rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.why-us-item p {
    font-size: 0.68rem;
    color: #6b7280;
    line-height: 1.4;
}

.about-contact-section {
    background-color: #000000;
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
}

.about-contact-section h2 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.about-contact-section p {
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
}

.about-contact-section a {
    color: #FF6B35;
    text-decoration: none;
}

.about-contact-section a:hover {
    text-decoration: underline;
}

.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9990;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    background-color: #25D366;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s;
    animation: fab-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    will-change: transform;
}

.whatsapp-fab:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab:active { transform: scale(0.96); }

.whatsapp-fab img {
    width: 1.9rem;
    height: 1.9rem;
    object-fit: contain;
}

.whatsapp-fab::before {
    content: 'Escribinos';
    position: absolute;
    right: calc(100% + 0.65rem);
    top: 50%;
    transform: translateY(-50%);
    background-color: #111;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 0.4rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.whatsapp-fab:hover::before { opacity: 1; }

@keyframes fab-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ── Scroll-to-top button ──────────────────────────────────────────
   Visible en TODOS los tamaños. En mobile se centra (igual que antes),
   en desktop se posiciona a la izquierda del FAB de WhatsApp.
   ─────────────────────────────────────────────────────────────── */
.scroll-top-btn {
    position: fixed;
    z-index: 900;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid #ffffff;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s;

    /* Mobile: centrado en la parte inferior */
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
}

.scroll-top-btn--visible {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile: escala desde el centro */
@media (max-width: 767px) {
    .scroll-top-btn--visible {
        transform: translateX(-50%) scale(1);
    }
    .scroll-top-btn:active {
        transform: translateX(-50%) scale(0.92);
    }
}

/* Desktop: se reposiciona a la izquierda del FAB de WhatsApp */
@media (min-width: 768px) {
    .scroll-top-btn {
        bottom: 1.5rem;
        /* FAB está en right:1.5rem con ancho 3.25rem → desplazamos lo suficiente */
        right: calc(1.5rem + 3.25rem + 0.75rem);
        left: auto;
        transform: scale(0.8);
    }
    .scroll-top-btn--visible {
        transform: scale(1);
    }
    .scroll-top-btn:hover {
        background: rgba(0, 0, 0, 0.75);
        transform: scale(1.08);
    }
    .scroll-top-btn:active {
        transform: scale(0.95);
    }
}

@media (min-width: 768px) {
    .nav-desktop { display: flex; gap: 2rem; }
    .nav-link { font-size: 1rem; }
    .mobile-menu-btn { display: none; }
    .mobile-menu { display: none !important; }
    .header-content { height: 5rem; }

    .hero { padding: 1.5rem 0; }
    .hero h1 { font-size: 2rem; }
    .hero-logo { max-width: 350px; }
    .hero p { font-size: 1rem; }

    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

    .product-content { padding: 1rem; gap: 0; }
    .product-name { font-size: 17px; max-height: calc(1.35em * 2); margin-bottom: 0.35rem; }
    .product-meta { font-size: 0.75rem; margin-bottom: 0.5rem; }
    .product-weight { max-width: none; }
    .current-price, .regular-price { font-size: 1.25rem; }
    .original-price { font-size: 0.75rem; }
    .product-price { margin-bottom: 0.75rem; }

    .product-card-actions { height: 2.25rem; gap: 0.35rem; }
    .add-to-cart-btn { font-size: 0.875rem; padding: 0.5rem; gap: 0.5rem; }
    .add-to-cart-btn svg { width: 16px; height: 16px; }
    .share-wa-btn { width: 2rem; }
    .share-wa-btn svg { width: 15px; height: 15px; }

    .cart-layout { grid-template-columns: 2fr 1fr; }
    .cart-item { padding: 1rem; }
    .cart-item-content { gap: 1rem; }
    .cart-item-image { width: 6rem; height: 6rem; }
    .cart-item-name { font-size: 1rem; white-space: normal; overflow: visible; text-overflow: unset; }
    .cart-item-meta { white-space: normal; overflow: visible; text-overflow: unset; }

    #searchBarTop { display: block; }
    .mobile-sticky-wrapper { display: none; }

    .filters-sidebar-desktop {
        display: block;
        position: sticky;
        top: 5.5rem;
        align-self: flex-start;
        max-height: calc(100vh - 6.5rem);
        overflow-y: auto;
    }

    .products-layout { flex-direction: row; }

    .categories-section { padding: 1.75rem 0; }
    .cat-pill { font-size: 0.875rem; padding: 0.45rem 1.1rem; }
    .cat-row-label { font-size: 0.65rem; }
    .cat-pills { padding: 0; }

    .why-us-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding: 0; }
    .why-us-item { padding: 1rem; gap: 0.75rem; }
    .why-us-icon { font-size: 1.75rem; }
    .why-us-item h3 { font-size: 0.95rem; }
    .why-us-item p { font-size: 0.8rem; }

    .whatsapp-fab { bottom: 1.5rem; right: 1.5rem; }
}

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .hero { padding: 1.5rem 0; }
    .hero h1 { font-size: 2rem; }
    .hero-logo { max-width: 400px; }
}

@media (min-width: 1280px) {
    .products-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 767px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .whatsapp-fab {
        bottom: 1rem;
        right: 0.875rem;
        width: 2.9rem;
        height: 2.9rem;
    }
    .whatsapp-fab img { width: 1.65rem; height: 1.65rem; }
    .whatsapp-fab::before { display: none; }

    .cart-page .container { padding-left: 0.75rem; padding-right: 0.75rem; }
    .order-form { padding: 1rem; }
    .cart-item-actions { gap: 0.35rem; }
    .quantity-controls { gap: 0.25rem; }
    .quantity-value { width: 1.5rem; }

    .skeleton-body { padding: 0.35rem; }
}

.header-icon-btn {
    position: relative;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    border-radius: 0.375rem;
}

.header-icon-btn:hover {
    color: #FF6B35;
}

.fav-count {
    position: absolute;
    top: -0.4rem;
    right: -0.4rem;
    background-color: #FF6B35;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: bold;
    border-radius: 9999px;
    width: 1.1rem;
    height: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.fav-btn {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    z-index: 5;
    background: rgba(255,255,255,0.88);
    border: none;
    border-radius: 9999px;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    padding: 0;
    color: #9ca3af;
}

.fav-btn:hover {
    background: #fff;
    transform: scale(1.12);
    color: #FF6B35;
}

.fav-btn--active { color: #FF6B35; }
.fav-btn--active svg { fill: #FF6B35; stroke: #FF6B35; }

/* SIDE PANEL (drawer)*/
.panel-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
    backdrop-filter: blur(2px);
}

.panel-backdrop.panel--open { display: block; }

.side-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(400px, 100vw);
    background: #ffffff;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}

.side-panel.panel--open { transform: translateX(0); }

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #000000;
    color: #ffffff;
    flex-shrink: 0;
}

.panel-header h2 { font-size: 1.1rem; font-weight: 700; margin: 0; }

.panel-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    display: flex;
    transition: color 0.2s;
}

.panel-close-btn:hover { color: #FF6B35; }

.panel-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    text-align: center;
    flex: 1;
}

.panel-empty p { color: #6b7280; font-size: 0.95rem; }
.panel-empty a { color: #FF6B35; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.panel-empty a:hover { text-decoration: underline; }

.panel-product-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: opacity 0.2s;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.panel-product-img {
    width: 3.5rem; height: 3.5rem;
    object-fit: cover; border-radius: 0.375rem;
    flex-shrink: 0; background: #e5e7eb;
}

.panel-product-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 0.15rem;
}

.panel-product-name {
    font-size: 0.85rem; font-weight: 600; color: #111;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.panel-product-brand { font-size: 0.72rem; color: #9ca3af; }
.panel-product-price { font-size: 0.85rem; font-weight: 700; color: #FF6B35; }

.panel-product-actions {
    display: flex; flex-direction: column; gap: 0.35rem; flex-shrink: 0;
}

.panel-add-btn, .panel-remove-btn {
    width: 2rem; height: 2rem;
    border-radius: 0.375rem; border: none;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.panel-add-btn { background: #FF6B35; color: #fff; }
.panel-add-btn:hover { background: #E55A2B; }
.panel-remove-btn { background: #fee2e2; color: #ef4444; }
.panel-remove-btn:hover { background: #fecaca; }

/* ── Tarjetas de pedido ── */
.order-history-card {
    position: static;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.order-history-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.order-history-num  { font-weight: 700; font-size: 0.9rem; color: #111; display: block; }
.order-history-date { font-size: 0.72rem; color: #9ca3af; display: block; margin-top: 0.1rem; }
.order-history-total { font-weight: 700; color: #FF6B35; font-size: 0.95rem; white-space: nowrap; }

.order-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.75rem;
    color: #6b7280;
    flex-shrink: 0;
}

.order-history-items {
    list-style: none;
    margin: 0;
    padding: 0.6rem 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-shrink: 0;
}

.order-history-items li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; }
.order-item-name  { flex: 1; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-item-qty   { color: #9ca3af; flex-shrink: 0; }
.order-item-price { font-weight: 600; color: #111; flex-shrink: 0; }

/* ── Repetir pedido ── */
.order-history-footer {
    padding: 0.6rem 1rem 0.75rem;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.order-repeat-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 0.45rem;
    background-color: #FF6B35; color: #ffffff;
    border: none; border-radius: 0.5rem;
    padding: 0.55rem 1rem; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: background-color 0.2s;
}

.order-repeat-btn:hover  { background-color: #E55A2B; }
.order-repeat-btn:active { transform: scale(0.97); }

/* ── Resumen colapsable del pedido — solo mobile ── */
.order-summary-collapsible { display: none; }

@media (max-width: 767px) {
    .order-summary-collapsible {
        display: block;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        overflow: hidden;
        margin-bottom: 1.25rem;
        background: #ffffff;
    }
}

.order-summary-toggle {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.875rem 1rem; background: #000000; color: #ffffff;
    border: none; cursor: pointer; gap: 0.5rem; text-align: left;
}

.order-summary-toggle-left {
    display: flex; align-items: center; gap: 0.5rem;
    flex: 1; min-width: 0; font-size: 0.875rem; font-weight: 600;
}

.order-summary-toggle-right {
    display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; font-size: 0.9rem;
}

.summary-badge {
    background: #FF6B35; color: #fff;
    font-size: 0.65rem; font-weight: 700;
    padding: 0.15rem 0.45rem; border-radius: 9999px; white-space: nowrap;
}

.summary-chevron { transition: transform 0.25s ease; flex-shrink: 0; }
.order-summary-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.order-summary-body--open { max-height: 600px; }

.summary-items { padding: 0.75rem 1rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.summary-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; }
.summary-item-name  { flex: 1; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-item-qty   { color: #9ca3af; flex-shrink: 0; font-size: 0.75rem; }
.summary-item-price { font-weight: 600; color: #111; flex-shrink: 0; font-size: 0.82rem; }

.summary-total-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 1rem; margin-top: 0.5rem;
    border-top: 1px solid #e5e7eb; font-size: 0.9rem; font-weight: 700; color: #111;
}

.summary-total-row strong { color: #FF6B35; font-size: 1rem; }

@media print {
    .header, .whatsapp-fab, .scroll-top-btn, .mobile-menu-btn,
    .mobile-sticky-wrapper, .filters-sidebar, .product-card-actions,
    .cart-item-actions, .submit-btn, .back-btn { display: none !important; }
    body { background: #fff; color: #000; }
    .cart-item, .order-form { box-shadow: none; border: 1px solid #ccc; }
}