/*
Theme Name:   GeneratePress Child - Camley Photographic
Theme URI:    https://camleyphotographic.com
Description:  Custom child theme for Camley Photographic with two-row navigation (brand logos + categories)
Author:       Claude
Template:     generatepress
Version:      1.0.13
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  generatepress-child
*/

/* Brand colors and fonts */
:root {
    --camley-brand-red: #740000;
    --camley-brand-red-hover: #5a0000;
    --camley-brand-2: #007474;
    --camley-brand-2-hover: #005a5a;
    --camley-text-black: #000000;
    --camley-text-muted: #86868b;
    --camley-light-grey: #d2d2d7;
    --camley-background: #f5f5f7;
    --camley-brand-gold: #8B7500;
    --camley-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Condition badge colors */
    --camley-condition-mint-bg: #e8f5e9;
    --camley-condition-mint-text: #1b5e20;
    --camley-condition-excellent-bg: #e3f2fd;
    --camley-condition-excellent-text: #0d47a1;
    --camley-condition-good-bg: #fff3e0;
    --camley-condition-good-text: #e65100;
    --camley-condition-fair-bg: #fce4ec;
    --camley-condition-fair-text: #880e4f;
}

/* Apply system font to entire site */
body,
button,
input,
select,
textarea,
.site-content,
.entry-content,
.widget,
h1, h2, h3, h4, h5, h6 {
    font-family: var(--camley-font-family) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide GeneratePress default header/logo and primary menu */
.site-header .header-image,
.site-logo,
.main-title,
.site-header .main-navigation,
.site-header #site-navigation {
    display: none !important;
}

/* Remove GeneratePress default header spacing */
.site-header {
    margin: 0 !important;
    padding: 0 !important;
}

.inside-header {
    padding: 0 !important;
}

/* Custom Header Layout */
.camley-custom-header {
    background: #fff;
    border-bottom: 1px solid var(--camley-light-grey);
    padding: 5px 0;
    width: 100%;
    position: relative;
    z-index: 10001;
}

.camley-header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 2vw, 30px);
    position: relative;
}

/* Brand Logo */
.camley-header-logo {
    flex-shrink: 0;
}

.camley-header-logo a {
    display: block;
}

.camley-logo-img {
    max-width: clamp(120px, 15vw, 200px);
    max-height: clamp(50px, 6vw, 80px);
    height: auto;
    width: auto;
    object-fit: contain;
}

.camley-site-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--camley-brand-red);
    text-decoration: none;
}

/* ========================================
   Homepage Header Styles
   ======================================== */
.camley-homepage-header {
    background: #fff;
    padding: 0;
    width: 100%;
    position: relative;
    z-index: 10001;
}

.camley-homepage-header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Centered Logo */
.camley-homepage-logo {
    text-align: center;
}

.camley-homepage-logo a {
    display: inline-block;
}

.camley-homepage-logo-img {
    max-width: 300px;
    max-height: 100px;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Homepage Header Mobile */
@media (max-width: 768px) {
    .camley-homepage-header-container {
        padding: 0 15px;
    }

    .camley-homepage-logo-img {
        max-width: 200px;
        max-height: 70px;
    }
}

/* Header search */
.camley-header-search {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: clamp(600px, 50vw, 900px);
    margin-right: 80px; /* Make room for absolutely positioned cart */
}

.camley-header-search .camley-search-form {
    width: 100%;
}

.camley-header-search .camley-search-input {
    padding: 12px 20px;
    border: 2px solid var(--camley-light-grey);
    border-radius: 4px;
    font-size: 16px;
    width: 100% !important;
    min-width: 400px;
    transition: border-color 0.3s ease;
}

.camley-header-search .camley-search-button {
    padding: 12px 20px;
    font-size: 18px;
}

/* Live Search Results Dropdown */
.camley-live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--camley-light-grey);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    max-height: 450px;
    overflow-y: auto;
    z-index: 100000;
    display: none;
}

.live-search-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--camley-text-black);
    border-bottom: 1px solid var(--camley-light-grey);
    transition: background 0.2s ease;
}

.live-search-item:hover {
    background: var(--camley-background);
}

.live-search-item:last-of-type {
    border-bottom: none;
}

.live-search-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.live-search-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.live-search-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--camley-text-black);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-search-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--camley-brand-red);
}

.live-search-price del {
    color: #999;
    font-weight: 400;
    font-size: 13px;
}

.live-search-price ins {
    text-decoration: none;
}

.live-search-view-all {
    display: block;
    padding: 15px;
    text-align: center;
    background: var(--camley-background);
    color: var(--camley-brand-red);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: background 0.2s ease;
}

.live-search-view-all:hover {
    background: var(--camley-light-grey);
}

.live-search-loading,
.live-search-no-results,
.live-search-error {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.live-search-no-results {
    color: #999;
}

.live-search-error {
    color: var(--camley-brand-red);
}

.camley-search-input {
    padding: 6px 12px;
    border: 2px solid var(--camley-light-grey);
    border-radius: 4px;
    font-size: clamp(12px, 1.2vw, 14px);
    width: 100%;
    transition: border-color 0.3s ease;
}

.camley-search-input:focus {
    outline: none;
    border-color: var(--camley-brand-red);
}

.camley-search-button {
    padding: 6px 12px;
    background: transparent;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.camley-search-button:hover {
    background: transparent;
    color: var(--camley-brand-red);
}

.camley-search-icon {
    font-size: clamp(14px, 1.4vw, 16px);
}

/* Header Actions (Account, Cart, Checkout) - Always fixed position from right */
.camley-header-actions {
    position: absolute !important;
    right: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Header Search Toggle (homepage) */
.camley-header-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--camley-text-black);
    padding: 0;
}

.camley-header-search-toggle:hover,
.camley-header-search-toggle:focus,
.camley-header-search-toggle:active {
    color: var(--camley-brand-red);
    background: none;
    outline: none;
}

/* Ensure both header containers position cart consistently */
.camley-homepage-header-container,
.camley-header-container {
    position: relative;
}

.camley-header-account a,
.camley-header-cart a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--camley-text-black);
    transition: color 0.3s ease;
    position: relative;
}

.camley-header-account a:hover,
.camley-header-cart a:hover {
    color: var(--camley-brand-red);
}

.camley-header-actions .camley-icon {
    font-size: clamp(18px, 2vw, 24px);
}

.camley-header-account .camley-icon {
    color: #000;
    width: clamp(18px, 2vw, 24px);
    height: clamp(18px, 2vw, 24px);
}

.camley-header-actions .camley-label {
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 500;
}

.camley-cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--camley-brand-red);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* Header Cart Toggle Button */
.camley-cart-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--camley-text-black);
    padding: 0;
    position: relative;
}

.camley-cart-toggle:hover,
.camley-cart-toggle:focus,
.camley-cart-toggle:active {
    color: var(--camley-brand-red);
    background: none;
    outline: none;
}

.camley-cart-toggle .camley-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Cart Dropdown */
.camley-header-cart {
    position: relative;
}

.camley-cart-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    margin-top: 10px;
    padding: 20px;
}

.camley-cart-dropdown.active {
    display: block;
}

.camley-cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.camley-cart-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--camley-text-black);
}

.camley-review-bag-btn {
    background: var(--camley-brand-red);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.camley-review-bag-btn:hover {
    background: var(--camley-brand-red-hover);
}

/* Cart Items */
.camley-cart-items {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
    max-height: 200px;
    overflow-y: auto;
}

.camley-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.camley-cart-item-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f7;
}

.camley-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camley-cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.camley-cart-item-name {
    font-size: 13px;
    color: var(--camley-text-black);
    line-height: 1.4;
}

.camley-cart-item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--camley-brand-gold);
}

.camley-cart-empty {
    color: var(--camley-text-muted);
    font-size: 14px;
    padding: 16px 0;
    text-align: center;
}

/* Profile Section */
.camley-cart-profile {
    padding-top: 4px;
}

.camley-profile-title {
    display: block;
    font-size: 12px;
    color: var(--camley-text-muted);
    margin-bottom: 12px;
}

.camley-profile-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.camley-profile-links li {
    margin: 0;
    padding: 0;
}

.camley-profile-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--camley-text-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.camley-profile-links a:hover {
    color: var(--camley-brand-red);
}

.camley-profile-links svg {
    color: var(--camley-text-muted);
    flex-shrink: 0;
}

.camley-profile-links a:hover svg {
    color: var(--camley-brand-red);
}

.camley-checkout-btn {
    padding: clamp(8px, 1vw, 10px) clamp(12px, 2vw, 20px);
    background: var(--camley-brand-red);
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: clamp(12px, 1.2vw, 14px);
    transition: background 0.3s ease;
    white-space: nowrap;
}

.camley-checkout-btn:hover {
    background: var(--camley-brand-red-hover);
}

.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Apple-Inspired Footer */
.camley-apple-footer {
    background: var(--camley-background);
    border-top: 1px solid var(--camley-light-grey);
    padding: 40px 0 20px;
    margin-top: 0;
    font-size: 12px;
    line-height: 1.5;
}

.camley-apple-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Columns Grid */
.camley-apple-footer .footer-columns {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--camley-light-grey);
}

.camley-apple-footer .footer-column h4 {
    color: var(--camley-text-black);
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: none;
    letter-spacing: 0;
}

.camley-apple-footer .footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.camley-apple-footer .footer-column li {
    margin: 0 0 8px 0;
}

.camley-apple-footer .footer-column a {
    color: #424245;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.camley-apple-footer .footer-column a:hover {
    color: var(--camley-brand-red);
    text-decoration: underline;
}

/* Footer Bottom */
.camley-apple-footer .footer-bottom {
    padding-top: 20px;
}

.camley-apple-footer .footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.camley-apple-footer .copyright {
    color: var(--camley-text-muted);
    font-size: 12px;
}

.camley-apple-footer .footer-legal-links {
    display: flex;
    gap: 20px;
}

.camley-apple-footer .footer-legal-links a {
    color: #424245;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.camley-apple-footer .footer-legal-links a:hover {
    color: var(--camley-brand-red);
    text-decoration: underline;
}

/* Sticky Top Bar with Breadcrumbs and Cart */
.camley-sticky-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--camley-background);
    border-bottom: 1px solid var(--camley-light-grey);
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* Show sticky bar when scrolled */
body.scrolled .camley-sticky-top-bar,
body.scrolled .camley-sticky-product-bar {
    transform: translateY(0);
}

/* Sticky Product Bar (for single product pages) */
.camley-sticky-product-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 2px solid var(--camley-light-grey);
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-product-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.sticky-product-back {
    flex-shrink: 0;
}

.sticky-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--camley-brand-red);
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.sticky-back-btn:hover {
    background: var(--camley-brand-red-hover);
}

.sticky-back-btn .back-arrow {
    font-size: 16px;
}

.sticky-product-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sticky-product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--camley-brand-red);
}

