/* =============================================================
   BREAD TEMPLATE - Shop / Ecommerce Styles
   ============================================================= */

/* =============================================================
   1. PRODUCT CARDS
   ============================================================= */
.product-card {
    position: relative;
    overflow: hidden;
    background: var(--color-white);
    transition: all var(--transition-base);
    border: none;
}
.product-card:hover {
    box-shadow: none;
    transform: none;
}
.product-card:hover .product-card-title a { color: var(--color-primary); }

.product-card-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.product-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.product-card:hover .product-card-image-wrapper img {
    transform: scale(1.06);
}

.product-card-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    z-index: 2;
}

.product-card-actions {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 2;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-base);
}
.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card-action {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
    transition: all var(--transition-fast);
}
.product-card-action:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.product-card-quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    transform: translateY(100%);
    transition: transform var(--transition-base);
    z-index: 2;
}
.product-card:hover .product-card-quick-add {
    transform: translateY(0);
}

.product-card-quick-add .btn {
    width: 100%;
    background: rgba(123, 75, 42, 0.95);
    backdrop-filter: blur(4px);
}

.product-card-body {
    padding: var(--space-lg);
}

.product-card-brand {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.product-card-title a {
    color: inherit;
    text-decoration: none;
}
.product-card-title a:hover { color: var(--color-primary); }

.product-card-price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.price-current {
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--color-text);
}

.price-compare {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-card-variants {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}

.variant-swatch {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}
.variant-swatch:hover,
.variant-swatch.active {
    border-color: var(--color-primary);
}

/* =============================================================
   2. PRODUCT GRID / LISTING PAGE
   ============================================================= */
.tienda-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.tienda-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.filter-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section h4 {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.filter-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    cursor: pointer;
    transition: color var(--transition-fast);
}
.filter-item:hover { color: var(--color-primary); }

.filter-item img {
    width: 32px;
    height: 32px;
    border-radius: 0;
    object-fit: cover;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.product-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.product-grid-count {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

.product-grid-sort {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.product-grid-sort select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1.5px solid var(--color-border);
    border-radius: 0;
    font-size: var(--fs-sm);
    background: var(--color-white);
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B7355' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

/* Filter Toggle (Mobile) */
button.filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    margin-bottom: var(--space-md);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button.tienda-sidebar-mobile-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 0;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text);
    align-items: center;
    justify-content: center;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination .active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* =============================================================
   3. PRODUCT DETAIL
   ============================================================= */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.product-gallery-main {
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;
    background: var(--color-bg-alt);
    margin-bottom: var(--space-md);
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-popup-no-margins {
    cursor: zoom-in;
    display: block;
}

.product-gallery-thumbs {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
}

.product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 0;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--transition-fast);
}
.product-thumb:hover,
.product-thumb.active {
    border-color: var(--color-primary);
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding-top: var(--space-md);
}

.product-info-brand {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.product-info h1 {
    font-size: clamp(1.5rem, 3vw, var(--fs-2xl));
    margin-bottom: var(--space-md);
}

.product-info-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.product-info-price .price-current {
    font-size: var(--fs-2xl);
}

.product-info-price .price-compare {
    font-size: var(--fs-lg);
}

.product-info-sku {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.product-info-description {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

/* Variant Selector */
.variant-selector {
    margin-bottom: var(--space-xl);
}

.variant-selector-label {
    font-size: var(--fs-sm);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.variant-selector-label span {
    font-weight: 400;
    color: var(--color-text-light);
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.variant-option {
    padding: 0.5rem 1.25rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    background: var(--color-white);
    color: var(--color-text);
    transition: all var(--transition-fast);
}
.variant-option:hover {
    border-color: var(--color-primary);
}
.variant-option.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}
.variant-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: var(--space-xl);
}

.quantity-selector label {
    font-size: var(--fs-sm);
    font-weight: 700;
    margin-right: var(--space-md);
}

.quantity-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.quantity-btn:first-of-type {
    border-radius: 0 0 0 var(--radius-md);
    border-right: none;
}
.quantity-btn:last-of-type {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: none;
}
.quantity-btn:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.quantity-input {
    width: 56px;
    height: 42px;
    text-align: center;
    border: 1.5px solid var(--color-border);
    border-left: none;
    border-right: none;
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--color-text);
    outline: none;
    -moz-appearance: textfield;
}
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart / Wishlist Buttons */
.product-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.btn-add-cart {
    flex: 1;
    padding: 0.9rem 2rem;
    font-size: var(--fs-base);
}

.btn-wishlist {
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-wishlist:hover {
    border-color: var(--color-sale);
    color: var(--color-sale);
}
.btn-wishlist svg {
    width: 22px;
    height: 22px;
}

/* Product Description Tabs */
.product-tabs {
    margin-top: var(--space-3xl);
}

.product-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--color-border-light);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.product-tab-btn {
    padding: var(--space-md) 0;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.product-tab-btn:hover { color: var(--color-text); }
.product-tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.product-tab-content {
    display: none;
    line-height: 1.8;
    color: var(--color-text-light);
}
.product-tab-content.active { display: block; }

/* Related Products */
.related-products {
    padding: var(--space-4xl) 0;
}

.related-products h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

/* =============================================================
   4. CART PAGE
   ============================================================= */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-3xl);
    align-items: start;
}

.cart-table {
    width: 100%;
}

.cart-table th {
    padding: var(--space-md) 0;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    text-align: left;
}

.cart-item {
    border-bottom: 1px solid var(--color-border-light);
}

.cart-item td {
    padding: var(--space-lg) 0;
    vertical-align: middle;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-bg-alt);
}
.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details h4 {
    font-size: var(--fs-base);
    margin-bottom: var(--space-xs);
}
.cart-item-details p {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.cart-item-price {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: var(--space-sm);
    transition: color var(--transition-fast);
}
.cart-item-remove:hover { color: var(--color-error); }

.cart-summary {
    background: var(--color-bg-alt);
    border-radius: 0;
    padding: var(--space-xl);
}

.cart-summary h3 {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    font-size: var(--fs-base);
}

.cart-summary-row.total {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-primary);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--color-border);
    font-family: var(--font-heading);
}

.cart-summary .btn {
    width: 100%;
    margin-top: var(--space-xl);
}

.cart-empty {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.cart-empty svg {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.cart-empty h2 { margin-bottom: var(--space-md); }

.cart-empty p {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

/* Cart Drawer */
.cart-drawer-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.cart-drawer-item-img {
    width: 64px;
    height: 64px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-bg-alt);
}
.cart-drawer-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-drawer-item-info {
    flex: 1;
}

.cart-drawer-item-info h4 {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-xs);
}

.cart-drawer-item-info .price-current {
    font-size: var(--fs-base);
}

.cart-drawer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 700;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg) var(--space-xl);
}

