/* ===========================================
        GLOBAL
        =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Added common sans-serif fonts */
}

.body {
    background: #fff;
    color: #111;
}

.shop-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Responsive padding for smaller screens */
@media (max-width: 600px) {
    .shop-wrapper {
        padding: 0 15px;
    }
}

/* ===========================================
        LAYOUT
        =========================================== */
.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding-block: 40px;
}

/* Stack layout on tablets and smaller */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* ===========================================
        FILTERS BOX
        =========================================== */
.filters-box {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 12px;
    height: fit-content;
}

/* New Filter Heading Style */
.filters-box h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #111;
    /* Stronger divider for the main heading */
}

/* Styles for filter sections that ARE dropdowns (Categories, Teams) */
.dropdown {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.dropdown-toggle {
    width: 100%;
    background: none;
    border: none;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    padding: 10px 0;
}

.dropdown-content {
    margin-top: 10px;
    display: none;
}

.dropdown.open .dropdown-content {
    display: block;
}

/* Styles for filter sections that ARE NOT dropdowns (Size, Price) */
.filter-section {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.filter-section:last-child {
    border-bottom: none;
    /* Remove border from the last item */
}

.filter-title {
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 0;
    margin-top: 0;
}


.dropdown label,
.filter-section label {
    display: block;
    margin: 5px 0;
    font-size: .9rem;
    color: #444;
}

/* Checkbox color change */
input[type="checkbox"] {
    accent-color: black;
    /* This changes the checkbox fill color when checked */
    margin-right: 5px;
    /* Add some space between checkbox and label text */
}


/* ===========================================
        DOUBLE RANGE SLIDER
        =========================================== */
.price-slider {
    margin-top: 10px;
}

.range-container {
    position: relative;
    height: 40px;
}

input[type=range] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
}

/* Black track */
input[type=range]::-webkit-slider-runnable-track {
    height: 4px;
    background: #000;
    border-radius: 3px;
}

/* Pointer */
input[type=range]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -7px;
    /* Adjust to center on track */
}

/* Price Display */
#priceDisplay {
    margin-top: 5px;
    text-align: center;
    font-weight: 600;
}


/* ===========================================
        PRODUCT GRID & CARDS
        =========================================== */
.no-products {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px dashed #ddd;
    border-radius: 12px;
    background: #fafafa;
    padding: 40px;
}

.no-products h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.no-products p {
    font-size: 14px;
    color: #777;
}



.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
    gap: 24px;
    justify-content: start;
}

/* Responsive grid adjustment for smaller screens */
@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: 1fr;
        /* Single column on very small screens */
    }
}

.product-item {
    background-color: white;
    border: 1px solid #ddd;
    text-align: center;
    transition: transform 0.2s;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    height: auto;
    display: block;
}


.product-price-base {
    color: #cc0000;
    font-weight: bold;
}

.product-price-normal {
    color: rgb(116, 116, 116);
    font-weight: 600;
    text-decoration: line-through;
}

.price-section {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.product-item {
    position: relative;
    background: #fff;
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.product-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.product-actions i {
    font-size: 14px;
    color: #000;
}

.isWishlistedFalse {
    background: #ffffff;
    border: 1px solid #ddd;
}

.isWishlistedTrue {
    background: #000000;
    border: 1px solid #ddd;
}

.isWishlistedTrue i {
    color: #fff;
    font-size: 14px;
}

.isWishlistedFalse i {
    font-size: 14px;
    color: #000;
}

.product-actions button:hover {
    background: #000;
}

.product-actions button:hover i {
    color: #fff;
}

/* PRODUCT DETAILS */
.product-details {
    padding: 12px;
}

/* ADD TO CART BUTTON */
.add-to-cart-btn {
    margin-top: 12px;
    width: 100%;
    padding: 10px 0;
    background: #000;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.add-to-cart-btn i {
    font-size: 14px;
}

.add-to-cart-btn:hover {
    background: #222;
}


/* title & subtitle */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-subtitle {
    color: #666;
    margin-bottom: 20px;
}


.bw-btn-group {
    margin-top: 15px;
    justify-content: flex-end;
    display: flex;
    gap: 10px;
}

.bw-btn-group button {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #000;
}

/* CLEAR – white button */
.bw-btn-group .btn-clear {
    background-color: #fff;
    color: #000;
}

.bw-btn-group .btn-clear:hover {
    background-color: #000;
    color: #fff;
}

/* APPLY – black button */
.btn-apply {
    background-color: #000;
    color: #fff;
}

.btn-apply:hover {
    background-color: #fff;
    color: #000;
}

.custom-dropdown {
    position: relative;
    width: 220px;
    font-size: 14px;
    user-select: none;
}

/* Selected box */
.dropdown-selected {
    padding: 10px 14px;
    border: 1px solid #000;
    border-radius: 6px;
    cursor: pointer;
    background-color: #fff;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

/* .dropdown-selected::after {
  content: ;
  font-size: 14px;
} */

.dropdown-selected:hover {
    background-color: #f5f5f5;
}

/* Options box */
.dropdown-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    border: 1px solid #000;
    border-radius: 6px;
    background-color: #ffffffed;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Option item */
.dropdown-options li {
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}


.dropdown-options li:hover {
    background-color: #000;
    color: #fff;
}

/* Active state */
.custom-dropdown.active .dropdown-options {
    display: block;
}

.div-custom-dropdown {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.product-search {
    flex: 1;
    min-width: 240px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.product-search:focus {
    border-color: #000;
    background: #fff;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 13px;
    /* max-height: 40px; */
}

.product-search {
    width: 95%;
    /* input fills search-box */
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 5px;
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-apply {
    padding: 12px 25px;
    height: 100%;

    border: 1px solid black;
    border-radius: 8px;
    background: #111;
    color: #fff;

    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    cursor: pointer;

    transition: background 0.2s ease;
}

.search-apply:hover {
    background: white;
    color: black;
}

/* ===============================
   PAGINATION CONTAINER
================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 30px 0;
}

/* ===============================
   ARROW BUTTONS
================================ */
.arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.arrow-btn i {
    font-size: 14px;
}

.arrow-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Disabled arrow (optional) */
.arrow-btn.disabled {
    pointer-events: none;
    opacity: 0.4;
}

/* ===============================
   CURRENT PAGE
================================ */
.current-page-display {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 480px) {
    .pagination {
        gap: 10px;
    }

    .arrow-btn {
        width: 34px;
        height: 34px;
    }

    .current-page-display {
        height: 34px;
        font-size: 13px;
    }
}


.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 15px 0;
}

.search-bar input {
  flex: 1;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #000;
  border-radius: 6px;
  outline: none;
}

.search-bar input:focus {
  box-shadow: 0 0 0 1px #000;
}

/* Buttons */
.search-bar button {
  padding: 10px 16px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.search-bar button:hover {
  background: #fff;
  color: #000;
}

/* Clear button */
.clear-btn {
  background: #fff;
  color: #000;
}

.offer-div {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
}

.offer-div span {
  min-width: 52px;
  height: 26px;
  padding: 0 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #e53935;
  color: #fff;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;

  border-radius: 12px;
  cursor: default;

  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