.sticky-product-add-to-cart {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-product-add-to-cart form.cart {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.sticky-product-add-to-cart .quantity {
    margin: 0;
}

.sticky-product-add-to-cart .quantity input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 2px solid var(--camley-light-grey);
    border-radius: 4px;
}

.sticky-product-add-to-cart button.single_add_to_cart_button {
    background: var(--camley-brand-red);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.sticky-product-add-to-cart button.single_add_to_cart_button:hover {
    background: var(--camley-brand-red-hover);
}

.sticky-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.sticky-bar-breadcrumbs {
    flex: 1;
}

.sticky-breadcrumbs {
    font-size: 13px;
    color: #666;
}

.sticky-breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sticky-breadcrumbs a:hover {
    color: var(--camley-brand-red);
}

/* Sticky Cart Info */
.sticky-bar-cart {
    position: relative;
}

.sticky-cart-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--camley-brand-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.sticky-cart-toggle:hover {
    background: var(--camley-brand-red-hover);
}

.cart-items-count {
    background: #fff;
    color: var(--camley-brand-red);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.cart-icon {
    font-size: 18px;
}

.cart-total {
    font-weight: 700;
}

.cart-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.sticky-cart-toggle.active .cart-arrow {
    transform: rotate(180deg);
}

/* Cart Dropdown */
.sticky-cart-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid var(--camley-light-grey);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 350px;
    max-width: 400px;
    display: none;
    z-index: 1001;
}

.sticky-cart-dropdown.active {
    display: block;
}

.cart-dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--camley-light-grey);
    background: var(--camley-background);
}

.cart-dropdown-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--camley-text-black);
}

.cart-dropdown-content {
    max-height: 400px;
    overflow-y: auto;
}

.cart-dropdown-content .woocommerce-mini-cart {
    padding: 15px 20px;
}

.cart-dropdown-content .woocommerce-mini-cart__buttons {
    margin-top: 15px;
}

.cart-dropdown-content .button {
    width: 100%;
    margin-bottom: 10px;
    background: var(--camley-brand-red);
    color: #fff;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
}

.cart-dropdown-content .button:hover {
    background: var(--camley-brand-red-hover);
}

/* Two-row navigation styles (between header and main content) */
.camley-dual-navigation {
    background: #fff;
    border-bottom: none;
    transition: all 0.3s ease;
}

.camley-dual-navigation > .container {
    position: relative;
}

/* Promo bar beneath category navigation */
.camley-promo-bar {
    width: 100%;
    height: 50px;
    background: #fff;
    border-bottom: 1px solid var(--camley-light-grey);
    display: flex;
    align-items: center;
}

.camley-promo-bar-inner {
    width: 100%;
    display: flex;
    align-items: center;
    height: 100%;
}

.camley-filter-controls {
    width: var(--camley-sidebar-width, 15%);
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
}

.camley-filter-toggle-btn,
.camley-filter-reset-btn {
    background: transparent !important;
    border: none !important;
    padding: 6px 10px;
    font-size: 12px;
    font-family: var(--camley-font-family);
    cursor: pointer;
    transition: color 0.2s ease;
    color: var(--camley-text-black);
    outline: none !important;
    box-shadow: none !important;
}

.camley-filter-toggle-btn:hover,
.camley-filter-reset-btn:hover,
.camley-filter-toggle-btn:focus:hover,
.camley-filter-reset-btn:focus:hover {
    color: var(--camley-brand-red) !important;
    background: transparent !important;
}

.camley-filter-toggle-btn:focus,
.camley-filter-reset-btn:focus,
.camley-filter-toggle-btn:active,
.camley-filter-reset-btn:active {
    color: var(--camley-text-black) !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.camley-filter-toggle-btn .filter-icon {
    margin-right: 4px;
}

.camley-promo-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Sort controls on right side */
.camley-sort-controls {
    padding: 0 20px;
}

.camley-sort-dropdown {
    position: relative;
}

.camley-sort-toggle {
    background: transparent;
    border: none;
    padding: 6px 10px;
    font-size: 12px;
    font-family: var(--camley-font-family);
    cursor: pointer;
    color: var(--camley-text-black);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.camley-sort-toggle:hover {
    color: var(--camley-brand-red);
    background: transparent;
}

.camley-sort-toggle .sort-arrow {
    font-size: 8px;
    transition: transform 0.2s ease;
}

.camley-sort-dropdown.open .sort-arrow {
    transform: rotate(180deg);
}

.camley-sort-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--camley-light-grey);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 160px;
    display: none;
    z-index: 1000;
}

.camley-sort-dropdown.open .camley-sort-options {
    display: block;
}

.camley-sort-options .sort-option {
    display: block;
    padding: 8px 14px;
    font-size: 12px;
    color: var(--camley-text-black);
    text-decoration: none;
    transition: all 0.2s ease;
}

.camley-sort-options .sort-option:hover {
    color: var(--camley-brand-red);
}

/* Keep filter controls same width when sidebar is hidden */
body.camley-sidebar-hidden .camley-filter-controls {
    width: var(--camley-sidebar-width, 15%);
    min-width: 150px;
}

/* Product page promo bar */
.camley-product-promo-bar {
    width: 100%;
    height: 50px;
    background: #fff;
    border-bottom: 1px solid var(--camley-light-grey);
    display: flex;
    align-items: center;
    padding: 0 30px;
}

.camley-product-promo-bar-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.camley-product-subcategory {
    font-size: 15px;
    font-weight: 600;
    color: var(--camley-text-black);
}

.camley-product-subcategory a {
    color: var(--camley-text-black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.camley-product-subcategory a:hover {
    color: var(--camley-brand-red);
}

.camley-product-browse-controls {
    display: flex;
    align-items: center;
}

.camley-product-browse-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 12px;
    font-family: var(--camley-font-family);
    cursor: pointer;
    color: var(--camley-text-black);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.camley-product-browse-btn:hover {
    background: #fff;
    color: var(--camley-brand-red);
}

.camley-product-browse-btn .browse-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.camley-product-browse-btn[aria-expanded="true"] .browse-arrow {
    transform: rotate(180deg);
}

/* Product browse dropdown */
.camley-product-browse-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #d2d2d7;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    padding: 30px 40px;
    max-height: 80vh;
    overflow-y: auto;
}

.camley-product-browse-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.camley-product-browse-dropdown-content {
    max-width: 1200px;
    margin: 0 auto;
}

.camley-product-browse-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d2d2d7;
}

.camley-product-browse-dropdown-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--camley-text-black);
}

.camley-product-browse-dropdown-shop-all {
    font-size: 14px;
    color: var(--camley-brand-red);
    text-decoration: none;
}

.camley-product-browse-dropdown-shop-all:hover {
    text-decoration: underline;
}

.camley-product-browse-dropdown-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 48px;
}

.camley-product-browse-dropdown-column h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--camley-text-black);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.camley-product-browse-dropdown-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.camley-product-browse-dropdown-column li {
    margin-bottom: 8px;
}

.camley-product-browse-dropdown-column a {
    font-size: 14px;
    color: #424245;
    text-decoration: none;
    transition: color 0.2s ease;
}

.camley-product-browse-dropdown-column a:hover {
    color: var(--camley-brand-red);
}

.camley-product-browse-dropdown-loading {
    text-align: center;
    padding: 40px;
    color: var(--camley-text-muted);
}

.camley-product-browse-dropdown-empty {
    text-align: center;
    padding: 40px;
    color: var(--camley-text-muted);
    font-size: 14px;
}

/* Product browse dropdown overlay */
.camley-product-browse-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.camley-product-browse-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Make navigation sticky when scrolled (but not on product pages) */
body:not(.scrolled) .camley-dual-navigation {
    position: relative;
}

body.scrolled .camley-dual-navigation {
    position: sticky;
    top: 48px; /* Height of sticky top bar */
    z-index: 999;
}

/* Don't make navigation sticky on single product pages */
body.single-product .camley-dual-navigation {
    position: relative !important;
}

/* Brand row visible by default */
/* Brand row wrapper with scroll arrows */
.camley-brand-row-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0;
    border-bottom: 1px solid var(--camley-light-grey);
    z-index: 999;
}

.camley-brand-scroll-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--camley-brand-red);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 8px;
    transition: opacity 0.2s;
    z-index: 10;
}

.camley-brand-scroll-btn:hover {
    opacity: 0.7;
}

.camley-brand-scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.camley-brand-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: all 0.3s ease;
}

.camley-brand-row::-webkit-scrollbar {
    display: none;
}

/* Brand items hidden by JS based on breakpoint settings */
.camley-brand-item.brand-hidden {
    display: none !important;
}

/* Hide brand row when scrolled down */
body.scrolled .camley-brand-row-wrapper {
    display: none;
}

.camley-brand-item {
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 5px 10px;
    border: 2px solid transparent;
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}

.camley-brand-item:hover {
    opacity: 0.7;
}

.camley-brand-item.active {
    border-color: var(--camley-brand-red);
    background: var(--camley-background);
}

.camley-brand-item img {
    height: 40px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.camley-brand-item .camley-brand-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--camley-text-black);
    white-space: nowrap;
}

.camley-all-brands-btn,
.camley-new-in-btn {
    background: var(--camley-brand-red);
    color: #fff !important;
    border-radius: 4px;
    flex-shrink: 0;
    z-index: 5;
}

.camley-all-brands-btn:hover,
.camley-new-in-btn:hover {
    background: var(--camley-brand-red-hover);
    opacity: 1;
}

.camley-all-brands-btn strong,
.camley-new-in-btn strong {
    color: #fff;
    font-size: 14px;
}

/* Brand Dropdown Menu - Apple-style */
.camley-brand-dropdown {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    width: 100vw;
    background: rgba(251, 251, 253, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #d2d2d7;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    max-height: 0;
    overflow: hidden;
}

.camley-brand-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 80vh;
    overflow-y: auto;
}

.camley-brand-dropdown-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px 40px;
}

.camley-brand-dropdown-loading {
    text-align: center;
    padding: 40px;
    color: var(--camley-text-muted);
    font-size: 14px;
}

/* Brand dropdown header */
.camley-brand-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d2d2d7;
}

.camley-brand-dropdown-title {
    font-size: 12px;
    font-weight: 400;
    color: var(--camley-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.camley-brand-dropdown-shop-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--camley-brand-red);
    text-decoration: none;
    transition: color 0.2s;
}

.camley-brand-dropdown-shop-all:hover {
    color: var(--camley-brand-red-hover);
    text-decoration: underline;
}

/* Brand dropdown columns - max 3 columns */
.camley-brand-dropdown-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 60px;
}

/* Category column */
.camley-brand-dropdown-column {
    min-width: 0;
}

/* Parent category header - small gray text */
.camley-brand-dropdown-column-header {
    font-size: 12px;
    font-weight: 400;
    color: var(--camley-text-muted);
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
}

/* Main category link - 15px bold */
.camley-brand-dropdown-category {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--camley-text-black);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
    line-height: 1.3;
}

.camley-brand-dropdown-category:hover {
    color: var(--camley-brand-red);
}

/* Subcategory links - 12px regular */
.camley-brand-dropdown-subcategory {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--camley-text-black);
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.2s;
    line-height: 1.3;
}