/* =============================================================
   5. WISHLIST DRAWER
   ============================================================= */
.wishlist-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.wishlist-item-img {
    width: 64px;
    height: 64px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-bg-alt);
}
.wishlist-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-item-info { flex: 1; }
.wishlist-item-info h4 {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-xs);
}

.wishlist-empty {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
    color: var(--color-text-light);
}

/* =============================================================
   6. LOGIN / REGISTER / ACCOUNT
   ============================================================= */
.auth-section {
    padding: var(--space-4xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.auth-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 0;
    padding: var(--space-2xl);
}

.auth-card h2 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-sm);
}

.auth-card p {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    font-size: var(--fs-sm);
}

.auth-card .btn { width: 100%; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.auth-link {
    font-size: var(--fs-sm);
    color: var(--color-accent);
    text-decoration: underline;
}

/* Account Dashboard */
.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.account-sidebar {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 0;
    overflow: hidden;
}

.account-sidebar-user {
    padding: var(--space-xl);
    text-align: center;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border-light);
}

.account-sidebar-user .avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--color-accent-pale);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 700;
    margin: 0 auto var(--space-md);
}

.account-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border-light);
    transition: all var(--transition-fast);
}
.account-sidebar-nav a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}
.account-sidebar-nav a.active {
    color: var(--color-primary);
    border-left: 3px solid var(--color-primary);
    font-weight: 700;
}

.account-content {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 0;
    padding: var(--space-2xl);
}

.account-content h2 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

/* Orders Table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    padding: var(--space-md);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    text-align: left;
}

.orders-table td {
    padding: var(--space-md);
    font-size: var(--fs-sm);
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

.order-status {
    display: inline-flex;
    padding: 0.2rem 0.65rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.order-status.completed {
    background: rgba(94, 139, 62, 0.1);
    color: var(--color-success);
}
.order-status.pending {
    background: rgba(212, 160, 23, 0.1);
    color: var(--color-warning);
}

/* Address Cards */
.address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.address-card {
    border: 1px solid var(--color-border-light);
    border-radius: 0;
    padding: var(--space-lg);
}

