/*
 * Teewear Shop Page Styles
 * File: assets/css/shop.css
 *
 * Enqueue this file for WooCommerce shop pages.
 * Uses CSS variables, clean structure, no frameworks.
 */

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --color-black:       #000000;
    --color-white:       #ffffff;
    --color-gray-100:    #f8f8f8;
    --color-gray-200:    #f1f1f1;
    --color-gray-300:    #e5e5e5;
    --color-gray-400:    #cccccc;
    --color-gray-500:    #999999;
    --color-gray-700:    #555555;
    --color-gray-900:    #222222;
    --color-star:        #f5a623;
    --color-hero-bg:     #f5f0eb;

    --font-body:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs:      11px;
    --font-size-sm:      13px;
    --font-size-base:    14px;
    --font-size-md:      15px;
    --font-size-lg:      18px;
    --font-size-xl:      28px;
    --font-size-2xl:     36px;

    --border-radius:     4px;
    --border-radius-btn: 6px;
    --border-color:      #e5e5e5;
    --transition:        0.2s ease;
    --transition-slow:   0.3s ease;

    --sidebar-width:     210px;
    --container-max:     1280px;
    --container-pad:     20px;
}

/* =============================================
   BASE RESET
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--color-gray-900);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* =============================================
   SHOP HERO
   ============================================= */
.shop-hero {
    background-color: var(--color-hero-bg);
    overflow: hidden;
    min-height: 200px;
}

.shop-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 40px;
    padding-bottom: 0;
    gap: 20px;
}

.shop-hero__text {
    flex: 0 0 auto;
    padding-bottom: 40px;
}

.shop-hero__title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.shop-hero__subtitle {
    font-size: var(--font-size-md);
    color: var(--color-gray-700);
    margin-bottom: 10px;
}

.shop-hero__breadcrumb {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

.shop-hero__breadcrumb a {
    color: var(--color-gray-500);
    text-decoration: none;
}

.shop-hero__breadcrumb a:hover {
    color: var(--color-black);
}

.shop-hero__breadcrumb .sep {
    margin: 0 5px;
}

.shop-hero__image {
    flex: 0 0 auto;
    max-width: 55%;
    align-self: flex-end;
}

.shop-hero__image img {
    display: block;
    max-height: 200px;
    width: auto;
    object-fit: cover;
}

/* =============================================
   SHOP PAGE LAYOUT
   ============================================= */
.shop-page {
    padding: 30px var(--container-pad);
}

.shop-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* =============================================
   SIDEBAR
   ============================================= */
.shop-sidebar {
    flex: 0 0 var(--sidebar-width);
    width: var(--sidebar-width);
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.sidebar-inner {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.sidebar-header__label {
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--color-gray-700);
    padding: 2px 6px;
    line-height: 1;
}

/* Filter Sections */
.filter-section {
    border-bottom: 1px solid var(--border-color);
}

.filter-section--last {
    border-bottom: none;
}

.filter-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-gray-900);
    transition: background var(--transition);
}

.filter-section__header:hover {
    background: var(--color-gray-100);
}

.accordion-icon {
    transition: transform var(--transition);
    flex-shrink: 0;
}

.filter-section--collapsed .accordion-icon {
    transform: rotate(-90deg);
}

.filter-section__body {
    padding: 4px 16px 16px;
}

.filter-section--collapsed .filter-section__body {
    display: none;
}

.filter-empty {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

/* =============================================
   PRICE FILTER
   ============================================= */
.price-filter {
    padding-top: 8px;
}

.price-slider-wrap {
    position: relative;
    height: 20px;
    margin-bottom: 12px;
}

.price-slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-gray-300);
    border-radius: 2px;
    z-index: 0;
}

.price-slider-range {
    position: absolute;
    height: 100%;
    background: var(--color-black);
    border-radius: 2px;
}

.price-range-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
    margin: 0;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-black);
    pointer-events: all;
    cursor: pointer;
    border: 2px solid var(--color-white);
    box-shadow: 0 0 0 1px var(--color-black);
    transition: transform var(--transition);
}

