/* =====================================================
   Rich Captures Photography — Shop Page Styles
   File: css/rc-shop.css
   Drop this into your active theme's /css/ folder.
   ===================================================== */

/* ── HERO ─────────────────────────────────────────── */
.rc-shop-hero {
    background: #0d1b2a;
    padding: 3.5rem 2rem 3rem;
    text-align: center;
}
.rc-shop-hero__inner {
    max-width: 640px;
    margin: 0 auto;
}
.rc-shop-hero__eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7a8fa3;
    margin-bottom: 0.5rem;
}
.rc-shop-hero__title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    color: #000000;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}
.rc-shop-hero__sub {
    font-size: 14px;
    color: #7a8fa3;
    line-height: 1.6;
}

/* ── CATEGORY PILLS ──────────────────────────────── */
.rc-cat-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 1.25rem 2rem;
    background: #f8f7f4;
    border-bottom: 1px solid #e8e4dc;
}
.rc-cat-pill {
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    transition: all 0.15s;
    background: #fff;
}
.rc-cat-pill:hover {
    border-color: #C9A84C;
    color: #C9A84C;
}
.rc-cat-pill--active {
    background: #0d1b2a;
    color: #C9A84C !important;
    border-color: #0d1b2a;
}

/* ── LAYOUT SHELL ────────────────────────────────── */
.rc-shop-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}
.rc-shop-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    padding-top: 2rem;
}

/* ── SIDEBAR ─────────────────────────────────────── */
.rc-shop-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.rc-sidebar-search {
    position: relative;
    margin-bottom: 1.5rem;
}
.rc-search-input {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}
.rc-search-input:focus {
    border-color: #C9A84C;
}
.rc-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 0;
    display: flex;
    align-items: center;
}
.rc-sidebar-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #e8e4dc;
}
.rc-sidebar-section:last-child {
    border-bottom: none;
}
.rc-sidebar-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.75rem;
}

/* WooCommerce category list override */
.rc-shop-sidebar .product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rc-shop-sidebar .product-categories li {
    padding: 5px 0;
    border-bottom: 1px solid #f0ede8;
}
.rc-shop-sidebar .product-categories li:last-child {
    border-bottom: none;
}
.rc-shop-sidebar .product-categories a {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.15s;
}
.rc-shop-sidebar .product-categories a:hover,
.rc-shop-sidebar .product-categories .current-cat > a {
    color: #C9A84C;
}
.rc-shop-sidebar .product-categories .count {
    font-size: 11px;
    color: #aaa;
    background: #f5f5f5;
    padding: 1px 6px;
    border-radius: 10px;
}

/* Price filter */
.rc-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.rc-price-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #1a1a1a;
}
.rc-price-sep {
    color: #aaa;
    font-size: 13px;
}
.rc-filter-btn,
.rc-reset-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #0d1b2a;
    color: #C9A84C;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
}
.rc-filter-btn:hover,
.rc-reset-btn:hover {
    opacity: 0.85;
}
.rc-sort-select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
}

/* ── TOP BAR ─────────────────────────────────────── */
.rc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e4dc;
}
.rc-result-count {
    font-size: 13px;
    color: #888;
}
.rc-result-count p { margin: 0; }
.rc-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rc-view-toggle {
    display: flex;
    gap: 4px;
}
.rc-view-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #aaa;
    transition: all 0.15s;
}
.rc-view-btn:hover {
    border-color: #C9A84C;
    color: #C9A84C;
}
.rc-view-btn--active {
    background: #0d1b2a;
    border-color: #0d1b2a;
    color: #C9A84C;
}

/* ── PRODUCT GRID ────────────────────────────────── */
.rc-product-grid ul.products,
.woocommerce .rc-product-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Product card */
.rc-product-grid ul.products li.product {
    border: 1px solid #e8e4dc !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fff !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    margin: 0 !important;
}
.rc-product-grid ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Product image */
.rc-product-grid ul.products li.product a img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block !important;
    transition: opacity 0.2s;
}
.rc-product-grid ul.products li.product a:hover img {
    opacity: 0.9;
}