.camley-brand-dropdown-subcategory:hover {
    color: var(--camley-brand-red);
}

/* Subcategory list - more spacing */
.camley-brand-dropdown-subcategories {
    margin-top: 4px;
    padding-left: 0;
}

/* Brand dropdown overlay */
.camley-brand-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.camley-brand-dropdown-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Active brand item styling */
.camley-brand-item.dropdown-active {
    background: rgba(0, 0, 0, 0.04);
}

/* Empty state */
.camley-brand-dropdown-empty {
    text-align: center;
    padding: 40px;
    color: var(--camley-text-muted);
    font-size: 14px;
}

/* Hide dropdown when brand row is hidden (scrolled) */
body.scrolled .camley-brand-dropdown {
    display: none !important;
}

body.scrolled .camley-brand-dropdown-overlay {
    display: none !important;
}

/* Brand dropdown responsive styles */
@media (max-width: 980px) {
    .camley-brand-dropdown-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 40px;
    }
}

@media (max-width: 768px) {
    .camley-brand-dropdown-content {
        padding: 24px 20px 28px;
    }

    .camley-brand-dropdown-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 32px;
    }

    .camley-brand-dropdown-category {
        font-size: 14px;
    }

    .camley-brand-dropdown-subcategory {
        font-size: 11px;
    }

    .camley-brand-dropdown-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .camley-brand-dropdown-content {
        padding: 20px 16px 24px;
    }

    .camley-brand-dropdown-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .camley-brand-dropdown-column {
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 16px;
    }

    .camley-brand-dropdown-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* Category row wrapper with scroll arrows */
.camley-category-row-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0;
    z-index: 1000;
}

.camley-category-scroll-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--camley-brand-red);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 8px;
    transition: opacity 0.2s;
    z-index: 10;
}

.camley-category-scroll-btn:hover {
    opacity: 0.7;
}

.camley-category-scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.camley-category-scroll-btn.scroll-left {
    margin-right: 8px;
}

.camley-category-scroll-btn.scroll-right {
    margin-left: 8px;
}

.camley-category-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    padding: 0; /* Height controlled by wrapper */
}

.camley-category-row::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

/* Ensure dropdowns appear above everything */
.camley-category-item {
    position: relative;
    padding: 8px 15px;
    flex-shrink: 0;
}

.camley-subcategory-dropdown {
    display: none;
    position: fixed;
    background: #fff;
    border: 1px solid var(--camley-light-grey);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 99999;
    border-radius: 4px;
}

.camley-category-item:hover {
    z-index: 99999;
}

.camley-search-box {
    margin-left: auto;
    padding: 0 15px;
}

.camley-search-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.camley-search-input {
    padding: 6px 12px;
    border: 2px solid var(--camley-light-grey);
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
    transition: border-color 0.3s ease;
}

.camley-search-input:focus {
    outline: none;
    border-color: var(--camley-brand-red);
}

.camley-search-button {
    padding: 6px 12px;
    background: transparent;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.camley-search-button:hover {
    background: transparent;
    color: var(--camley-brand-red);
}

.camley-search-icon {
    font-size: 16px;
}

.camley-category-item {
    position: relative;
    padding: 8px 15px;
}

.camley-category-item > a {
    color: var(--camley-text-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.camley-category-item > a:hover {
    color: var(--camley-brand-red);
}

.camley-category-item:hover .camley-subcategory-dropdown {
    display: block;
}

.camley-subcategory-dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--camley-text-black);
    text-decoration: none;
    font-size: 13px;
}

.camley-subcategory-dropdown a:hover {
    background: var(--camley-background);
    color: var(--camley-brand-red);
}

/* Hide items when filtered */
.camley-category-item.hidden {
    display: none;
}

.camley-subcategory-dropdown a.hidden {
    display: none;
}

/* Apple-style Filter Sidebar */
.sidebar,
#left-sidebar,
#right-sidebar,
aside.widget-area {
    background: #fff;
    padding: 0;
}

.inside-left-sidebar,
.inside-right-sidebar {
    padding: 37px !important;
}

/* Remove spacing between Camley filter widgets */
.sidebar .widget,
.widget-area .widget,
.widget_camley_brand_filter,
.widget_camley_category_filter,
.widget_camley_condition_filter,
.widget_camley_smart_attribute_filter {
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* Override GeneratePress inner-padding class */
.widget.inner-padding {
    padding: 0 !important;
}

/* 30px white space around entire filter area */
.sidebar .widget:first-child .camley-filter-section:first-child,
.widget-area .widget:first-child .camley-filter-section:first-child {
    padding-top: 30px !important;
}

.sidebar .widget:last-child .camley-filter-section:last-child,
.widget-area .widget:last-child .camley-filter-section:last-child {
    padding-bottom: 30px !important;
}

/* Ensure all filter sections flow together seamlessly */
.widget_camley_brand_filter .camley-filter-section:last-child,
.widget_camley_category_filter .camley-filter-section:last-child,
.widget_camley_condition_filter .camley-filter-section:last-child {
    border-bottom: 1px solid var(--camley-light-grey);
}

/* Only remove border from the very last filter section in sidebar */
.inside-left-sidebar > .widget:last-child .camley-filter-section:last-child,
.inside-right-sidebar > .widget:last-child .camley-filter-section:last-child {
    border-bottom: none;
}

/* Filter Section Collapsible Styles */
.camley-filter-section {
    margin-bottom: 0;
    border-bottom: 1px solid var(--camley-light-grey);
}

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

.camley-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: none;
    margin-bottom: 0;
    cursor: pointer;
    background: transparent;
}

.camley-filter-header:hover {
    background: transparent;
}

.camley-filter-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--camley-text-black);
    text-transform: none;
    letter-spacing: 0;
}

.camley-filter-toggle {
    background: transparent !important;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.camley-filter-toggle:hover {
    background: transparent !important;
}

/* Clean chevron arrow using CSS borders */
.camley-filter-toggle::before {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #424245;
    border-bottom: 2px solid #424245;
    transform: rotate(-135deg);
    transition: transform 0.3s ease;
    margin-top: 3px;
}

.camley-filter-toggle:hover::before {
    border-color: var(--camley-text-black);
}

.camley-filter-section.collapsed .camley-filter-toggle::before {
    transform: rotate(45deg);
    margin-top: -3px;
}

.camley-filter-content {
    padding-top: 10px;
    padding-bottom: 15px;
}

.camley-filter-section.collapsed .camley-filter-content {
    display: none;
}

/* Apple-style Filter Lists - No checkboxes, pill/tag style */
/* ========================================
   Unified Filter Widget Styles
   ======================================== */
.camley-category-filter,
.camley-brand-filter,
.camley-condition-filter,
.camley-attribute-filter {
    padding: 0;
}

.camley-category-filter-list,
.camley-brand-filter-list,
.camley-condition-filter-list,
.camley-attribute-filter-list,
.camley-category-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.camley-category-filter-list li,
.camley-brand-filter-list li,
.camley-condition-filter-list li,
.camley-attribute-filter-list li,
.camley-category-item {
    margin: 0;
}

.camley-category-filter-list label,
.camley-brand-filter-list label,
.camley-condition-filter-list label,
.camley-attribute-filter-list label,
.camley-category-label {
    display: flex;
    flex: 1;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    color: var(--camley-text-black);
    padding: 0 12px;
    transition: all 0.2s ease;
    margin: 0 -12px;
}

.camley-category-filter-list label:hover,
.camley-brand-filter-list label:hover,
.camley-condition-filter-list label:hover,
.camley-attribute-filter-list label:hover,
.camley-category-label:hover {
    color: var(--camley-brand-red);
}

/* Hide checkbox visually but keep for functionality */
.camley-category-filter-list input[type="checkbox"],
.camley-brand-filter-list input[type="checkbox"],
.camley-condition-filter-list input[type="checkbox"],
.camley-attribute-filter-list input[type="checkbox"],
.camley-category-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Selected state - grey background pill */
.camley-category-filter-list label:has(input:checked),
.camley-brand-filter-list label:has(input:checked),
.camley-condition-filter-list label:has(input:checked),
.camley-attribute-filter-list label:has(input:checked),
.camley-category-label:has(input:checked) {
    background: var(--camley-light-grey);
    color: var(--camley-brand-red);
}

/* Count styling */
.camley-category-filter-list .count,
.camley-brand-filter-list .count,
.camley-condition-filter-list .count,
.camley-attribute-filter-list .count,
.camley-category-count {
    color: var(--camley-text-muted);
    font-size: 12px;
    margin-left: auto;
}

/* Disabled items */
.camley-category-filter-list li.disabled,
.camley-brand-filter-list li.disabled,
.camley-condition-filter-list li.disabled,
.camley-attribute-filter-list li.disabled {
    opacity: 0.4;
}

.camley-category-filter-list li.disabled label,
.camley-brand-filter-list li.disabled label,
.camley-condition-filter-list li.disabled label,
.camley-attribute-filter-list li.disabled label {
    cursor: not-allowed;
    color: var(--camley-text-muted);
}

.camley-category-filter-list li.disabled label:hover,
.camley-brand-filter-list li.disabled label:hover,
.camley-condition-filter-list li.disabled label:hover,
.camley-attribute-filter-list li.disabled label:hover {
    background: transparent;
}

/* Subcategory list (nested) */
.camley-subcategory-filter-list {
    list-style: none;
    margin: 0 0 0 12px;
    padding: 0;
}

.camley-subcategory-filter-list li {
    margin: 0;
}

.camley-subcategory-filter-list label {
    font-size: 12px;
    padding: 0 12px;
    margin: 0 -12px;
}

.camley-subcategory-filter-list input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.camley-subcategory-filter-list label:hover {
    color: var(--camley-brand-red);
}

.camley-subcategory-filter-list label:has(input:checked) {
    background: var(--camley-light-grey);
    color: var(--camley-brand-red);
}

/* Hierarchical brand children */
.camley-brand-children {
    list-style: none;
    margin: 0 0 0 12px;
    padding: 0;
}

.camley-brand-children li {
    margin: 0;
}

.camley-brand-children label {
    font-size: 12px;
    padding: 0 12px;
    margin: 0 -12px;
}

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

.camley-brand-children label:hover {
    color: var(--camley-brand-red);
}

.camley-brand-children label:has(input:checked) {
    background: var(--camley-light-grey);
    color: var(--camley-brand-red);
}

/* Disabled filter items (0 products) */
.camley-brand-filter-list li.disabled,
.camley-condition-filter-list li.disabled {
    opacity: 0.5;
}

.camley-brand-filter-list li.disabled label,
.camley-condition-filter-list li.disabled label {
    cursor: not-allowed;
    color: #999;
}

/* Hierarchical Category Tree - additional styles */
.camley-category-tree,
.camley-category-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.camley-category-tree li {
    margin: 0;
    padding: 0;
}

.camley-filter-category-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    line-height: 1;
    min-height: 0;
    padding: 0;
}

.camley-category-toggle {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
    margin-left: 4px;
}