.price-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.price-range-input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-black);
    pointer-events: all;
    cursor: pointer;
    border: 2px solid var(--color-white);
    box-shadow: 0 0 0 1px var(--color-black);
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
}

/* =============================================
   COLOR SWATCHES
   ============================================= */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--color-gray-300);
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition);
    padding: 0;
    flex-shrink: 0;
}

.color-swatch:hover {
    border-color: var(--color-gray-500);
    transform: scale(1.1);
}

.color-swatch.selected {
    border-color: var(--color-black);
    box-shadow: 0 0 0 2px var(--color-black);
}

.swatch-hidden {
    display: none !important;
}

/* =============================================
   SIZE BUTTONS
   ============================================= */
.size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
}

.size-btn {
    min-width: 36px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    background: var(--color-white);
    color: var(--color-gray-900);
    font-size: var(--font-size-xs);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    line-height: 1;
}

.size-btn:hover {
    border-color: var(--color-black);
    background: var(--color-gray-100);
}

.size-btn.selected {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.size-hidden {
    display: none !important;
}

/* =============================================
   CATEGORY FILTER
   ============================================= */
.category-list {
    list-style: none;
    padding: 4px 0 0;
}

.category-list__item {
    margin-bottom: 8px;
}

.category-list__item:last-child {
    margin-bottom: 0;
}

.category-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--color-gray-900);
    line-height: 1;
}

.category-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 15px;
    height: 15px;
    border: 1.5px solid var(--color-gray-400);
    border-radius: 2px;
    background: var(--color-white);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.category-checkbox input:checked + .checkbox-custom {
    background: var(--color-black);
    border-color: var(--color-black);
}

.category-checkbox input:checked + .checkbox-custom::after {
    content: '';
    display: block;
    width: 8px;
    height: 5px;
    border-left: 1.5px solid var(--color-white);
    border-bottom: 1.5px solid var(--color-white);
    transform: rotate(-45deg) translateY(-1px);
}

.cat-name {
    flex: 1;
}

.cat-count {
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

/* =============================================
   SHOW MORE / CLEAR ALL
   ============================================= */
.show-more-btn {
    background: none;
    border: none;
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
    cursor: pointer;
    padding: 8px 0 0;
    text-decoration: underline;
    transition: color var(--transition);
}

.show-more-btn:hover {
    color: var(--color-black);
}

.clear-all-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 16px 16px;
    padding: 12px;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background var(--transition);
    text-align: center;
    text-transform: uppercase;
}

.clear-all-btn:hover {
    background: var(--color-gray-900);
}

/* =============================================
   SHOP MAIN AREA
   ============================================= */
.shop-main {
    flex: 1;
    min-width: 0;
}

/* =============================================
   SHOP TOOLBAR
   ============================================= */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    gap: 16px;
}

.shop-toolbar__results {
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
    white-space: nowrap;
}

.shop-toolbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
    white-space: nowrap;
}

.shop-sort-select {
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 7px 30px 7px 10px;
    color: var(--color-gray-900);
    background: var(--color-white);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
    min-width: 160px;
    transition: border-color var(--transition);
}

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

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.view-btn {
    background: var(--color-white);
    border: none;
    padding: 7px 10px;
    cursor: pointer;
    color: var(--color-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    line-height: 1;
}

.view-btn:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.view-btn:hover,
.view-btn.active {
    background: var(--color-black);
    color: var(--color-white);
}

/* Mobile filter toggle (hidden desktop) */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--border-color);
    background: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    transition: all var(--transition);
}

.mobile-filter-toggle:hover {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* =============================================
   PRODUCTS GRID
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* List View */
.products-grid.view-list {
    grid-template-columns: 1fr;
}

.products-grid.view-list .product-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
}

.products-grid.view-list .product-card__image-wrap {
    flex: 0 0 160px;
    height: 160px;
}

.products-grid.view-list .product-card__image-wrap img {
    height: 100%;
}

