/* ========================================
   CART SIDEBAR
   ======================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--color-bg);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.4s var(--ease-out-quart);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.cart-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-brand-blue);
}

.cart-close {
    padding: var(--space-sm);
    color: var(--color-text-soft);
    transition: color 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
}

.cart-close:hover {
    color: var(--color-brand-blue);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--color-bg-alt);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.cart-item-title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-brand-blue);
    margin-bottom: var(--space-xs);
}

.cart-item-price {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-soft);
}

.cart-item-remove {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
}

.cart-item-remove:hover {
    color: var(--color-brand-red);
}

.cart-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.cart-total-label {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-soft);
}

.cart-total-amount {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-brand-blue);
}

.checkout-btn {
    width: 100%;
}

/* ========================================
   SHOP STYLES
   ======================================== */
.shop-controls {
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.shop-controls-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    max-width: 90rem;
    margin: 0 auto;
}

.results-count {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-soft);
}

.shop-filters {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-soft);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: all 0.3s var(--ease-out-quart);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--color-brand-blue);
    border-color: var(--color-brand-blue);
    background: rgba(0, 13, 175, 0.05);
}

.sort-select {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-soft);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: var(--color-brand-blue);
}

.products-section {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--color-bg-alt);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: 90rem;
    margin: 0 auto;
}

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

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2xl);
    }
}

/* ========================================
   PRODUCT CARD
   ======================================== */
.product-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.6s var(--ease-out-quart);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 13, 175, 0.1);
    border-color: rgba(0, 13, 175, 0.15);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out-expo);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    overflow: hidden;
}

.product-image .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s var(--ease-out-quart);
}

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

.product-icon {
    width: 80px;
    height: 80px;
    color: var(--color-brand-blue);
    opacity: 0.8;
}

.product-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-bg);
    background: var(--color-brand-red);
    border-radius: 20px;
    z-index: 2;
}

.product-badge.sale {
    background: var(--color-warning);
}

.product-content {
    padding: var(--space-xl);
}

.product-category {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brand-blue);
    margin-bottom: var(--space-sm);
}

.product-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-brand-blue);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.product-description {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--color-text-soft);
    margin-bottom: var(--space-lg);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl) var(--space-xl);
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-current {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-brand-blue);
}

.price-original {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.price-period {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-bg);
    background: var(--color-brand-blue);
    border-radius: 4px;
    transition: all 0.3s var(--ease-out-quart);
    border: none;
    cursor: pointer;
}

.add-to-cart:hover {
    background: var(--color-brand-dark);
    transform: translateY(-2px);
}

.add-to-cart.added {
    background: var(--color-success);
}

.add-to-cart svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-2xl) var(--space-lg);
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-soft);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.3s var(--ease-out-quart);
}

.page-btn:hover,
.page-btn.active {
    color: var(--color-brand-blue);
    border-color: var(--color-brand-blue);
    background: rgba(0, 13, 175, 0.05);
}

.page-btn.next {
    width: auto;
    padding: 0 var(--space-lg);
    gap: var(--space-sm);
}