/* Chevron arrow using CSS borders */
.camley-category-toggle::before {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #86868b;
    border-bottom: 1.5px solid #86868b;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.camley-category-toggle:hover::before {
    border-color: var(--camley-brand-red);
}

/* Expanded state - rotate arrow up */
.camley-filter-category-item.expanded .camley-category-toggle::before {
    transform: rotate(-135deg);
}

.camley-category-label {
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.camley-category-name {
    flex: 1;
}

.camley-category-count {
    margin-left: 4px;
    flex-shrink: 0;
    min-width: 32px;
    text-align: right;
}

.camley-category-children {
    list-style: none;
    margin: 0;
    padding: 0 0 0 12px;
    width: 100%;
}

.camley-brand-filter-list li.disabled input[type="checkbox"],
.camley-condition-filter-list li.disabled input[type="checkbox"],
.camley-attribute-filter-list li.disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.camley-filter-button {
    width: 100%;
    margin-top: 15px;
    padding: 10px 15px;
    background: var(--camley-brand-red);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.camley-filter-button:hover {
    background: var(--camley-brand-red-hover);
}

/* Shop Page Title */
.camley-shop-title-wrapper {
    margin: 0 0 20px 0;
    text-align: center;
    padding: 0 20px;
}

.camley-shop-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--camley-text-black);
    margin: 0;
    padding: 15px 0 10px 0;
    border-bottom: 3px solid var(--camley-brand-red);
    display: inline-block;
    min-width: 300px;
}

/* Results Bar with Toggle Button */
.camley-results-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.camley-sidebar-toggle {
    background: var(--camley-brand-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.camley-sidebar-toggle:hover {
    background: var(--camley-brand-red-hover);
}

.camley-toggle-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

body.camley-sidebar-hidden .camley-toggle-icon {
    transform: rotate(180deg);
}

/* Style the WooCommerce result count */
.camley-results-bar .woocommerce-result-count {
    margin: 0;
    flex: 1;
}

/* Style the WooCommerce ordering dropdown in results bar */
.camley-results-bar .woocommerce-ordering {
    margin: 0;
    flex-shrink: 0;
}

.camley-results-bar .woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid var(--camley-light-grey);
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}

.camley-results-bar .woocommerce-ordering select:hover {
    border-color: var(--camley-brand-red);
}

.camley-results-bar .woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--camley-brand-red);
}

/* Sidebar width - reduced to half default (15% instead of ~30%) */
:root {
    --camley-sidebar-width: 15%;
}

.sidebar,
#right-sidebar,
#left-sidebar,
aside.widget-area {
    width: var(--camley-sidebar-width);
    min-width: 150px;
    max-width: 200%;
    position: relative;
    transition: width 0.1s ease;
}

/* GeneratePress sidebar containers - need position for resize handle */
#left-sidebar,
#right-sidebar {
    position: relative !important;
}

.inside-left-sidebar,
.inside-right-sidebar {
    position: relative;
    padding: 37px !important;
}

/* Adjust content area to fill remaining space */
.separate-containers .inside-article,
.content-area {
    flex: 1;
}

/* Sidebar resize handle - vertical bar on sidebar edge */
.camley-sidebar-resize-handle {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 1px !important;
    cursor: ew-resize;
    background: var(--camley-light-grey) !important;
    z-index: 1000;
    transition: background 0.2s ease;
}

/* For LEFT sidebar - handle on the right edge */
#left-sidebar > .camley-sidebar-resize-handle {
    right: 0 !important;
    left: auto !important;
}

/* For RIGHT sidebar - handle on the left edge */
#right-sidebar > .camley-sidebar-resize-handle {
    left: 0 !important;
    right: auto !important;
}

.camley-sidebar-resize-handle:hover,
.camley-sidebar-resize-handle.dragging {
    background: var(--camley-brand-red) !important;
}

/* Grip indicator - hidden for minimal look */
.camley-sidebar-resize-handle::before {
    display: none;
}

.camley-sidebar-resize-handle:hover::before,
.camley-sidebar-resize-handle.dragging::before {
    display: none;
}

/* Prevent text selection while dragging */
body.camley-resizing {
    user-select: none;
    cursor: ew-resize !important;
}

body.camley-resizing * {
    cursor: ew-resize !important;
}

/* Sidebar hide/show animation */
body.camley-sidebar-hidden .sidebar,
body.camley-sidebar-hidden #right-sidebar,
body.camley-sidebar-hidden #left-sidebar,
body.camley-sidebar-hidden aside.widget-area {
    display: none;
}

body.camley-sidebar-hidden .content-area {
    width: 100% !important;
    max-width: 100% !important;
}

/* Single Product Page Layout */
.single-product div.product {
    max-width: 1200px;
    margin: 0 auto;
}

/* Cart Page Layout - match product page width */
body.woocommerce-cart {
    background: var(--camley-background);
}

body.woocommerce-cart .site-content,
body.woocommerce-cart .content-area,
body.woocommerce-cart .inside-article {
    background: transparent !important;
}

body.woocommerce-cart .entry-header,
body.woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
}

/* Merge Cart title with items section - single white box */
body.woocommerce-cart .entry-header {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

body.woocommerce-cart .entry-header .entry-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

body.woocommerce-cart .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-cart .inside-article {
    padding: 0 !important;
    margin: 0 !important;
}

body.woocommerce-cart .woocommerce {
    padding-top: 20px;
    margin-top: 0;
}

/* Make header and content appear as one continuous box */
body.woocommerce-cart .entry-header,
body.woocommerce-cart .entry-content,
body.woocommerce-cart .woocommerce {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}

body.woocommerce-cart .entry-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto !important;
}

body.woocommerce-cart .entry-header {
    padding-top: 30px;
}

body.woocommerce-cart .woocommerce {
    padding-bottom: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto !important;
}

/* Apple-style Cart Page */
body.woocommerce-cart .woocommerce-cart-form {
    margin-bottom: 40px;
    width: 100%;
}

/* Cart Table - Clean Apple Style */
body.woocommerce-cart table.shop_table {
    border: none;
    border-collapse: collapse;
    width: 100%;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
    border: none;
    border-bottom: 1px solid var(--camley-light-grey);
    padding: 20px 15px;
    vertical-align: middle;
}

body.woocommerce-cart table.shop_table thead th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--camley-text-muted);
    background: transparent;
}

body.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--camley-background);
}

body.woocommerce-cart table.shop_table .product-name a {
    color: var(--camley-text-black);
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
}

body.woocommerce-cart table.shop_table .product-name a:hover {
    color: var(--camley-brand-red);
}

body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart table.shop_table .product-subtotal {
    font-weight: 600;
    color: var(--camley-text-black);
}

body.woocommerce-cart table.shop_table .product-quantity .qty {
    width: 60px;
    padding: 8px 12px;
    border: 1px solid var(--camley-light-grey);
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
}

body.woocommerce-cart table.shop_table .product-remove a,
body.woocommerce-cart table.shop_table .product-remove a.remove {
    color: var(--camley-text-black) !important;
    font-size: 20px;
    text-decoration: none;
}

body.woocommerce-cart table.shop_table .product-remove a:hover,
body.woocommerce-cart table.shop_table .product-remove a.remove:hover {
    color: var(--camley-brand-red) !important;
    background: transparent !important;
}

/* Cart Actions Row */
body.woocommerce-cart table.shop_table .actions {
    padding: 20px 15px;
    border-bottom: none;
}

body.woocommerce-cart table.shop_table .actions .coupon {
    display: flex;
    gap: 10px;
    align-items: center;
}

body.woocommerce-cart table.shop_table .actions .coupon input[type="text"] {
    padding: 12px 16px;
    border: 1px solid var(--camley-light-grey);
    border-radius: 8px;
    font-size: 14px;
    min-width: 180px;
}

body.woocommerce-cart table.shop_table .actions .coupon button {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: var(--camley-brand-red) !important;
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

body.woocommerce-cart table.shop_table .actions .coupon button:hover {
    background: var(--camley-brand-red-hover) !important;
}

body.woocommerce-cart table.shop_table .actions button[name="update_cart"] {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: transparent !important;
    color: var(--camley-text-black) !important;
    border: 1px solid var(--camley-light-grey) !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.woocommerce-cart table.shop_table .actions button[name="update_cart"]:hover {
    border-color: var(--camley-text-black) !important;
}

body.woocommerce-cart table.shop_table .actions button[name="update_cart"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cart Totals - Apple Style */
body.woocommerce-cart .cart-collaterals {
    width: 100%;
    float: none;
}

body.woocommerce-cart .cart_totals {
    background: transparent;
}

body.woocommerce-cart .cart_totals > h2 {
    display: none;
}

body.woocommerce-cart .cart_totals table.shop_table {
    margin-bottom: 25px;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
    padding: 12px 0;
    border-bottom: none;
}

body.woocommerce-cart .cart_totals table.shop_table tr.cart-subtotal th,
body.woocommerce-cart .cart_totals table.shop_table tr.cart-subtotal td {
    font-size: 15px;
    font-weight: 400;
    color: var(--camley-text-black);
}

body.woocommerce-cart .cart_totals table.shop_table tr.shipping th,
body.woocommerce-cart .cart_totals table.shop_table tr.shipping td {
    font-size: 15px;
    font-weight: 400;
    color: var(--camley-text-black);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--camley-light-grey);
}

body.woocommerce-cart .cart_totals table.shop_table {
    width: 100%;
}

body.woocommerce-cart .cart_totals table.shop_table th {
    width: 20%;
}

body.woocommerce-cart .cart_totals table.shop_table td {
    width: 80%;
}

body.woocommerce-cart .cart_totals table.shop_table tr.order-total th {
    font-size: 17px;
    font-weight: 600;
    color: var(--camley-text-black);
    padding-top: 20px;
}

body.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
    font-size: 24px;
    font-weight: 700;
    color: var(--camley-text-black);
    padding-top: 20px;
    text-align: right;
}

body.woocommerce-cart .cart_totals table.shop_table tr.order-total td .amount {
    font-size: 24px;
}

body.woocommerce-cart .cart_totals table.shop_table th {
    text-align: left;
    font-weight: 400;
}

body.woocommerce-cart .cart_totals table.shop_table td {
    text-align: right;
}

/* Shipping Methods - Tabular Layout */
body.woocommerce-cart .woocommerce-shipping-methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.woocommerce-cart .woocommerce-shipping-methods li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--camley-light-grey);
}

body.woocommerce-cart .woocommerce-shipping-methods li:last-child {
    border-bottom: none;
}