.products-grid.view-list .product-card__info {
    flex: 1;
    padding-top: 0;
    border-top: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.products-grid.view-list .product-card__cart {
    margin-top: 8px;
    width: fit-content;
}

/* No products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-gray-700);
}

.no-products p {
    margin-bottom: 20px;
    font-size: var(--font-size-lg);
}

.no-products .clear-all-btn {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 12px 32px;
}

/* =============================================
   PRODUCT CARD
   ============================================= */
.product-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: box-shadow var(--transition-slow), transform var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

/* Image */
.product-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.1;
    background: var(--color-gray-100);
}

.product-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Wishlist */
.product-card__wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

/* YITH Wishlist override */
.product-card__wishlist .yith-wcwl-add-to-wishlist {
    margin: 0;
}

.product-card__wishlist .add_to_wishlist,
.product-card__wishlist .yith-wcwl-add-button a,
.wishlist-btn-placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    transition: background var(--transition), transform var(--transition);
    text-decoration: none !important;
    padding: 0 !important;
}

.product-card__wishlist .add_to_wishlist:hover,
.product-card__wishlist .yith-wcwl-add-button a:hover,
.wishlist-btn-placeholder:hover {
    background: var(--color-black);
    color: var(--color-white) !important;
    transform: scale(1.08);
}

/* Remove YITH's default icon text */
.product-card__wishlist .yith-wcwl-add-button a span.yith-wcwl-icon {
    font-size: 14px !important;
}

/* Badges */
.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: var(--border-radius);
    line-height: 1.4;
}

.product-card__badge--sale {
    background: #e74c3c;
    color: var(--color-white);
}

.product-card__badge--new {
    background: var(--color-black);
    color: var(--color-white);
}

/* Product Info */
.product-card__info {
    padding: 12px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card__name-link {
    text-decoration: none;
    color: inherit;
}

.product-card__name {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-gray-900);
    line-height: 1.3;
    margin: 0;
}

.product-card__name-link:hover .product-card__name {
    text-decoration: underline;
}

/* WooCommerce Price */
.product-card__price .price {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-black);
}

.product-card__price .price del {
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
    font-weight: 400;
    margin-right: 4px;
}

.product-card__price .price ins {
    text-decoration: none;
    color: var(--color-black);
}

/* Ratings */
.product-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.star-rating-wrap .star-rating {
    font-size: 12px !important;
    color: var(--color-star);
}

.review-count {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
}

/* Add to Cart Button */
.product-card__cart {
    margin-top: 8px;
}

.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: var(--color-white);
    color: var(--color-black);
    border: 1.5px solid var(--color-black);
    border-radius: var(--border-radius-btn);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.btn-add-to-cart:hover,
.btn-add-to-cart.loading {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.btn-add-to-cart.added {
    background: var(--color-gray-900);
    color: var(--color-white);
}

.cart-icon {
    flex-shrink: 0;
}

/* =============================================
   PAGINATION
   ============================================= */
.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 20px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--color-white);
    color: var(--color-gray-900);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
}

.page-btn:hover:not(.active):not(.disabled):not(.page-ellipsis) {
    background: var(--color-gray-100);
    border-color: var(--color-gray-400);
}

.page-btn.active {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.page-btn.disabled {
    color: var(--color-gray-400);
    cursor: not-allowed;
    pointer-events: none;
}

.page-btn.page-ellipsis {
    border: none;
    background: none;
    cursor: default;
    color: var(--color-gray-500);
    letter-spacing: 1px;
}

/* =============================================
   CATEGORY CONTENT BLOCK
   ============================================= */
.category-content-block {
    padding: 50px 0;
    background: var(--color-white);
}

.category-content-block__inner {
    display: flex;
    gap: 48px;
    align-items: center;
}

.category-content-block__image {
    flex: 0 0 40%;
    max-width: 40%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.category-content-block__image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 460px;
}

.category-content-block__text {
    flex: 1;
}

.category-content-block__label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gray-700);
    margin-bottom: 12px;
}

.category-content-block__heading {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-black);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.category-content-block__desc {
    font-size: var(--font-size-base);
    color: var(--color-gray-700);
    line-height: 1.7;
    margin-bottom: 24px;
}

.category-content-block__desc p {
    margin-bottom: 10px;
}

