:root {
    --primary-color: #8A5A44;
    --primary-light: #a47965;
    --secondary-color: #D8C3A5;
    --accent-color: #E98074;
    --text-color: #2D2D2A;
    --light-text: #6C6C6A;
    --background-color: #F9F7F3;
    --white: #FFFFFF;
    --light-gray: #E5E5E5;
    --medium-gray: #BCBCBC;
    --dark-gray: #5A5A5A;
    --success: #4CAF50;
    --sale: #FF5252;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    --transition: all 0.3s ease;
  }
  
  body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Page Banner */
  .page-banner {
    background-color: var(--secondary-color);
    padding: 70px 0;
    text-align: center;
    margin-bottom: 50px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/banner-background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
  }
  
  .page-banner h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
  }
  
  .page-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
  }
  
  /* Shop Container Layout */
  .shop-container {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
  }
  
  /* Mobile Filter Toggle */
  .filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    width: 100%;
    justify-content: center;
    transition: var(--transition);
  }
  
  .filter-toggle:hover {
    background-color: var(--primary-light);
  }
  
  /* Shop Sidebar */
  .shop-sidebar {
    flex: 0 0 260px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    align-self: flex-start;
    overflow: hidden;
  }
  
  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
  }
  
  .close-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark-gray);
  }
  
  /* Filter Section */
  .filter-section {
    padding: 20px;
  }
  
  .filter-group {
    margin-bottom: 25px;
  }
  
  .filter-group h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
    font-family: 'Lato', sans-serif;
  }
  
  /* Custom Checkbox */
  .filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color);
    user-select: none;
  }
  
  .custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  .checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 3px;
    transition: var(--transition);
  }
  
  .custom-checkbox:hover input ~ .checkmark {
    border-color: var(--primary-color);
  }
  
  .custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  .custom-checkbox input:checked ~ .checkmark:after {
    display: block;
  }
  
  .custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  
  /* Price Range Slider */
  .price-slider {
    position: relative;
    height: 6px;
    margin: 30px 10px 15px;
  }
  
  .slider-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-color: var(--light-gray);
    border-radius: 3px;
    z-index: 1;
  }
  
  .slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    z-index: 2;
  }
  
  .price-range {
    position: absolute;
    top: -5px;
    height: 6px;
    width: 100%;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 3;
  }
  
  .price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  }
  
  .price-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  }
  
  .price-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-top: 10px;
  }
  
  /* Filter Actions */
  .filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
  }
  
  .btn-apply-filters {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .btn-apply-filters:hover {
    background-color: var(--primary-light);
  }
  
  .btn-clear-filters {
    background-color: transparent;
    color: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .btn-clear-filters:hover {
    background-color: var(--light-gray);
  }
  
  /* Shop Main Content */
  .shop-main {
    flex: 1;
  }
  
  /* Shop Header */
  .shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  .results-count {
    font-size: 0.95rem;
    color: var(--text-color);
  }
  
  .results-count span {
    font-weight: 600;
  }
  
  .shop-controls {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .sort-options label {
    font-size: 0.95rem;
    color: var(--text-color);
  }
  
  .sort-options select {
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    background-color: var(--white);
    font-size: 0.95rem;
    color: var(--text-color);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A5A5A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
  }
  
  .view-options {
    display: flex;
    gap: 8px;
  }
  
  .view-btn {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-gray);
  }
  
  .view-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
  }
  
  /* Products Grid */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
  }
  
  /* Product List View */
  .products-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .products-list .product-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-areas: 
        "image info"
        "image footer";
  }
  
  .products-list .product-image {
    grid-area: image;
    height: 100%;
  }
  
  .products-list .product-info {
    grid-area: info;
    border-top: none;
    border-left: none;
  }
  
  .products-list .product-footer {
    grid-area: footer;
    border-left: none;
  }
  
  .products-list .product-description {
    display: block;
  }
  
  /* Product Card */
  .product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
  }
  
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }
  
  .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 3px;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .product-badge.new {
    background-color: var(--success);
    color: white;
  }
  
  .product-badge.sale {
    background-color: var(--sale);
    color: white;
  }
  
  .product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
  }
  
  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .product-card:hover .product-image img {
    transform: scale(1.05);
  }
  
  .product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 3;
  }
  
  .product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
  }
  
  .product-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    color: var(--text-color);
  }
  
  .product-actions button:hover {
    background-color: var(--primary-color);
    color: var(--white);
  }
  
  .product-info {
    padding: 20px;
  }
  
  .product-category {
    display: block;
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    height: 3.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  .product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
  }
  
  .old-price {
    text-decoration: line-through;
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 400;
    margin-right: 8px;
  }
  
  .product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #FFB300;
    font-size: 0.9rem;
  }
  
  .product-rating span {
    color: var(--light-text);
    margin-left: 5px;
    font-size: 0.85rem;
  }
  
  .product-description {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 10px;
    display: none;
    line-height: 1.5;
  }
  
  .products-list .product-description {
    display: block;
    margin-top: 12px;
  }
  
  .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid var(--light-gray);
    gap: 10px; /* Add gap between buttons */
  }
  
  .btn-view-details {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    display: inline-block;
    text-align: center;
  }
  
  .btn-view-details:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(138, 90, 68, 0.05);
  }
  
  .btn-add-cart {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .btn-add-cart:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid var(--light-gray);
  }
  
  .btn-view-details {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .btn-view-details:hover {
    color: var(--primary-color);
  }
  
  .btn-add-cart {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .btn-add-cart:hover {
    background-color: var(--primary-light);
  }
  
  .products-list .btn-add-cart {
    padding: 10px 20px;
  }
  
  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
  }
  
  .page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    font-size: 0.95rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
  }
  
  .page-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
  }
  
  .page-btn:hover:not(.active):not([disabled]) {
    background-color: var(--secondary-color);
    color: var(--text-color);
  }
  
  .page-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .page-btn.prev, .page-btn.next {
    width: auto;
    padding: 0 15px;
  }
  
  /* Quick View Modal */
  .quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .quick-view-modal.active {
    opacity: 1;
    visibility: visible;
  }
  
  .modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  
  .quick-view-modal.active .modal-content {
    transform: translateY(0);
  }
  
  .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark-gray);
    z-index: 1002;
    transition: color 0.2s ease;
  }
  
  .close-modal:hover {
    color: var(--primary-color);
  }
  
  .modal-body {
    padding: 30px;
  }
  
  /* Product Quick View */
  .product-quick-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .product-quick-image {
    overflow: hidden;
    border-radius: var(--border-radius);
  }
  
  .product-quick-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .product-quick-details {
    display: flex;
    flex-direction: column;
  }
  
  .product-quick-details .product-category {
    margin-bottom: 10px;
  }
  
  .product-quick-details h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
  }
  
  .product-quick-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
  }
  
  .product-quick-description {
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.6;
  }
  
  .product-quick-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
  }
  
  .quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1rem;
    padding: 8px 0;
  }
  
  .qty-btn {
    background-color: var(--light-gray);
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
  }
  
  .qty-btn:hover {
    background-color: var(--medium-gray);
  }
  
  .product-quick-actions .btn-add-cart {
    flex: 1;
    padding: 10px 20px;
  }
  
  .btn-view-full {
    display: inline-block;
    margin-top: 15px;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .btn-view-full:hover {
    text-decoration: underline;
  }
  
  /* Overlay */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Toast Notification */
  .toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white);
    border-left: 4px solid var(--success);
    border-radius: var(--border-radius);
    padding: 12px 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    width: 280px;
    z-index: 1100;
  }
  
  .toast.show {
    transform: translateX(0);
  }
  
  .toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .toast-content i {
    font-size: 1.2rem;
    color: var(--success);
  }
  
  .toast-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-color);
  }
  
  .toast-close {
    background: none;
    border: none;
    color: var(--medium-gray);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
  }
  
  .toast-close:hover {
    color: var(--dark-gray);
  }
  
  /* Responsive Styles */
  @media (max-width: 992px) {
    .shop-container {
      flex-direction: column;
    }
  
    .shop-sidebar {
      position: fixed;
      top: 0;
      left: 0;
      height: 100%;
      width: 300px;
      z-index: 1000;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
    }
  
    .shop-sidebar.active {
      transform: translateX(0);
    }
  
    .filter-toggle {
      display: flex;
    }
  
    .close-sidebar {
      display: block;
    }
  
    .product-quick-view {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 768px) {
    .page-banner h1 {
      font-size: 2.2rem;
    }
    
    .shop-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
    }
  
    .shop-controls {
      width: 100%;
      justify-content: space-between;
    }
  
    .products-grid {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
  
    .products-list .product-card {
      grid-template-columns: 1fr;
      grid-template-areas:
        "image"
        "info"
        "footer";
    }
  
    .products-list .product-image {
      height: 200px;
    }
  
    .product-footer {
      flex-direction: row;
      gap: 12px;
    }
  
    .btn-view-details, 
    .btn-add-cart {
      flex: 1;
      text-align: center;
      padding: 10px 15px;
    }
  }
  
  @media (max-width: 576px) {
    .page-banner {
      padding: 40px 0;
    }
  
    .page-banner h1 {
      font-size: 1.8rem;
    }
    
    .page-banner p {
      font-size: 1rem;
    }
  
    .products-grid {
      grid-template-columns: 1fr;
    }
  
    .shop-controls {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
  
    .sort-options {
      width: 100%;
    }
    
    .sort-options select {
      flex: 1;
    }
  
    .view-options {
      align-self: flex-end;
    }
  
    .product-quick-actions {
      flex-direction: column;
    }
  
    .quantity-selector {
      align-self: flex-start;
    }
    
    .pagination {
      gap: 5px;
    }
    
    .page-btn {
      width: 35px;
      height: 35px;
    }
  
    .product-footer {
      padding: 12px 15px;
    }
  }