body.woocommerce-cart .woocommerce-shipping-methods li label {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

body.woocommerce-cart .woocommerce-shipping-methods li input[type="radio"] {
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

body.woocommerce-cart .woocommerce-shipping-methods .woocommerce-Price-amount {
    font-weight: 600;
    white-space: nowrap;
    margin-left: 20px;
    flex-shrink: 0;
}

body.woocommerce-cart .shipping-destination {
    font-size: 13px;
    color: var(--camley-text-muted);
    margin-top: 10px;
}

/* Shipping Calculator - Cleaner */
body.woocommerce-cart .shipping-calculator-button {
    font-size: 13px;
    color: var(--camley-brand-red);
    text-decoration: none;
}

body.woocommerce-cart .shipping-calculator-button:hover {
    color: var(--camley-brand-red-hover);
    text-decoration: underline;
}

/* Checkout Button - Large Red Apple Style */
body.woocommerce-cart .wc-proceed-to-checkout {
    padding: 0;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    padding: 18px 30px;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    background: var(--camley-brand-red) !important;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
    margin-bottom: 0;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--camley-brand-red-hover) !important;
}

/* VAT/Tax info below total */
body.woocommerce-cart .cart_totals .includes_tax,
body.woocommerce-cart .cart_totals .tax-rate {
    font-size: 13px;
    color: var(--camley-text-muted);
    text-align: right;
}

/* Account Pages Layout - match product/cart page width */
body.woocommerce-account {
    background: var(--camley-background);
}

body.woocommerce-account .site-content,
body.woocommerce-account .content-area,
body.woocommerce-account .inside-article {
    background: transparent !important;
}

body.woocommerce-account .entry-header,
body.woocommerce-account .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
}

/* Light grey site background */
body.single-product {
    background: var(--camley-background);
}

/* Ensure sticky positioning works - remove overflow:hidden from ancestors */
/* Also make backgrounds transparent so grey shows through */
body.single-product .site-content,
body.single-product .content-area,
body.single-product .site-main,
body.single-product article.product,
body.single-product .inside-article,
body.single-product .entry-content {
    overflow: visible !important;
    background: transparent !important;
}

body.single-product .separate-containers .inside-article,
body.single-product .inside-article {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Shop/Archive pages - remove grey border and gaps */
body.woocommerce-shop .separate-containers .inside-article,
body.woocommerce-shop .inside-article,
body.tax-product_cat .separate-containers .inside-article,
body.tax-product_cat .inside-article,
body.tax-product_brand .separate-containers .inside-article,
body.tax-product_brand .inside-article {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

body.woocommerce-shop .site-main,
body.tax-product_cat .site-main,
body.tax-product_brand .site-main {
    padding: 0 !important;
    margin: 0 !important;
}

body.woocommerce-shop .woocommerce-archive-wrapper,
body.tax-product_cat .woocommerce-archive-wrapper,
body.tax-product_brand .woocommerce-archive-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

body.woocommerce-shop .entry-content,
body.tax-product_cat .entry-content,
body.tax-product_brand .entry-content {
    margin: 0 !important;
}

/* Add gap around product scrolling section */
body.woocommerce-shop .content-area,
body.tax-product_cat .content-area,
body.tax-product_brand .content-area {
    padding: 20px !important;
    background: #fff !important;
}

/* Product grid layout */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    clear: both;
}

/* Prevent pseudo-elements from taking grid cells */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

/* Product tile styling */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

/* Reset any WooCommerce column classes */
.woocommerce ul.products.columns-3 li.product,
.woocommerce ul.products.columns-4 li.product,
.woocommerce ul.products.columns-5 li.product {
    width: 100% !important;
    margin: 0 !important;
}

/* Reduce gap between product image and title */
.woocommerce ul.products li.product a img {
    margin-bottom: 8px !important;
}

/* Smaller product title - fixed 2-line height for alignment */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    line-height: 1.4;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
    color: var(--camley-brand-red);
    text-decoration: underline;
}

/* Price and add to cart button on same row */
.camley-price-button-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product > .button {
    padding: 6px 12px !important;
    font-size: 12px !important;
    margin: 0 !important;
    line-height: 1;
    background: var(--camley-brand-red) !important;
    color: #fff !important;
}

.woocommerce ul.products li.product .add_to_cart_button:hover,
.woocommerce ul.products li.product > .button:hover {
    background: var(--camley-brand-red-hover) !important;
}

/* Preview button in product tile */
.camley-preview-btn {
    padding: 6px !important;
    margin: 0 !important;
    line-height: 1;
    font-size: 12px !important;
    background: transparent !important;
    color: var(--camley-brand-red) !important;
    border: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    transform: none !important;
    position: static !important;
    transition: color 0.2s ease;
}

.woocommerce ul.products li.product .price {
    margin: 0 0 0 auto !important;
    line-height: 1;
    font-size: 15px;
    font-weight: normal;
    color: var(--camley-brand-gold);
}

.camley-preview-btn:hover {
    background: transparent !important;
    color: var(--camley-brand-red) !important;
}

.camley-preview-btn svg {
    display: block;
    width: 16px;
    height: 16px;
    stroke: var(--camley-brand-red) !important;
    transition: stroke 0.2s ease;
}

.camley-preview-btn:hover svg {
    stroke: var(--camley-brand-red) !important;
}

/* Hide old floating quick view button */
.woocommerce ul.products li.product > .camley-quick-view:not(.camley-preview-btn) {
    display: none !important;
}

/* Custom Pagination */
.camley-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 0;
    font-size: 15px;
    font-family: var(--camley-font-family);
}

.camley-page-prev,
.camley-page-next {
    color: #000;
    text-decoration: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.camley-page-prev:hover,
.camley-page-next:hover {
    color: var(--camley-brand-red);
}

.camley-page-prev.disabled,
.camley-page-next.disabled {
    color: #ccc;
    cursor: default;
}

.camley-page-input-wrapper {
    display: inline-flex;
    align-items: center;
}

.camley-page-input {
    width: 50px;
    padding: 5px 8px;
    font-size: 15px;
    font-family: var(--camley-font-family);
    text-align: center;
    border: 1px solid var(--camley-light-grey);
    border-radius: 4px;
    background: #fff !important;
    -moz-appearance: textfield;
}

.camley-page-input::-webkit-outer-spin-button,
.camley-page-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.camley-page-input:focus {
    outline: none;
    border-color: var(--camley-brand-red);
}

.camley-page-of,
.camley-page-total {
    color: var(--camley-text-black);
}

/* Hide default WooCommerce pagination */
.woocommerce nav.woocommerce-pagination {
    display: none !important;
}

body.single-product article.product,
body.single-product .hentry {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
}

body.single-product .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.single-product .grid-container {
    padding-top: 0 !important;
}

body.single-product .site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.single-product .content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Product page - MPB-style layout */
.single-product div.product {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    max-width: 1400px;
    padding: 10px 20px 20px 20px;
    margin: 0 auto;
    align-items: flex-start;
}

/* Breadcrumb row - full width, minimal spacing */
.single-product .camley-product-breadcrumb-row {
    width: 100%;
    flex-basis: 100%;
    padding: 0;
    margin: 0;
    order: 1;
}

.single-product .camley-product-breadcrumbs {
    font-size: 14px;
    color: #666;
}

.single-product .camley-product-breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.single-product .camley-product-breadcrumbs a:hover {
    color: var(--camley-brand-red);
}

.single-product .camley-product-breadcrumbs .breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

/* Gallery on the left - sticky */
.single-product .woocommerce-product-gallery {
    width: calc(60% - 15px) !important;
    flex-shrink: 0;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 8px;
    position: sticky !important;
    top: 120px !important;
    order: 2;
    align-self: flex-start;
    z-index: 1;
}

/* Gallery unsticky - when summary bottom reaches gallery bottom */
.single-product .woocommerce-product-gallery.gallery-unsticky {
    position: relative !important;
    top: 0 !important;
}

/* Main product image container */
.single-product .woocommerce-product-gallery .flex-viewport {
    position: relative;
}

/* Main product image */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    display: block;
    margin: 0 auto;
}

/* Navigation arrows on image */
.single-product .woocommerce-product-gallery .flex-direction-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.single-product .woocommerce-product-gallery .flex-direction-nav a {
    pointer-events: auto;
    background: rgba(255,255,255,0.9);
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.single-product .woocommerce-product-gallery .flex-direction-nav a:hover {
    background: #fff;
    opacity: 1;
}

.single-product .woocommerce-product-gallery .flex-direction-nav .flex-prev::before {
    content: '‹';
}

.single-product .woocommerce-product-gallery .flex-direction-nav .flex-next::before {
    content: '›';
}

/* Hide expand trigger button - clicking image opens lightbox instead */
.single-product .woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Make main gallery image show pointer cursor to indicate clickability */
.single-product .woocommerce-product-gallery__image a {
    cursor: zoom-in;
}

.single-product .woocommerce-product-gallery__image img {
    cursor: zoom-in;
}

/* Thumbnails - small horizontal strip */
.single-product .woocommerce-product-gallery ol.flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px !important;
    padding-top: 0 !important;
    border-top: none !important;
    justify-content: center;
    background: transparent;
}

.single-product .flex-control-thumbs li {
    width: 50px !important;
    flex-shrink: 0;
    position: relative;
    padding-bottom: 4px;
}

.single-product .flex-control-thumbs li img {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.single-product .flex-control-thumbs li img:hover {
    opacity: 0.8;
}

.single-product .flex-control-thumbs li img.flex-active {
    opacity: 1;
}

/* Red underline indicator for selected thumbnail */
.single-product .flex-control-thumbs li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--camley-brand-red);
    transition: width 0.3s ease;
}

.single-product .flex-control-thumbs li:has(img.flex-active)::after {
    width: calc(100% - 6px);
}

/* Summary/details on the right */
.single-product .summary {
    width: calc(40% - 15px) !important;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    order: 3;
    margin-left: auto !important;
    margin-bottom: 0 !important;
}

/* Summary content sections as white boxes (except tabs) */
.single-product .summary > *:not(.woocommerce-tabs) {
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Camley summary cards use their own consistent styling */
.single-product .summary > .camley-summary-card {
    padding: 24px;
    border-radius: 12px;
}

/* Tabs container doesn't need background - individual tabs have it */
.single-product .summary > .woocommerce-tabs {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

/* Remove margin from last non-tabs child */
.single-product .summary > *:not(.woocommerce-tabs):last-of-type {
    margin-bottom: 0;
}

/* Group title, price, and cart together */
.single-product .summary .product_title,
.single-product .summary .price,
.single-product .summary form.cart,
.single-product .summary .stock {
    margin-bottom: 0;
    border-radius: 0;
}

.single-product .summary .product_title {
    border-radius: 8px 8px 0 0;
    padding-bottom: 10px;
}

.single-product .summary .stock {
    border-radius: 0 0 8px 8px;
    padding-top: 10px;
}

/* Hide default tabs strip - we'll show sections stacked */
.single-product .woocommerce-tabs ul.tabs {
    display: none;
}

/* Tabs - now inside summary, should appear last */
.single-product .woocommerce-tabs {
    width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    order: 100 !important;
}

/* Remove any extra margin/padding on tabs container */
.single-product .woocommerce-tabs .wc-tabs {
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset any entry-content margins on tab panels */
.single-product .woocommerce-tabs .wc-tab.entry-content {
    margin: 0 !important;
}

.single-product .woocommerce-tabs .wc-tab {
    display: block !important;
    background: #fff !important;
    padding: 25px !important;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Ensure all tab panels have white background */
.single-product .woocommerce-tabs .panel,
.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
    background: #fff !important;
    padding: 25px !important;
    border-radius: 8px;
    margin-bottom: 15px;
}

.single-product .woocommerce-tabs .wc-tab h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--camley-brand-red);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--camley-light-grey);
}