.category-content-block__btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--border-radius-btn);
    border: 2px solid var(--color-black);
    transition: all var(--transition);
}

.category-content-block__btn:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section {
    padding: 40px 0 60px;
    background: var(--color-white);
}

.faq-section__title {
    font-size: var(--font-size-base);
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    color: var(--color-black);
    margin-bottom: 28px;
    text-transform: uppercase;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-gray-900);
    gap: 16px;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--color-black);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--color-gray-500);
}

.faq-item--open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    overflow: hidden;
}

.faq-answer__inner {
    padding: 0 0 16px;
    font-size: var(--font-size-base);
    color: var(--color-gray-700);
    line-height: 1.7;
}

/* =============================================
   FILTER OVERLAY (mobile)
   ============================================= */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 999;
}

.filter-overlay.active {
    display: block;
}

/* =============================================
   WOOCOMMERCE OVERRIDES
   ============================================= */

/* Remove default WooCommerce loop wrappers */
.woocommerce-loop-product__title {
    display: none; /* We use our own title */
}

/* Star rating global */
.star-rating {
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 0.9em;
    width: 5.4em;
    font-family: star;
    font-weight: 400;
}

.star-rating::before,
.star-rating span::before {
    content: '\2605\2605\2605\2605\2605';
    top: 0;
    left: 0;
    position: absolute;
    letter-spacing: 0.1em;
}

.star-rating::before {
    color: var(--color-gray-300);
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.star-rating span::before {
    color: var(--color-star);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Laptop 1200px */
@media (max-width: 1200px) {
    :root {
        --sidebar-width: 190px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .shop-hero__image img {
        max-height: 180px;
    }
}

/* Tablet 992px */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .shop-hero__title {
        font-size: 28px;
    }

    .category-content-block__heading {
        font-size: 28px;
    }

    .category-content-block__inner {
        gap: 32px;
    }
}

/* Tablet 768px - Sidebar becomes drawer */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }

    /* Mobile filter toggle visible */
    .mobile-filter-toggle {
        display: flex;
    }

    /* Sidebar becomes fixed drawer */
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: var(--sidebar-width);
        height: 100vh;
        overflow-y: auto;
        background: var(--color-white);
        z-index: 1000;
        transition: left var(--transition-slow);
        box-shadow: none;
    }

    .shop-sidebar.open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0,0,0,0.12);
    }

    .sidebar-close {
        display: flex;
    }

    .sidebar-inner {
        border: none;
        border-radius: 0;
        min-height: 100vh;
    }

    .shop-layout {
        display: block;
    }

    /* Toolbar stacks */
    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .shop-toolbar__right {
        flex-wrap: wrap;
        width: 100%;
    }

    .sort-wrap {
        flex: 1;
    }

    .shop-sort-select {
        min-width: auto;
        width: 100%;
    }

    /* Grid becomes 2 columns */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Hero stacks */
    .shop-hero__inner {
        flex-direction: column;
        padding-top: 28px;
    }

    .shop-hero__image {
        max-width: 100%;
        align-self: center;
    }

    .shop-hero__image img {
        max-height: 160px;
    }

    /* Category block stacks */
    .category-content-block__inner {
        flex-direction: column;
        gap: 24px;
    }

    .category-content-block__image {
        flex: none;
        max-width: 100%;
    }
}

/* Small mobile 480px */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card__info {
        padding-top: 8px;
        gap: 4px;
    }

    .product-card__name {
        font-size: var(--font-size-sm);
    }

    .btn-add-to-cart {
        font-size: 10px;
        padding: 8px 10px;
        gap: 5px;
    }

    .cart-icon {
        width: 13px;
        height: 13px;
    }

    .shop-hero__title {
        font-size: 24px;
    }

    .category-content-block__heading {
        font-size: 24px;
    }

    .faq-section__title {
        font-size: var(--font-size-sm);
    }
}

/* Print */
@media print {
    .shop-sidebar,
    .shop-toolbar,
    .shop-pagination {
        display: none;
    }

    .shop-layout {
        display: block;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