.address-card p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.7;
}

.address-card-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

/* =============================================================
   7. BLOG
   ============================================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.blog-card {
    overflow: hidden;
    background: var(--color-white);
    border: none;
    transition: all var(--transition-base);
}
.blog-card:hover {
    box-shadow: none;
    transform: none;
}
.blog-card:hover .blog-card-title a { color: var(--color-primary); }

.blog-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.06);
}

.blog-card-body {
    padding: var(--space-xl);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.blog-card-meta .blog-tag {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 0.2rem 0.6rem;
    font-weight: 700;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}
.blog-card-title a {
    color: var(--color-text);
    text-decoration: none;
}
.blog-card-title a:hover { color: var(--color-primary); }

.blog-card-excerpt {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.blog-card-link {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.blog-card-link:hover { color: var(--color-primary); }
.blog-card-link svg {
    transition: transform var(--transition-fast);
}
.blog-card-link:hover svg { transform: translateX(4px); }

/* Blog Detail */
.blog-detail {
    max-width: 800px;
    margin: 0 auto;
}

.blog-detail-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.blog-detail-header h1 {
    margin-bottom: var(--space-md);
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.blog-detail-image {
    border-radius: 0;
    overflow: hidden;
    margin-bottom: var(--space-2xl);
}

.blog-detail-image img {
    width: 100%;
    height: auto;
}

.blog-detail-content {
    font-size: var(--fs-md);
    line-height: 1.9;
    color: var(--color-text);
}

.blog-detail-content p { margin-bottom: var(--space-lg); }
.blog-detail-content h2 { margin: var(--space-2xl) 0 var(--space-lg); font-size: var(--fs-xl); }
.blog-detail-content h3 { margin: var(--space-xl) 0 var(--space-md); }
.blog-detail-content img {
    border-radius: 0;
    margin: var(--space-xl) 0;
}
.blog-detail-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-xl);
    margin: var(--space-xl) 0;
    font-style: italic;
    color: var(--color-text-light);
}

.blog-detail-nav {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border-light);
}

.blog-detail-nav a {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.blog-detail-nav a:hover { color: var(--color-primary); }

.blog-related {
    margin-top: var(--space-4xl);
}

.blog-related h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
}

/* =============================================================
   8. CONTACT PAGE
   ============================================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-info {
    padding: var(--space-2xl);
    background: var(--color-bg-alt);
    border-radius: 0;
}

.contact-info h2 {
    margin-bottom: var(--space-xl);
}

.contact-info-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-info-item svg {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 2px;
}

.contact-info-item h4 {
    font-size: var(--fs-base);
    margin-bottom: var(--space-xs);
}

.contact-info-item p,
.contact-info-item a {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

.contact-form {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 0;
    padding: var(--space-2xl);
}

.contact-form h2 {
    margin-bottom: var(--space-xl);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-map {
    margin-top: var(--space-3xl);
    border-radius: 0;
    overflow: hidden;
    height: 400px;
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Store locations */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.store-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 0;
    padding: var(--space-xl);
}

.store-card h4 { margin-bottom: var(--space-md); }
.store-card p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* =============================================================
   9. CATEGORIES PAGE
   ============================================================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.category-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    overflow: hidden;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.category-card:hover img { transform: scale(1.06); }

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(58, 39, 24, 0.8), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-xl);
}

.category-card-overlay h3 {
    color: var(--color-white);
    font-size: var(--fs-lg);
}

/* =============================================================
   10. INDEX COMPONENTS (Homepage Sections)
   ============================================================= */

/* Index Products */
.index-products {
    text-align: center;
}

.index-products .product-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Index Collections */
.index-collections {
    text-align: center;
}

.index-collections .categories-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Index Collection (Single) */
.index-collection {
    text-align: center;
}

/* Index Image + Text */
.index-image-text {
    overflow: hidden;
}

.index-image-text .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.index-image-text-img {
    border-radius: 0;
    overflow: hidden;
}

.index-image-text-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.index-image-text-content {
    padding: var(--space-xl) 0;
}

.index-image-text-content .script-text {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-sm);
}

.index-image-text-content h2 {
    margin-bottom: var(--space-lg);
}

.index-image-text-content p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

