/**
 * Shop Page Styles - MOBILE FIRST APPROACH
 * 
 * Author: GoneClear Development Team
 * Description: Comprehensive styling for the e-commerce shop page including
 *              product grids, cart sidebar, filters, and responsive design
 * Features: Grid/List view toggle, sliding cart, price filters, mobile responsive
 * Last Updated: January 2026
 * 
 * ARCHITECTURE: Mobile-first (base styles for mobile, enhanced for desktop)
 */

/* ========================================
   FONT IMPORTS & BASE STYLES
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

/* ========================================
   MOBILE BASE STYLES
   ======================================== */

/* Global element styles */
a {
    text-decoration: none;
    color: black;
}

button {
    cursor: pointer;
}

/* Shop main container */
.shop-main {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Shop header */
.shop-header {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.title-view-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0;
}

.title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #122b46;
    margin: 0;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

/* View toggle controls (mobile) */
.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn i {
    font-size: 1.3rem;
    color: #555;
}

.view-btn:hover {
    background: rgba(95, 121, 160, 0.1);
}

.view-btn.active {
    background: rgb(95, 121, 160);
    border-color: rgb(95, 121, 160);
}

.view-btn.active i {
    color: white;
}

/* ========================================
   SHOPPING CART SIDEBAR - MOBILE FIRST
   ======================================== */

.cartBar {
    background-color: #19427f;
    color: white;
    width: 100vw;
    max-width: 100%;
    position: fixed;
    top: 0;
    right: -100vw;
    bottom: 0;
    display: grid;
    grid-template-rows: 70px 1fr 70px;
    filter: drop-shadow(0 3px 10px rgba(35, 34, 34, 0.437));
    transition: 0.5s;
    z-index: 1000;
}

.cartBar h1 {
    margin: 0;
    padding: 20px 50px 20px 20px;
    font-size: 1.1rem;
    position: relative;
    color: white; /* Always white */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

/* Add "Shopping Cart" text via CSS - white on all screens */
.cartBar h1::before {
    content: 'Shopping Cart';
    color: white; /* Always white */
    font-weight: 300;
}

/* Close icon button */
.cart-close-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.2s ease;
}

.cart-close-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) rotate(90deg);
}

/* Desktop: Shows "Shopping Cart" */
@media (min-width: 768px) {
    
    .cartBar{
        width: 400px;
        right: -400px;
    }
    .cartBar h1 {
        font-size: 1.5rem;
         padding: 20px 60px 20px 30px;
    }
    
    .cartBar h1::before {
        content: 'Shopping Cart'; /* Desktop */
        color: white;
        font-size: 1.5rem;
    }
    
    .cart-close-icon {
        width: 36px;
        height: 36px;
        font-size: 22px;
        right: 18px;
    }
}

.cartBar .btn {
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.cartBar .btn button {
    background-color: rgb(87, 145, 232);
    border: none;
    font-family: 'Open Sans';
    font-weight: 500;
    color: white;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.cartBar .btn button:hover {
    background-color: rgba(38, 86, 159, 0.8);
}

.cartBar .btn button.close {
    color: black;
    background-color: rgba(242, 236, 236, 0.941);
}

.cartBar .btn button.close:hover {
    background-color: rgba(214, 216, 235, 0.941);
}

.cartBar .listCart {
    overflow: auto;
    padding-bottom: 100px;
}

.cartBar .listCart::-webkit-scrollbar {
    width: 0;
}

body.activeBarcart .cartBar {
    right: 0;
}

/* Cart overlay on mobile */
body.activeBarcart::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ========================================
   CART ITEM STYLES - MOBILE FIRST
   ======================================== */

.listCart .item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.listCart .cart-item-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

.listCart .item .image {
    width: 70px;
    flex-shrink: 0;
}

.listCart .item .image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.listCart .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.listCart .product-details .name {
    font-size: 14px;
    font-weight: 600;
    color: #f3f2f2;
    line-height: 1.3;
    cursor: pointer;
}

.listCart .product-details .name:hover {
    text-decoration: underline;
}

/* Price details */
.listCart .price-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.listCart .price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.listCart .price-line .label {
    color: #92989d;
    font-weight: 500;
}

.listCart .price-line .value {
    color: #f3f2f2;
    font-weight: 600;
}

.listCart .price-line.total {
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2px;
}

.listCart .price-line.total .label {
    color: #4a90e2;
    font-weight: 600;
}

.listCart .price-line.total .value {
    color: #4a90e2;
    font-size: 15px;
    font-weight: 700;
}

/* Quantity controls and trash icon row */
.listCart .quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.listCart .item .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    flex: 1;
}

.listCart .item .quantity .minus,
.listCart .item .quantity .plus {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.3);
    border-radius: 6px;
    cursor: pointer;
    color: #4a90e2;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease;
}