/* Product info area */
.rc-product-grid ul.products li.product .woocommerce-loop-product__title,
.rc-product-grid ul.products li.product h2 {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    padding: 12px 14px 4px !important;
    margin: 0 !important;
}

/* Category label under title */
.rc-product-grid ul.products li.product .rc-cat-label {
    font-size: 11px;
    color: #aaa;
    padding: 0 14px 8px;
    display: block;
}

/* Price */
.rc-product-grid ul.products li.product .price {
    display: block !important;
    padding: 0 14px 12px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #C9A84C !important;
}
.rc-product-grid ul.products li.product .price del {
    color: #bbb !important;
    font-size: 12px !important;
    margin-right: 4px !important;
}

/* Add to cart button */
.rc-product-grid ul.products li.product .button,
.rc-product-grid ul.products li.product .add_to_cart_button {
    display: block !important;
    width: calc(100% - 28px) !important;
    margin: 0 14px 14px !important;
    padding: 9px 0 !important;
    background: #0d1b2a !important;
    color: #C9A84C !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: opacity 0.15s !important;
    text-decoration: none !important;
}
.rc-product-grid ul.products li.product .button:hover {
    opacity: 0.85 !important;
    color: #C9A84C !important;
}

/* Sale badge */
.rc-product-grid ul.products li.product .onsale {
    background: #b34c00 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    top: 10px !important;
    left: 10px !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.4 !important;
}

/* ── LIST VIEW ───────────────────────────────────── */
.rc-product-grid--list ul.products,
.woocommerce .rc-product-grid--list ul.products {
    grid-template-columns: 1fr !important;
}
.rc-product-grid--list ul.products li.product {
    display: grid !important;
    grid-template-columns: 180px 1fr auto !important;
    align-items: center !important;
}
.rc-product-grid--list ul.products li.product a img {
    height: 140px !important;
}
.rc-product-grid--list ul.products li.product .button {
    width: auto !important;
    white-space: nowrap !important;
    margin: 0 14px 0 0 !important;
}

/* ── PAGINATION ──────────────────────────────────── */
.rc-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}
.rc-pagination .woocommerce-pagination ul {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.rc-pagination .woocommerce-pagination ul li a,
.rc-pagination .woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e0dbd2;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: all 0.15s;
}
.rc-pagination .woocommerce-pagination ul li a:hover {
    border-color: #C9A84C;
    color: #C9A84C;
}
.rc-pagination .woocommerce-pagination ul li span.current {
    background: #0d1b2a;
    border-color: #0d1b2a;
    color: #C9A84C;
}

/* ── EMPTY STATE ─────────────────────────────────── */
.rc-no-products {
    text-align: center;
    padding: 5rem 2rem;
    color: #888;
}
.rc-no-products h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}
.rc-no-products p {
    font-size: 14px;
    margin-bottom: 1.5rem;
}

/* ── YITH FILTER OVERRIDES ───────────────────────── */
.yith-wcan-filters {
    font-family: inherit !important;
}
.yith-wcan-filter .filter-title {
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #999 !important;
    margin-bottom: 0.75rem !important;
}
.yith-wcan-filter ul li a {
    font-size: 13px !important;
    color: #333 !important;
}
.yith-wcan-filter ul li a:hover {
    color: #C9A84C !important;
}
.yith-wcan-filter .price_slider_amount .button {
    background: #0d1b2a !important;
    color: #C9A84C !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    padding: 7px 14px !important;
}
.ui-slider-horizontal .ui-slider-range {
    background: #C9A84C !important;
}
.ui-slider .ui-slider-handle {
    background: #0d1b2a !important;
    border-color: #0d1b2a !important;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
    .rc-shop-layout {
        grid-template-columns: 1fr;
    }
    .rc-shop-sidebar {
        position: static;
    }
    .rc-sort-sidebar {
        display: none;
    }
    .rc-product-grid ul.products,
    .woocommerce .rc-product-grid ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 560px) {
    .rc-product-grid ul.products,
    .woocommerce .rc-product-grid ul.products {
        grid-template-columns: 1fr !important;
    }
    .rc-cat-pills {
        padding: 1rem;
    }
    .rc-shop-wrap {
        padding: 0 1rem 3rem;
    }
}