/* Index Two Photos */
.index-two-photos {
    text-align: center;
}

.index-two-photos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.index-two-photos-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.index-two-photos-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Index Three Images */
.index-three-images {
    text-align: center;
}

.index-three-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-md);
}

.index-three-images-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    aspect-ratio: 1;
}

/* Index Photo with Link */
.index-photo-link {
    position: relative;
    border-radius: 0;
    overflow: hidden;
}

.index-photo-link img {
    width: 100%;
    height: auto;
}

/* Index Hover Images */
.index-hover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.index-hover-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
}

.index-hover-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.index-hover-item:hover img { transform: scale(1.08); }

.index-hover-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(58, 39, 24, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: background var(--transition-base);
    text-align: center;
    padding: var(--space-lg);
}
.index-hover-item:hover .index-hover-item-overlay {
    background: rgba(58, 39, 24, 0.6);
}

.index-hover-item-overlay h3,
.index-hover-item-overlay p {
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
    color: var(--color-white);
}
.index-hover-item:hover .index-hover-item-overlay h3,
.index-hover-item:hover .index-hover-item-overlay p {
    opacity: 1;
    transform: translateY(0);
}
.index-hover-item-overlay p {
    transition-delay: 0.1s;
    font-size: var(--fs-sm);
    margin-top: var(--space-sm);
}

/* Index Newsletter */
.index-newsletter {
    background-color: var(--color-dark);
    color: var(--color-text-inverse);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.index-newsletter .section-tag { color: var(--color-primary); }
.index-newsletter .section-title { color: var(--color-white); }
.index-newsletter .section-subtitle { color: rgba(255,255,255,0.5); }

.index-newsletter .container {
    position: relative;
    z-index: 1;
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: var(--fs-base);
    background: transparent;
    color: var(--color-white);
    outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus {
    border-color: var(--color-primary);
}

/* Index Blog Preview */
.index-blog {
    text-align: center;
}

/* Index Brands */
.index-brands {
    text-align: center;
}

.brands-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2xl);
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item img {
    max-height: 50px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all var(--transition-base);
}
.brand-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* Index FAQ */
.index-faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border-light);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-lg) 0;
    background: transparent;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--color-primary); }

.faq-question svg {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
    color: var(--color-accent);
}

.faq-item.open .faq-question svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding-bottom: var(--space-lg);
    color: var(--color-text-light);
    line-height: 1.8;
}

/* Index Video */
.index-video {
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 0;
    overflow: hidden;
    background: var(--color-black);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Index Text */
.index-text {
    text-align: center;
}

.index-text-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text-light);
    line-height: 1.9;
}

/* Index Map */
.index-map {
    border-radius: 0;
    overflow: hidden;
}

.index-map iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Index Form */
.index-form {
    text-align: center;
}

.index-form form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

/* Index Appointment (Cita) */
.index-appointment {
    text-align: center;
    background: var(--color-bg-alt);
}

.index-appointment form {
    max-width: 600px;
    margin: var(--space-xl) auto 0;
    text-align: left;
}

/* Index Text + Contact */
.index-text-contact {
    overflow: hidden;
}

.index-text-contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

/* Index Instagram */
.index-instagram {
    text-align: center;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-sm);
}

.instagram-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0;
    position: relative;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}
.instagram-item:hover img { transform: scale(1.08); }

.instagram-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(123, 75, 42, 0);
    transition: background var(--transition-base);
}
.instagram-item:hover::after {
    background: rgba(123, 75, 42, 0.3);
}

/* =============================================================
   11. SLIDESHOW 2 (Alt Slider - Card Style)
   ============================================================= */
.slider2-section {
    overflow: hidden;
    position: relative;
}

.slider2-track {
    position: relative;
    min-height: 400px;
}

.slider2-slide {
    display: none;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--transition-slow);
}
.slider2-slide.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    opacity: 1;
    position: relative;
}

.slider2-content {
    display: flex;
    align-items: center;
    padding: var(--space-3xl);
    background: var(--color-dark);
    color: var(--color-text-inverse);
}

.slider2-title { color: var(--color-white); }
.slider2-text { color: rgba(255,255,255,0.6); }

.slider2-content-inner {
    max-width: 480px;
}

.slider2-tag {
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: var(--space-md);
}