/* Camley custom tabs - transparent background so card styling shows */
.single-product .woocommerce-tabs .wc-tab[id^="tab-camley_"],
.single-product .woocommerce-tabs .panel[id^="tab-camley_"] {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0;
    margin-bottom: 0;
}

/* Hide default tab heading for Camley custom tabs since cards have their own headers */
.single-product .woocommerce-tabs .wc-tab[id^="tab-camley_"] > h2:first-child {
    display: none;
}

/* Product title */
.single-product .summary .product_title {
    order: 1 !important;
    font-size: 24px;
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 0;
}

/* Condition/short description as subtitle */
.single-product .summary .woocommerce-product-details__short-description {
    order: 2 !important;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
    font-size: 14px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--camley-light-grey);
}

/* Price below condition */
.single-product .summary .price {
    order: 3 !important;
    font-size: 32px;
    font-weight: 700;
    color: var(--camley-brand-red);
    margin-bottom: 20px;
}

/* Add to cart form below price */
.single-product .summary form.cart {
    order: 4 !important;
    margin-bottom: 20px;
}

/* Stock status */
.single-product .summary .stock {
    order: 5 !important;
}

/* Product meta (SKU, categories) */
.single-product .summary .product_meta {
    order: 6 !important;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--camley-light-grey);
    font-size: 13px;
    color: #666;
}

/* Product tabs styling removed - now using stacked sections */

/* Product Description Formatting */
.woocommerce-Tabs-panel--description #description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--camley-brand-red);
    margin-bottom: 12px;
    padding: 10px 15px;
    background: #fff;
    border-radius: 4px;
}

.woocommerce-Tabs-panel--description #subheading {
    font-size: 18px;
    font-weight: 700;
    color: var(--camley-brand-red);
    margin: 25px 0 15px 0;
}

.woocommerce-Tabs-panel--description #description i {
    font-style: normal;
    font-weight: 600;
    color: var(--camley-brand-red);
    min-width: 100px;
    display: inline-block;
}

.woocommerce-Tabs-panel--description #centreheading {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--camley-brand-red);
    background: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

/* Hide duplicate Description heading */
.woocommerce-Tabs-panel--description > h2:first-child {
    display: none;
}

/* WooCommerce Action Buttons - Teal */
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button,
.woocommerce .cart .button,
.woocommerce .checkout-button,
.woocommerce #place_order {
    background-color: var(--camley-brand-red) !important;
    color: #fff !important;
    border: none;
}

.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .cart .button:hover,
.woocommerce .checkout-button:hover,
.woocommerce #place_order:hover {
    background-color: var(--camley-brand-red-hover) !important;
    color: #fff !important;
}

/* WooCommerce Notices - Use brand colors instead of green */
.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--camley-brand-2) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--camley-brand-2) !important;
}

.woocommerce-error {
    border-top-color: var(--camley-brand-red) !important;
}

.woocommerce-error::before {
    color: var(--camley-brand-red) !important;
}

/* WooCommerce Block Notices (newer block-based cart/checkout) */
.wc-block-components-notice-banner.is-success {
    background-color: var(--camley-brand-2) !important;
}

.wc-block-components-notice-banner.is-success .wc-block-components-notice-banner__content {
    color: #fff !important;
}

.wc-block-components-notice-banner.is-success svg {
    fill: #fff !important;
}

.wc-block-components-notice-banner.is-error {
    background-color: var(--camley-brand-red) !important;
}

/* Disable hover zoom magnifier on gallery images */
.single-product .woocommerce-product-gallery .zoomImg {
    display: none !important;
}

.single-product .woocommerce-product-gallery__image img {
    cursor: pointer;
}

/* Upsells and Related Products - Full Width Below */
.single-product .upsells.products,
.single-product .related.products {
    width: 100%;
    flex-basis: 100%;
    order: 5;
    margin-top: 20px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    position: relative;
    z-index: 10;
}

.single-product .upsells.products > h2,
.single-product .related.products > h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--camley-brand-red);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--camley-light-grey);
}

/* Quick View Button */
.camley-quick-view {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--camley-brand-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.woocommerce ul.products li.product:hover .camley-quick-view {
    opacity: 1;
    transform: translateY(0);
}

.camley-quick-view:hover {
    background: var(--camley-brand-red-hover);
}

.quick-view-icon {
    font-size: 16px;
}

/* Quick View Modal */
.camley-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.camley-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.camley-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.camley-modal-content {
    position: relative;
    background: #fff;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.camley-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    color: #000;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.camley-modal-close:hover {
    background: transparent;
    color: var(--camley-brand-red);
}

.camley-modal-body {
    padding: 20px;
}

/* Quick View Content Layout */
.camley-quick-view-content {
    display: flex;
    gap: 30px;
}

.quick-view-gallery {
    flex: 1;
    max-width: 55%;
}

.quick-view-main-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.quick-view-details {
    flex: 1;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 30px;
}

.quick-view-details h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--camley-text-black);
    margin: 0 0 15px 0;
}

.quick-view-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--camley-brand-gold);
    margin-bottom: 15px;
}

.quick-view-description {
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

/* Hide cart and stock in quick view */
.quick-view-cart,
.camley-quick-view-content .stock,
.camley-quick-view-content p.stock {
    display: none !important;
}

.quick-view-full-details {
    display: inline-block;
    font-size: 15px;
    color: var(--camley-brand-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.quick-view-full-details:hover {
    color: var(--camley-brand-red-hover);
    text-decoration: underline;
}

/* Loading state */
.camley-modal.loading .camley-modal-body:before {
    content: "Loading...";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    font-size: 18px;
    color: #999;
}

/* Prevent body scroll when modal is open */
body.camley-modal-open {
    overflow: hidden;
}

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

/* Mobile menu button */
.camley-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: var(--camley-text-black);
}

.camley-mobile-search-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    color: var(--camley-text-black);
}

/* Mobile Menu Overlay & Drawer */
.camley-mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.camley-mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 100000;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

body.camley-mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body.camley-mobile-menu-open .camley-mobile-menu-overlay {
    display: block;
    opacity: 1;
}

body.camley-mobile-menu-open .camley-mobile-menu {
    left: 0;
}

/* Fix for iOS Safari */
.camley-mobile-menu-btn,
.camley-mobile-search-btn,
.camley-mobile-menu-close,
.camley-mobile-search-close,
.camley-menu-category-toggle {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.camley-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--camley-light-grey);
    background: var(--camley-brand-red);
    color: #fff;
}

.camley-mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
}

.camley-mobile-menu-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    padding: 0;
}

.camley-mobile-menu-content {
    padding: 20px;
}

.camley-mobile-categories h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--camley-brand-red);
}

.camley-mobile-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.camley-mobile-category-item {
    position: relative;
    border-bottom: 1px solid var(--camley-light-grey);
}

.camley-mobile-category-item > a {
    display: block;
    padding: 12px 0;
    color: var(--camley-text-black);
    text-decoration: none;
    font-size: 15px;
}

.camley-mobile-category-item.has-children > a {
    padding-right: 40px;
}

.camley-menu-category-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    color: var(--camley-brand-red);
    transition: transform 0.3s ease;
}

.camley-mobile-category-item.open .camley-menu-category-toggle {
    transform: translateY(-50%) rotate(45deg);
}

.camley-mobile-subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--camley-background);
}

.camley-mobile-category-item.open .camley-mobile-subcategory-list {
    max-height: 500px;
}

.camley-mobile-subcategory-list li {
    border-bottom: 1px solid var(--camley-light-grey);
}

.camley-mobile-subcategory-list li:last-child {
    border-bottom: none;
}

.camley-mobile-subcategory-list a {
    display: block;
    padding: 10px 15px;
    color: var(--camley-text-black);
    text-decoration: none;
    font-size: 14px;
}

.camley-mobile-subcategory-list a:hover {
    color: var(--camley-brand-red);
    background: #fff;
}

/* Mobile Search Overlay */
.camley-mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.camley-mobile-search-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body.camley-mobile-search-open .camley-mobile-search-overlay {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 1;
}

.camley-mobile-search-container {
    width: 90%;
    max-width: 500px;
    position: relative;
}

.camley-mobile-search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.camley-mobile-search-overlay .camley-search-form {
    display: flex;
    gap: 10px;
}

.camley-mobile-search-overlay .camley-search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
}

.camley-mobile-search-overlay .camley-search-button {
    padding: 15px 25px;
    font-size: 18px;
}

/* 1. PHONE PORTRAIT (Up to 767px)
   Most phones in portrait mode: 320-414px CSS width */
