:root {
    --store-bg: var(--arkay-bg);
    --store-card: var(--arkay-white);
    --store-accent: var(--arkay-accent);
    --store-text: var(--arkay-text);
    --store-muted: var(--arkay-text-muted);
    --store-border: var(--arkay-border);
}

.store-body {
    background-color: var(--store-bg);
    color: var(--store-text);
    margin: 0;
}

.store-main {
    padding-top: 80px;
}

.store-hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0.1), transparent);
}

.store-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    color: var(--store-text);
}

.store-subtitle {
    font-size: 1.25rem;
    color: var(--store-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

/* Layout with Sidebar */
.store-layout {
    display: flex;
    gap: 2rem;
    padding-bottom: 6rem;
    align-items: flex-start;
}

.shop-sidebar {
    flex: 0 0 260px;
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--store-border);
}

.store-grid-container {
    flex: 1;
}

.sidebar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    color: var(--store-muted);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cat-btn {
    text-align: left;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 0;
    color: var(--store-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 40px !important;
    width: 100%;
}

.cat-btn.active, .cat-btn:hover {
    color: white;
    background: rgba(139, 92, 246, 0.2);
}

/* Controls */
.store-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.grid-status {
    font-size: 0.9rem;
    color: var(--store-muted);
}

.sort-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 40px !important;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.sort-select:focus {
    border-color: var(--store-accent);
    background: rgba(139, 92, 246, 0.1);
}

/* Grid - Unificado a 3 columnas */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

.product-card-store {
    background: var(--store-card);
    border-radius: 1.5rem;
    padding: 1rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.product-card-store:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(139, 92, 246, 0.3);
}

.product-img-wrapper {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 1.1rem;
    margin-bottom: 1.25rem;
    background: #000;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card-store:hover img {
    transform: scale(1.08);
}

.product-info-store {
    padding: 0.5rem;
}

.product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--store-accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
    display: block;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 500;
}

.add-to-cart-btn, .btn-primary-store, .btn-secondary-store {
    width: 100%;
    padding: 1rem;
    background: var(--store-accent);
    color: white;
    border: 0;
    border-radius: 40px !important;
    margin-top: 1.25rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.add-to-cart-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.add-to-cart-btn:hover {
    background: var(--store-accent);
}

.added-feedback {
    background: #8b5cf6 !important;
}

/* Header & Drawer */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s;
}

.drawer.active {
    visibility: visible;
    opacity: 1;
}

.drawer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.drawer-content {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 420px;
    background: var(--store-dark);
    padding: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
}

.drawer.active .drawer-content {
    transform: translateX(0);
}

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

.close-btn {
    background: transparent;
    border: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Sequential Checkout UI */
.checkout-step {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-step.active {
    display: flex;
}

.form-group-store {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group-store input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.1rem;
    border-radius: 1rem;
    color: white;
    font-family: inherit;
}

.stepper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.step.active {
    background: var(--store-accent);
}

.success-wrap {
    text-align: center;
    padding: 3rem 0;
}

.success-icon {
    width: 65px;
    height: 65px;
    background: var(--store-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

/* Cart Item Styles */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.cart-item-store {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-store img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    background: #000;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.cart-item-info p {
    color: var(--store-muted);
    font-size: 0.85rem;
}

.remove-item {
    background: transparent;
    border: 0;
    color: var(--store-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #ef4444;
}

.empty-cart {
    text-align: center;
    padding: 3rem 0;
    color: var(--store-muted);
}

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

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

/* --- ARKAY FILTER STYLES --- */
.filter-group {
    margin-bottom: 2rem;
}
.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--store-text);
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.filter-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--store-muted);
    cursor: pointer;
}
.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.size-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--store-border);
    background: var(--arkay-white);
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.size-btn:hover, .size-btn.active {
    background: var(--store-accent);
    color: white;
    border-color: var(--store-accent);
}
.color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.color-dot:hover {
    transform: scale(1.2);
}

/* Store Footer Bar */
.store-footer-bar {
    background: #F5F0E8;
    padding: 1.5rem 0;
    border-top: 1px solid var(--store-border);
}
.bar-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--store-text);
}

/* Sidebar Specifics */
#shopSidebar.shop-sidebar {
    background: rgba(253, 251, 247, 0.98) !important;
    border-right: 1px solid var(--store-border);
    color: var(--store-text);
}
.sidebar-title {
    color: var(--store-accent) !important;
    font-family: var(--font-display) !important;
}
.sidebar-toggle-btn {
    background: var(--store-border);
    color: var(--store-text);
}