.slider2-title {
    font-size: clamp(1.25rem, 2.5vw, var(--fs-2xl));
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.slider2-text {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.slider2-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}
.slider2-btn svg {
    transition: transform var(--transition-fast);
}
.slider2-btn:hover svg { transform: translateX(4px); }

.slider2-image {
    overflow: hidden;
}

.slider2-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.slider2-nav {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
    display: flex;
    gap: var(--space-sm);
    z-index: 5;
}

.slider2-arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--color-text);
    transition: all var(--transition-fast);
}
.slider2-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.slider2-counter {
    position: absolute;
    bottom: var(--space-xl);
    left: var(--space-xl);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    z-index: 5;
}

/* =============================================================
   12. SEARCH RESULTS
   ============================================================= */
.search-results {
    max-width: 800px;
    margin: 0 auto;
}

.search-result-item {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.search-result-item img {
    width: 100px;
    height: 100px;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info h3 {
    font-size: var(--fs-md);
    margin-bottom: var(--space-xs);
}
.search-result-info h3 a {
    color: var(--color-text);
    text-decoration: none;
}
.search-result-info h3 a:hover { color: var(--color-primary); }

.search-result-info p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

/* =============================================================
   13. 404 / COMING SOON
   ============================================================= */
.page-404 {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-404 h1 {
    font-size: 8rem;
    color: var(--color-accent-pale);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.page-404 h2 { margin-bottom: var(--space-md); }

.page-404 p {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    max-width: 400px;
}

.coming-soon {
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    padding: var(--space-xl);
}

.coming-soon h1 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.coming-soon p {
    color: var(--color-text-light);
}

/* =============================================================
   14. CONFIRMATION / THANK YOU
   ============================================================= */
.thank-you {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    max-width: 600px;
    margin: 0 auto;
}

.thank-you svg {
    color: var(--color-success);
    margin-bottom: var(--space-xl);
}

.thank-you h1 { margin-bottom: var(--space-md); }
.thank-you p {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

/* =============================================================
   15. DROP SELECTORS (Variant/Sort/Filter Dropdowns)
   ============================================================= */
.custom-select {
    position: relative;
    display: inline-block;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 0;
    background: var(--color-white);
    cursor: pointer;
    font-size: var(--fs-sm);
    min-width: 160px;
    transition: border-color var(--transition-fast);
}
.custom-select-trigger:hover { border-color: var(--color-accent); }

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    z-index: 20;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.custom-select.open .custom-select-options { display: block; }

.custom-select-option {
    padding: 0.5rem 1rem;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.custom-select-option:hover {
    background: var(--color-bg);
}
.custom-select-option.selected {
    color: var(--color-primary);
    font-weight: 600;
}

/* =============================================================
   16. RESPONSIVE - SHOP PAGES
   ============================================================= */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .index-products .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-layout {
        grid-template-columns: 1fr;
    }

    .instagram-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .tienda-layout {
        grid-template-columns: 1fr;
    }

    .tienda-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        height: 100vh;
        z-index: 1000;
        background-color: var(--color-white);
        padding: 2rem;
        overflow-y: auto;
    }

    .tienda-sidebar.sidebar-open {
        display: block;
    }

    button.filter-toggle {
        display: flex;
    }

    button.tienda-sidebar-mobile-close {
        display: flex;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .product-gallery {
        position: static;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .auth-container {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .index-image-text .container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .index-two-photos-grid {
        grid-template-columns: 1fr;
    }

    .index-three-images-grid {
        grid-template-columns: 1fr 1fr;
    }

    .index-text-contact .container {
        grid-template-columns: 1fr;
    }

    .index-products .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .slider2-slide.active {
        grid-template-columns: 1fr;
    }

    .slider2-image img {
        min-height: 220px;
        max-height: 250px;
    }

    .slider2-content {
        padding: var(--space-xl);
    }

    .slider2-nav {
        position: static;
        justify-content: center;
        padding: var(--space-md);
        background: var(--color-dark);
    }

    .slider2-counter {
        position: static;
        text-align: center;
        padding-bottom: var(--space-md);
        background: var(--color-dark);
        color: rgba(255,255,255,0.4);
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .address-grid {
        grid-template-columns: 1fr;
    }

    .index-collections .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .index-products .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .product-card-quick-add {
        transform: translateY(0);
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .index-three-images-grid {
        grid-template-columns: 1fr;
    }

    .index-collections .categories-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    .brands-track {
        gap: var(--space-xl);
    }

    .page-404 h1 {
        font-size: 5rem;
    }
}