@media (max-width: 767px) {
    /* Custom Header - Mobile Layout */
    .camley-custom-header {
        padding: 10px 0;
    }

    .camley-header-container {
        position: relative;
        flex-wrap: nowrap;
        padding: 0 12px;
        gap: 12px;
        justify-content: center;
    }

    /* Show mobile menu and search buttons */
    .camley-mobile-menu-btn,
    .camley-mobile-search-btn {
        display: block !important;
        position: absolute;
        left: 12px;
        z-index: 10;
    }

    .camley-mobile-search-btn {
        left: 50px;
    }

    /* Hide full search form on mobile */
    .camley-header-search {
        display: none;
    }

    /* Center logo */
    .camley-header-logo {
        flex-shrink: 0;
        order: 0;
    }

    .camley-logo-img {
        max-width: 100px;
        max-height: 40px;
    }

    /* Position actions on right */
    .camley-header-actions {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        gap: 12px;
    }

    .camley-header-account a,
    .camley-header-cart a {
        flex-direction: row;
        gap: 0;
    }

    .camley-header-actions .camley-icon {
        font-size: 22px;
    }

    .camley-header-actions .camley-label {
        display: none;
    }

    .camley-cart-count {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -8px;
        right: -8px;
    }

    /* Hide checkout button on mobile */
    .camley-header-checkout {
        display: none;
    }

    /* Brands and categories navigation on mobile */
    /* Brand Row - Mobile: Show only 3 brands */
    .camley-brand-row-wrapper {
        padding: 8px 5px;
    }

    .camley-brand-row {
        gap: 5px;
    }

    .camley-brand-item {
        flex-shrink: 0;
        padding: 3px 6px;
    }

    .camley-brand-item img {
        height: 20px;
    }

    .camley-brand-item .camley-brand-name {
        font-size: 9px;
    }

    .camley-all-brands-btn,
    .camley-new-in-btn {
        padding: 3px 8px;
    }

    .camley-all-brands-btn strong,
    .camley-new-in-btn strong {
        font-size: 9px;
    }

    /* Category Row - Hide on mobile */
    .camley-category-row {
        display: none;
    }

    /* Apple Footer - Mobile */
    .camley-apple-footer {
        padding: 30px 0 15px;
    }

    .camley-apple-footer .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 20px;
    }

    .camley-apple-footer .footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .camley-apple-footer .footer-legal-links {
        flex-wrap: wrap;
        gap: 10px 15px;
    }

    /* Brand Row - Minimal */
    .camley-brand-row-wrapper {
        padding: 10px 15px;
    }

    .camley-brand-row {
        gap: 10px;
    }

    .camley-brand-item {
        flex-shrink: 0;
        padding: 5px 10px;
    }

    .camley-brand-item img {
        height: 25px;
    }

    .camley-brand-item .camley-brand-name {
        font-size: 11px;
        white-space: nowrap;
    }

    .camley-all-brands-btn strong,
    .camley-new-in-btn strong {
        font-size: 11px;
        white-space: nowrap;
    }

    /* Category Row - Compact */
    .camley-category-row {
        flex-direction: column;
        align-items: stretch;
        padding: 5px 15px;
        gap: 0;
    }

    .camley-category-item {
        width: 100%;
        padding: 10px 5px;
        border-bottom: 1px solid var(--camley-light-grey);
    }

    .camley-category-item > a {
        font-size: 13px;
        display: block;
        width: 100%;
    }

    .camley-subcategory-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--camley-light-grey);
        padding-left: 15px;
        margin-top: 5px;
    }

    .camley-subcategory-dropdown a {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* Brand Filter Widget */
    .camley-brand-filter-list label {
        font-size: 13px;
    }

    .camley-brand-filter-list .count {
        font-size: 11px;
    }

    .camley-filter-button {
        padding: 12px 15px;
        font-size: 13px;
    }

    /* Shop Title - Mobile */
    .camley-shop-title-wrapper {
        margin: 0 0 15px 0;
        padding: 0 10px;
    }

    .camley-shop-title {
        font-size: 22px;
        padding: 12px 0 8px 0;
        min-width: auto;
        border-bottom-width: 2px;
    }

    /* Results Bar - Mobile */
    .camley-results-bar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .camley-sidebar-toggle {
        padding: 8px 12px;
        font-size: 13px;
    }

    .camley-results-bar .woocommerce-result-count {
        flex: 1;
        text-align: center;
        font-size: 13px;
    }

    .camley-results-bar .woocommerce-ordering select {
        padding: 6px 8px;
        font-size: 13px;
    }

    /* Single Product - Mobile: Stack everything vertically */
    .single-product div.product {
        display: flex;
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    .camley-back-button {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        font-size: 13px;
        margin-bottom: 12px;
    }

    .single-product div.product .product_title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .single-product .woocommerce-product-gallery {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        order: 1;
    }

    .single-product .summary {
        width: 100% !important;
        order: 2;
    }

    .single-product .woocommerce-tabs {
        width: 100% !important;
        margin-left: 0 !important;
        order: 3;
    }

    .single-product .camley-product-breadcrumb-row {
        order: 0;
    }

    .single-product .upsells.products,
    .single-product .related.products {
        order: 4;
    }

    .single-product .summary .price {
        font-size: 22px;
    }

    /* Upsells and Related Products - Mobile */
    .single-product .upsells.products,
    .single-product .related.products {
        margin-top: 40px;
        padding-top: 30px;
    }

    .single-product .upsells.products > h2,
    .single-product .related.products > h2 {
        font-size: 24px;
    }

    /* Sticky Top Bar - Mobile */
    .camley-sticky-top-bar {
        padding: 6px 0;
    }

    .sticky-bar-content {
        flex-direction: column;
        gap: 8px;
    }

    .sticky-bar-breadcrumbs {
        width: 100%;
        order: 2;
    }

    .sticky-breadcrumbs {
        font-size: 11px;
    }

    .sticky-bar-cart {
        width: 100%;
        order: 1;
    }

    .sticky-cart-toggle {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        font-size: 13px;
    }

    .sticky-cart-dropdown {
        min-width: 280px;
        right: 5px;
    }

    /* Sticky Product Bar - Mobile */
    .camley-sticky-product-bar {
        padding: 8px 0;
    }

    .sticky-product-bar-content {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .sticky-product-back {
        order: 1;
        width: 100%;
    }

    .sticky-back-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        font-size: 13px;
    }

    .sticky-product-actions {
        order: 2;
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .sticky-product-price {
        font-size: 20px;
        text-align: center;
    }

    .sticky-product-add-to-cart {
        width: 100%;
        justify-content: center;
    }

    .sticky-product-add-to-cart form.cart {
        width: 100%;
        justify-content: center;
    }

    /* Dual Navigation Sticky Position - Mobile */
    body.scrolled .camley-dual-navigation {
        top: 80px; /* Adjust for mobile sticky bar height */
    }

    /* Quick View - Mobile */
    .camley-quick-view {
        opacity: 1;
        transform: translateY(0);
        bottom: 5px;
        right: 5px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .quick-view-text {
        display: none;
    }

    .camley-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .camley-quick-view-content {
        flex-direction: column;
    }

    .quick-view-gallery,
    .quick-view-details {
        max-width: 100%;
    }

    .quick-view-details h2 {
        font-size: 22px;
    }

    .quick-view-price {
        font-size: 20px;
    }

    .camley-modal-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* 2. TABLET PORTRAIT / PHONE LANDSCAPE (768px - 1023px)
   Tablets in portrait, phones in landscape: 768-1024px */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Custom Header - Tablet Layout */
    .camley-header-container {
        padding: 0 15px;
        gap: 15px;
    }

    .camley-logo-img {
        max-width: 160px;
        max-height: 65px;
    }

    .camley-header-search {
        max-width: 600px;
    }

    .camley-header-search .camley-search-input {
        width: 100% !important;
        min-width: 300px;
    }

    .camley-header-actions {
        gap: 12px;
    }

    .camley-header-actions .camley-icon {
        font-size: 22px;
    }

    .camley-header-actions .camley-label {
        font-size: 11px;
    }

    .camley-checkout-btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    /* Brand Row - Single line */
    .camley-brand-row-wrapper {
        padding: 12px 15px;
    }

    .camley-brand-row {
        gap: 10px;
    }

    .camley-brand-item {
        flex-shrink: 0;
        padding: 4px 10px;
    }

    .camley-brand-item img {
        height: 28px;
    }

    .camley-brand-item .camley-brand-name {
        font-size: 11px;
    }

    .camley-all-brands-btn strong,
    .camley-new-in-btn strong {
        font-size: 11px;
    }

    /* Category Row - Wrapped */
    .camley-category-row {
        padding: 10px 20px;
        gap: 3px;
    }

    .camley-category-item {
        padding: 6px 12px;
    }

    .camley-category-item > a {
        font-size: 13px;
    }

    .camley-subcategory-dropdown a {
        font-size: 12px;
        padding: 8px 12px;
    }

    /* Shop Title - Tablet */
    .camley-shop-title-wrapper {
        margin: 0 0 18px 0;
    }

    .camley-shop-title {
        font-size: 28px;
    }

    /* Results Bar - Tablet */
    .camley-results-bar {
        margin-bottom: 18px;
        gap: 12px;
    }

    .camley-sidebar-toggle {
        padding: 9px 12px;
        font-size: 13px;
    }

    .camley-results-bar .woocommerce-result-count {
        font-size: 13px;
    }

    .camley-results-bar .woocommerce-ordering select {
        padding: 7px 10px;
        font-size: 13px;
    }

    /* Single Product - Tablet: 50/50 layout */
    .single-product div.product {
        gap: 20px;
        padding: 15px;
    }

    .single-product div.product .product_title {
        font-size: 22px;
    }

    .single-product .woocommerce-product-gallery {
        width: calc(50% - 10px);
        padding: 20px;
    }

    .single-product .summary {
        width: calc(50% - 10px);
        padding: 20px;
    }

    .single-product .woocommerce-tabs {
        width: calc(50% - 10px);
        margin-left: calc(50% + 10px);
    }

    .single-product .summary .price {
        font-size: 24px;
    }

    /* Upsells and Related Products - Tablet */
    .single-product .upsells.products,
    .single-product .related.products {
        margin-top: 50px;
        padding-top: 35px;
    }

    .single-product .upsells.products > h2,
    .single-product .related.products > h2 {
        font-size: 28px;
    }
}

/* 3. TABLET LANDSCAPE / SMALL DESKTOP (1024px - 1279px)
   Tablets in landscape, small laptops: 1024-1280px */
@media (min-width: 1024px) and (max-width: 1279px) {
    /* Brand Row - Slightly compact */
    .camley-brand-row {
        padding: 13px 0;
        gap: 20px;
    }

    .camley-brand-item img {
        height: 35px;
    }

    .camley-brand-item .camley-brand-name {
        font-size: 13px;
    }

    .camley-all-brands-btn strong,
    .camley-new-in-btn strong {
        font-size: 13px;
    }

    /* Category Row */
    .camley-category-row {
        padding: 10px 0;
    }

    .camley-category-item > a {
        font-size: 13px;
    }
}

/* 4. DESKTOP (1280px and above)
   Full desktop layout - default styles already set above */
@media (min-width: 1280px) {
    /* Uses default styles - no overrides needed */
    /* This is your tested desktop layout */
}

/* ==========================================================================
   APPLE-STYLE PRODUCT SUMMARY SECTIONS
   ========================================================================== */

/* Summary card base */
.camley-summary-card {
    background: #fff;
    border: 1px solid var(--camley-light-grey);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 12px;
}

/* Collapsible summary cards */
.camley-summary-card .camley-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.camley-summary-card.camley-collapsible .camley-card-header {
    cursor: pointer;
}

.camley-summary-card .camley-card-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camley-summary-card .camley-card-toggle::before {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--camley-text-muted);
    border-bottom: 2px solid var(--camley-text-muted);
    transform: rotate(-135deg);
    transition: transform 0.3s ease;
    margin-top: 3px;
}

/* Dividing line inside collapsible content (not hero) */
.camley-summary-card:not(.camley-hero-section) .camley-card-content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--camley-light-grey);
}

/* Remove bottom margin from last element in card content */
.camley-summary-card .camley-card-content > *:last-child,
.camley-summary-card .camley-card-content p:last-child {
    margin-bottom: 0;
}

/* Remove bottom margin from hero section CTA */
.camley-hero-section .camley-product-cta {
    margin-bottom: 0;
}

.camley-hero-section .camley-product-cta > *:last-child,
.camley-hero-section .camley-product-cta form.cart,
.single-product .summary .camley-hero-section form.cart {
    margin-bottom: 0;
}

.camley-summary-card.camley-collapsed .camley-card-content,
.camley-summary-card.camley-collapsed .camley-specs-list {
    display: none;
}

.camley-summary-card.camley-collapsed .camley-card-toggle::before {
    transform: rotate(45deg);
    margin-top: -3px;
}

/* Inline condition badge in title */
.camley-condition-badge--inline {
    margin-left: 10px;
    font-size: 12px;
    vertical-align: middle;
}

/* Hero Section */
.camley-hero-section {
    text-align: left;
}

.camley-hero-section .camley-condition-badge {
    display: inline-block;
    margin: 0;
    font-size: 15px;
    padding: 6px 14px;
}