.listCart .item .quantity .minus:hover,
.listCart .item .quantity .plus:hover {
    background: #4a90e2;
    color: white;
    transform: scale(1.05);
}

.listCart .item .quantity input {
    width: 45px;
    text-align: center;
    padding: 6px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #f3f2f2;
    font-weight: 600;
    font-size: 14px;
}

.listCart .item .quantity input:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.15);
}

.listCart .quantity-row .delete-icon {
    font-size: 22px;
    color: #e74c3c;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 6px;
    flex-shrink: 0;
}

.listCart .quantity-row .delete-icon:hover {
    color: #c0392b;
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
}

/* ========================================
   STICKY SUBTOTAL - MOBILE FIRST
   ======================================== */

.cart-sticky-summary {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    padding: 15px;
    border-top: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: slideUp 0.3s ease-out;
}

.cart-sticky-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sticky-summary .summary-label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-sticky-summary .summary-value {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
/* Desktop adjustments */
@media (min-width: 768px) {
    body.activeBarcart .cartBar {
        right: 0;
    }
    
    .cartBar .btn button {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .cart-sticky-summary {
        padding: 20px;
    }
    
    .cart-sticky-summary .summary-label {
        font-size: 16px;
    }
    
    .cart-sticky-summary .summary-value {
        font-size: 24px;
    }
}

/* ========================================
   MAIN SHOP CONTAINER - MOBILE FIRST
   ======================================== */

.shop-container {
    margin: 1rem auto;
    padding: 0 1rem;
}

/* ========================================
   SEARCH AND CONTROLS - MOBILE FIRST
   ======================================== */

.shop-controls {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.search-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.search-box {
    width: 100%;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box input::placeholder {
    color: #999;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.3rem;
    pointer-events: none;
}

/* Items per page selector - mobile */
.items-per-page {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.items-per-page span {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.ipp-btn {
    padding: 8px 14px;
    background: white;
    border: 2px solid #ddd;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.ipp-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.ipp-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* ========================================
   PAGINATION CONTROLS - MOBILE FIRST
   ======================================== */

.pagination-controls {
    margin: 2rem auto 1rem;
    text-align: center;
    padding: 0 1rem;
}

.pagination {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.page-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-btn.active {
    background: #122b46;
    color: white;
    border-color: #122b46;
    font-weight: bold;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.page-btn i {
    font-size: 1.1rem;
}

/* Page number buttons */
.page-num-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-num-btn:hover:not(.active) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-num-btn.active {
    background: #122b46;
    color: white;
    border-color: #122b46;
    font-weight: bold;
}

/* ========================================
   PRODUCT GRID/LIST - MOBILE FIRST
   ======================================== */

.listProduct {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Grid view - Mobile */
.listProduct .item {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    border: 2px solid #36333316;
    display: flex;
    flex-direction: column;
}

.listProduct .item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-container {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: #fff;
}

.listProduct .item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.listProduct .item:hover img {
    transform: scale(1.05);
}

.listProduct .item h2 {
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    color: #333;
    min-height: 2.5em;
    line-height: 1.3;
}

.listProduct .item .price {
    letter-spacing: 1px;
    font-size: 1rem;
    font-weight: bold;
    color: #122b46;
    margin: 0.5rem 0;
}

.listProduct .item button {
    background-color: #122b46;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
    border: none;
    margin-top: auto;
    font-size: 0.85rem;
}

.listProduct .item button:hover {
    background: #0f1f35;
}

/* List view - Mobile friendly */
.listProduct.list-view,
.listProduct.list-view-active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.listProduct.list-view .item,
.listProduct.list-view-active .item {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1rem;
}

.list-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.list-item-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.list-item-image .image-container {
    width: 120px;
    height: 120px;
}

.list-item-image img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.list-item-details {
    flex: 1;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item-details h2 {
    font-size: 1.1rem;
    margin: 0;
}

.list-item-details .price {
    font-size: 1.2rem;
    margin: 0;
}

.list-item-details .list-item-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-item-action {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.list-item-action button {
    width: 100%;
}

.list-item-action .addCart {
    width: 100%;
}

/* Image placeholder */
.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    border-radius: 4px;
}

/* ========================================
   FILTER PANEL - MOBILE FIRST
   ======================================== */

.filter-panel {
    background: white;
    width: 100vw;
    max-width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -100vw;
    z-index: 1100;
    padding: 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: left 0.5s ease;
    display: flex;
    flex-direction: column;
}

.filter-panel.active {
    left: 0;
}

/* Filter panel header - similar to cart */
.filter-panel::before {
    content: 'Filters';
    display: block;
    background: #19427f;
    color: white;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
    flex-shrink: 0;
}

/* Filter panel content wrapper */
.filter-section,
.price-ranges,
.category-filter {
    padding: 0 1.5rem;
}

.filter-section:first-of-type {
    padding-top: 1.5rem;
}

/* Filter panel header */
.filter-section h3 {
    color: #122b46;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    padding-top: 0;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section h3 {
    color: #122b46;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.price-inputs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-direction: column;
}

.price-inputs input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}

.price-inputs input:focus {
    outline: none;
    border-color: #667eea;
}

#applyFilter,
#resetFilter {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

#applyFilter {
    background: #19427f;
    color: white;
}

#applyFilter:hover {
    background: #0f1f35;
}

#resetFilter {
    background: #f0f0f0;
    color: #333;
}

#resetFilter:hover {
    background: #e0e0e0;
}

.price-ranges h4 {
    color: #122b46;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.range-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.range-options label {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.range-options label:hover {
    background: #e9ecef;
}

.range-options input[type="radio"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #122b46;
}

/* Category filter section */
.category-filter {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.category-filter h4 {
    color: #122b46;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.category-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-options label {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.category-options label:hover {
    background: #e9ecef;
}

.category-options input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #122b46;
}

/* Filter overlay for mobile */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
}

.filter-overlay.active {
    display: block;
}

/* ========================================
   FILTER TAB - Side button to open filter
   ======================================== */

.filter-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #667acb;
    color: white;
    padding: 25px 10px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.3);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 140px;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.filter-tab:hover {
    background-color: #5566b8;
    width: 45px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-50%) translateX(2px);
}

.filter-tab:active {
    transform: translateY(-50%) translateX(0);
}

/* Hide filter tab when filter panel is open */
body.filter-open .filter-tab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.filter-tab span {
    writing-mode: vertical-lr;
    -webkit-writing-mode: vertical-lr;
    -ms-writing-mode: tb-lr;
    text-orientation: upright;
    -webkit-text-orientation: upright;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 900;
}

/* Filter close button inside panel */
.filter-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    z-index: 1102;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
    border-radius: 4px;
}

.filter-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ========================================
   NOTIFICATIONS
   ======================================== */

.add-confirmation {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgb(95, 121, 160);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    font-family: 'Open Sans', sans-serif;
    animation: slideIn 0.3s ease-out;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.add-confirmation.fadeOut {
    opacity: 0;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   LOADING STATE
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #122b46;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    color: white;
    margin-top: 1rem;
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   TABLET BREAKPOINT (min-width: 768px)
   ======================================== */

@media screen and (min-width: 768px) {
    /* Header adjustments */
    .shop-header {
        padding: 1rem 2rem;
    }

    .title-view-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .title {
        font-size: 2rem;
    }

    .view-toggle {
        display: flex;
        gap: 0.5rem;
    }

    .view-btn i {
        font-size: 1.5rem;
    }

    /* Cart bar - tablet size */
    .cartBar {
        width: 400px;
        right: -400px;
    }

    body.activeBarcart .cartBar {
        right: 0;
    }

    .cartBar h1 {
        font-size: 1.5rem;
    }

    .cartBar .btn button {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    /* Cart sticky summary */
    .cart-sticky-summary {
        padding: 20px;
    }

    .cart-sticky-summary .summary-label {
        font-size: 16px;
    }

    .cart-sticky-summary .summary-value {
        font-size: 24px;
    }

    /* Shop container */
    .shop-container {
        max-width: 1200px;
        margin: 2rem auto;
        padding: 0 2rem;
    }

    /* Search controls */
    .shop-controls {
        padding: 1.5rem 2rem;
    }

    .search-controls {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
    }

    .search-box {
        flex: 1;
        max-width: 500px;
    }

    .items-per-page {
        width: auto;
    }

    .items-per-page span {
        width: auto;
        margin-right: 5px;
        font-size: 0.9rem;
    }

    .ipp-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Pagination */
    .pagination-controls {
        margin: 3rem auto;
    }

    .page-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 1rem;
        font-size: 0.95rem;
    }

    .page-btn i {
        font-size: 1.2rem;
    }

    /* Page number buttons */
    .page-num-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 1rem;
        font-size: 0.95rem;
    }

    /* Product grid - 3 columns on tablet */
    .listProduct {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .listProduct .item {
        padding: 1rem;
    }

    .image-container {
        height: 180px;
        margin-bottom: 1rem;
    }

    .listProduct .item h2 {
        font-size: 1rem;
        min-height: 2.8em;
    }

    .listProduct .item .price {
        font-size: 1.1rem;
    }

    .listProduct .item button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    /* List view - DESKTOP GRID LAYOUT (original design) */
    .listProduct.list-view,
    .listProduct.list-view-active {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .listProduct.list-view .item,
    .listProduct.list-view-active .item {
        width: 100%;
        padding: 15px;
        border-radius: 10px;
        text-align: left;
    }

    .list-item-content {
        display: grid;
        grid-template-columns: 150px 1fr 120px;
        gap: 50px;
        align-items: center;
    }

    .list-item-image {
        justify-content: flex-start;
    }

    .list-item-image .image-container {
        width: 150px;
        height: 150px;
    }

    .list-item-image img {
        max-width: 100%;
        max-height: 150px;
        object-fit: contain;
    }

    .list-item-details {
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .list-item-details h2 {
        font-size: 18px;
        margin: 0;
    }

    .list-item-details .price {
        font-size: 1.2rem;
    }

    .list-item-details .list-item-description {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #666;
        font-size: 14px;
        margin: 0;
    }

    .list-item-action {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        width: auto;
    }

    .list-item-action button {
        width: auto;
    }

    .list-item-action .addCart {
        width: auto;
        min-width: 120px;
    }

    /* Filter panel - sidebar on tablet */
    .filter-panel {
        width: 350px;
        left: -350px;
    }

    .filter-panel.active {
        left: 0;
    }

    /* Adjust padding for desktop sidebar */
    .filter-section,
    .price-ranges,
    .category-filter {
        padding: 0 2rem;
    }

    .filter-section:first-of-type {
        padding-top: 2rem;
    }

    /* Keep price inputs stacked vertically on desktop too */
    .price-inputs {
        flex-direction: column;
    }

    .price-inputs input {
        width: 100%;
    }

    body.activeBarcart .container,
    body.activeBarcart .filter-panel {
        transform: translateX(-200px);
    }
}

/* ========================================
   DESKTOP BREAKPOINT (min-width: 992px)
   ======================================== */

@media screen and (min-width: 992px) {
    /* Product grid - 4 columns on desktop */
    .listProduct {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .image-container {
        height: 200px;
    }

    .listProduct .item h2 {
        font-size: 1.05rem;
    }

    .listProduct .item button {
        font-size: 1rem;
    }

    /* List view adjustments */
    .list-item-image .image-container {
        width: 180px;
        height: 180px;
    }

    .list-item-details h2 {
        font-size: 1.3rem;
    }

    .list-item-details .price {
        font-size: 1.3rem;
    }

    body.activeBarcart .container,
    body.activeBarcart .filter-panel {
        transform: translateX(-250px);
    }
}

/* ========================================
   LARGE DESKTOP BREAKPOINT (min-width: 1200px)
   ======================================== */

@media screen and (min-width: 1200px) {
    .listProduct {
        gap: 2.5rem;
    }

    .listProduct .item {
        padding: 1.25rem;
    }
}