.camley-product-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--camley-text-black);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.camley-product-subtitle {
    font-size: 14px;
    color: var(--camley-text-muted);
    margin: 0 0 20px 0;
}

.camley-product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.camley-product-price {
    text-align: right;
    border: none;
}

.camley-product-price .price,
.camley-product-price .woocommerce-Price-amount,
.camley-product-price bdi,
.camley-product-price .woocommerce-Price-currencySymbol,
.camley-hero-section .camley-product-price .woocommerce-Price-amount,
.camley-hero-section .camley-product-price bdi,
.camley-hero-section .camley-product-price .woocommerce-Price-currencySymbol {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: var(--camley-brand-gold) !important;
}

.camley-product-price .price del {
    font-size: 18px !important;
    color: var(--camley-text-muted) !important;
}

.camley-product-price .price ins {
    text-decoration: none;
}

/* CTA Section */
.camley-product-cta {
    margin-bottom: 16px;
}

.camley-product-cta .cart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.camley-product-cta .quantity {
    display: none; /* Hide quantity for single items */
}

.camley-product-cta .single_add_to_cart_button {
    width: 100%;
    background: var(--camley-brand-red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.camley-product-cta .single_add_to_cart_button:hover {
    background: var(--camley-brand-red-hover) !important;
}

/* Stock Status */
.camley-product-stock {
    display: flex;
    align-items: center;
    gap: 16px;
}

.camley-stock-status {
    font-size: 14px;
    font-weight: 500;
}

.camley-stock-status--in-stock {
    color: #2e7d32;
}

.camley-stock-status--in-stock .stock-icon {
    margin-right: 4px;
}

.camley-stock-status--out-of-stock {
    color: #c62828;
}

.camley-delivery-note {
    font-size: 13px;
    color: var(--camley-text-muted);
}

/* Condition Notes Section */
.camley-condition-notes-section .camley-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--camley-text-black);
    margin: 0;
}

.camley-condition-notes-section .camley-card-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--camley-text-muted);
}

.camley-condition-notes-section .camley-card-content p {
    margin: 0;
}

/* Specifications Section */
.camley-specifications-section .camley-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--camley-text-black);
    margin: 0;
}

.camley-specs-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--camley-light-grey);
}

.camley-spec-item {
    display: block;
    font-size: 14px;
    color: var(--camley-text-black);
}

a.camley-spec-link {
    text-decoration: none;
    color: var(--camley-text-black);
    transition: color 0.2s ease;
}

a.camley-spec-link:hover {
    text-decoration: underline;
    color: var(--camley-brand-red);
}

/* Detailed Description - Condition detail items */
.camley-detail-item {
    display: flex;
    flex-direction: row;
    margin-bottom: 6px;
}

.camley-detail-item:last-of-type {
    margin-bottom: 16px;
}

.camley-detail-label {
    flex-shrink: 0;
    min-width: 100px;
}

.camley-detail-text {
    padding-left: 8px;
}

/* Condition Badge (shared) */
.camley-condition-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.camley-condition-badge--mint {
    background: var(--camley-condition-mint-bg);
    color: var(--camley-condition-mint-text);
}

.camley-condition-badge--excellent {
    background: var(--camley-condition-excellent-bg);
    color: var(--camley-condition-excellent-text);
}

.camley-condition-badge--good {
    background: var(--camley-condition-good-bg);
    color: var(--camley-condition-good-text);
}

.camley-condition-badge--fair {
    background: var(--camley-condition-fair-bg);
    color: var(--camley-condition-fair-text);
}

/* ============================================
   Condition Badge Tooltips
   ============================================ */

/* Badge with tooltip - cursor and relative positioning */
.camley-condition-badge--has-tooltip {
    cursor: help;
    position: relative;
}

/* Tooltip container */
.camley-condition-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    min-width: 200px;
    max-width: 300px;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 10000;
    pointer-events: none;
    white-space: normal;
}

/* Tooltip arrow */
.camley-condition-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

/* Tooltip title */
.camley-condition-tooltip-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

/* Tooltip description */
.camley-condition-tooltip-desc {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

/* Show tooltip on hover (desktop) and when active (mobile) */
.camley-condition-badge--has-tooltip:hover .camley-condition-tooltip,
.camley-condition-badge--has-tooltip.tooltip-active .camley-condition-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Position adjustments for hero section (left-aligned) */
.camley-hero-section .camley-condition-tooltip {
    left: 0;
    transform: translateX(0) translateY(5px);
}

.camley-hero-section .camley-condition-badge--has-tooltip:hover .camley-condition-tooltip,
.camley-hero-section .camley-condition-badge--has-tooltip.tooltip-active .camley-condition-tooltip {
    transform: translateX(0) translateY(0);
}

.camley-hero-section .camley-condition-tooltip::after {
    left: 20px;
}

/* Position adjustments for product card (right-aligned) */
.camley-product-card .camley-condition-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(5px);
}

.camley-product-card .camley-condition-badge--has-tooltip:hover .camley-condition-tooltip,
.camley-product-card .camley-condition-badge--has-tooltip.tooltip-active .camley-condition-tooltip {
    transform: translateX(0) translateY(0);
}

.camley-product-card .camley-condition-tooltip::after {
    left: auto;
    right: 20px;
}

/* Mobile: centered modal-style tooltip */
@media (max-width: 768px) {
    .camley-condition-tooltip {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) scale(0.95);
        min-width: 280px;
        max-width: calc(100vw - 40px);
    }

    .camley-condition-tooltip::after {
        display: none;
    }

    .camley-condition-badge--has-tooltip.tooltip-active .camley-condition-tooltip {
        transform: translate(-50%, -50%) scale(1);
    }

    .camley-condition-badge--has-tooltip:hover .camley-condition-tooltip {
        opacity: 0;
        visibility: hidden;
    }

    .camley-condition-badge--has-tooltip.tooltip-active .camley-condition-tooltip {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile overlay for tap-to-close */
.camley-tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.camley-tooltip-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsiveness for summary cards */
@media (max-width: 768px) {
    .camley-summary-card {
        padding: 20px;
        border-radius: 8px;
    }

    .camley-product-title {
        font-size: 22px;
    }

    .camley-product-price .price {
        font-size: 28px !important;
    }

    .camley-product-stock {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ==========================================================================
   APPLE-STYLE PRODUCT DETAIL CARDS
   ========================================================================== */

/* Base card component */
.camley-product-card {
    background: #fff;
    border: 1px solid var(--camley-light-grey);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.camley-product-card:hover {
    border-color: #b0b0b5;
}

/* Active/selected state - red border */
.camley-product-card--active,
.camley-product-card--highlighted {
    border: 2px solid var(--camley-brand-red);
    padding: 19px 23px; /* Compensate for thicker border */
}

/* CTA card - red background */
.camley-product-card--cta {
    background: var(--camley-brand-red);
    border-color: var(--camley-brand-red);
    color: #fff;
}

.camley-product-card--cta:hover {
    background: var(--camley-brand-red-hover);
    border-color: var(--camley-brand-red-hover);
}

/* Section header */
.camley-section-header {
    font-size: 18px;
    font-weight: 600;
    color: var(--camley-text-black);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.camley-section-header--with-subtitle {
    margin-bottom: 4px;
}

.camley-section-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--camley-text-muted);
    margin: 0 0 16px 0;
}

/* Card header with icon/title */
.camley-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.camley-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--camley-text-black);
    margin: 0;
    line-height: 1.4;
}

.camley-card-title--large {
    font-size: 18px;
}

.camley-card-subtitle {
    font-size: 14px;
    color: var(--camley-text-muted);
    margin: 4px 0 0 0;
    line-height: 1.5;
}

.camley-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--camley-background);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--camley-text-black);
    white-space: nowrap;
}

.camley-card-badge--highlight {
    background: var(--camley-brand-red);
    color: #fff;
}

.camley-card-badge--success {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Price styling */
.camley-price-primary {
    font-size: 28px;
    font-weight: 700;
    color: var(--camley-text-black);
    line-height: 1.2;
}

.camley-price-secondary {
    font-size: 14px;
    font-weight: 400;
    color: var(--camley-text-muted);
    margin-top: 4px;
}

.camley-price-secondary a {
    color: var(--camley-brand-2);
    text-decoration: none;
}

.camley-price-secondary a:hover {
    text-decoration: underline;
}

/* Expandable info box */
.camley-info-box {
    background: var(--camley-background);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.camley-info-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.camley-info-box-header:hover {
    background: #ebebed;
}

.camley-info-box-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--camley-text-black);
    margin: 0;
}

.camley-info-box-subtitle {
    font-size: 13px;
    color: var(--camley-text-muted);
    margin: 2px 0 0 0;
}

.camley-info-box-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--camley-text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.camley-info-box.is-expanded .camley-info-box-toggle {
    transform: rotate(45deg);
}

.camley-info-box-content {
    padding: 0 20px 16px;
    display: none;
}

.camley-info-box.is-expanded .camley-info-box-content {
    display: block;
}

.camley-info-box-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--camley-text-black);
    margin: 0 0 12px 0;
}

.camley-info-box-content p:last-child {
    margin-bottom: 0;
}

.camley-info-box-content ul {
    margin: 0;
    padding: 0 0 0 20px;
}

.camley-info-box-content li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--camley-text-black);
    margin-bottom: 8px;
}

.camley-info-box-content li:last-child {
    margin-bottom: 0;
}

/* Collapsible card */
.camley-product-card--collapsible .camley-card-header {
    cursor: pointer;
}

.camley-product-card--collapsible .camley-card-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--camley-text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.camley-product-card--collapsible.is-collapsed .camley-card-toggle {
    transform: rotate(-90deg);
}

.camley-product-card--collapsible .camley-card-content {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--camley-light-grey);
}

.camley-product-card--collapsible.is-collapsed .camley-card-content {
    display: none;
}

/* Feature list inside cards */
.camley-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.camley-feature-list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--camley-text-black);
    margin-bottom: 10px;
}

.camley-feature-list li:last-child {
    margin-bottom: 0;
}

.camley-feature-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--camley-text-muted);
}

/* CTA link/button inside cards */
.camley-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--camley-brand-red);
    text-decoration: none;
    margin-top: 12px;
}

.camley-card-cta:hover {
    text-decoration: underline;
}

.camley-card-cta-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.camley-card-cta:hover .camley-card-cta-arrow {
    transform: translateX(3px);
}

/* Divider */
.camley-section-divider {
    height: 1px;
    background: var(--camley-light-grey);
    margin: 20px 0;
}

/* Product detail sections wrapper */
.camley-product-sections {
    margin-top: 20px;
}

/* Condition grade badges - product detail cards override */
.camley-product-card .camley-condition-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .camley-product-card {
        padding: 16px 18px;
        border-radius: 10px;
    }

    .camley-product-card--active,
    .camley-product-card--highlighted {
        padding: 15px 17px;
    }

    .camley-section-header {
        font-size: 16px;
    }

    .camley-price-primary {
        font-size: 24px;
    }

    .camley-info-box-header {
        padding: 14px 16px;
    }

    .camley-info-box-content {
        padding: 0 16px 14px;
    }
}
