/* Khamsa Art – single stylesheet (replaces Porto + Elementor + plugin CSS). */

:root {
    --primary: #262d4f;
    --primary-hover: #3b436b;
    --button: #3b436b;
    --dark: #222529;
    --text: #777;
    --text-dark: #222529;
    --muted: #999;
    --light-bg: #f4f4f4;
    --border: #e7e7e7;
    --danger: #e31b1b;
    --font: 'Poppins', sans-serif;
    --gutter: 4vw; /* side padding = 4% of the window, as on the original */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 300;
    font-size: 14px;
    line-height: 24px;
    color: var(--text);
    background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
b, strong { font-weight: 700; }
sub, sup { font-size: 75%; line-height: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3, h4, h5, h6 { color: var(--primary); margin: 0 0 .5em; }
h1 { font-size: 30px; line-height: 44px; font-weight: 700; }
h2 { font-size: 25px; line-height: 40px; font-weight: 700; }
h3 { font-size: 24px; line-height: 30px; font-weight: 700; }
h4 { font-size: 20px; line-height: 27px; font-weight: 700; }

.container {
    width: 100%;
    padding: 0 var(--gutter);
}

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    border: 1px solid transparent;
    border-radius: 0;
    text-align: center;
    transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--primary); }
.btn-outline-light {
    background: transparent; border: 3px solid #fff; color: #fff;
    font-weight: 700; font-size: 16px; line-height: 1.333; letter-spacing: .16px;
    text-transform: uppercase; padding: 16px 48px;
}
.btn-outline-light:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-xs { padding: 3px 9px; font-size: 11px; text-transform: uppercase; font-weight: 600; }
.btn-block { display: block; width: 100%; }

/* ---------- Top banner ---------- */

.top-banner {
    background: #000;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    padding: 10px 15px;
}
.top-banner a { color: #fff; }

/* ---------- Header ---------- */

.site-header { background: #fff; position: relative; z-index: 50; }

.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding-top: 25px; padding-bottom: 25px; /* height = tallest item + 50px, like the original */
}

.logo { justify-self: center; }
.logo img { width: 130px; height: auto; }

.menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 0 15px; padding: 0; }
.menu > li { position: relative; }
.menu > li > a {
    display: flex; align-items: center; gap: 3px;
    position: relative;
    padding: 9px 15px;
    font-size: 11px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: -.12px;
    text-transform: uppercase;
    color: var(--primary);
    white-space: nowrap;
}
.menu .caret { width: 10px; height: 10px; }
.menu > li:hover > a, .menu > li.active > a { color: var(--primary-hover); }

.tip {
    position: absolute;
    top: -9px; right: 10px;
    background: var(--danger);
    color: #fff;
    font-size: 9px;
    line-height: 9px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px;
    border-radius: 2px;
}
.tip::after {
    content: ''; position: absolute; left: 6px; top: 100%;
    border: 3px solid transparent; border-top-color: var(--danger);
}
.tip-new { position: static; margin-left: 4px; display: inline-block; background: #0cc485; letter-spacing: .33px; }
.tip-new::after { display: none; }

/* Dropdowns: vertical list, second level flies out to the right (as on the original). */
.sub-menu {
    position: absolute;
    top: 100%; left: -15px;
    opacity: 0; visibility: hidden;
    transition: opacity .2s, visibility .2s;
}
.menu > li:hover > .sub-menu, .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.sub-menu ul {
    list-style: none; margin: 0; padding: 5px 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 5px 8px rgba(0, 0, 0, .15);
}
.sub-menu li { position: relative; }
.sub-menu a {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 15px;
    font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .33px;
    text-transform: uppercase; color: var(--text); white-space: nowrap;
}
.sub-menu li:hover > a { background: var(--light-bg); color: var(--text); }
.sub-menu .arrow { margin-left: auto; padding-left: 15px; width: auto; height: 10px; box-sizing: content-box; }
.sub-menu ul ul {
    position: absolute; left: 100%; top: -5px;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.sub-menu li:hover > ul, .sub-menu li:focus-within > ul { opacity: 1; visibility: visible; }

.header-right { display: flex; align-items: center; justify-content: flex-end; }
.header-link { font-size: 11px; line-height: 20px; font-weight: 600; letter-spacing: -.12px; text-transform: uppercase; padding: 0 15px; }
.header-icon { display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; color: var(--text-dark); font-size: 26px; }
.header-right > a[aria-label="My account"] { width: 35px; font-size: 24px; margin-left: 14px; }
.search-wrap { margin-left: 15px; }
.search-wrap .header-icon { width: 40px; height: 40px; font-size: 20px; }
.header-icon.cart { width: 52px; margin-left: 8px; justify-content: flex-start; }
.header-icon:hover { color: var(--primary); }
.header-icon.cart { position: relative; }
.header-icon.cart .caret { font-size: 12px; margin-left: 6px; }
.cart-count {
    position: absolute; top: -6px; left: 15px;
    min-width: 16px; height: 16px; line-height: 16px; border-radius: 50%;
    background: #ff5b5b; color: #fff; font-size: 10px; font-weight: 600; text-align: center;
}

.search-wrap { position: relative; }
.search-form {
    display: none;
    position: absolute; right: -20px; top: calc(100% + 12px);
    border: 5px solid var(--light-bg); background: #fff;
    box-shadow: 0 5px 8px rgba(0, 0, 0, .1);
}
.search-wrap.is-open .search-form { display: flex; }
.search-form input { width: 280px; border: 0; padding: 8px 12px; outline: none; }
.search-form button { border: 0; background: none; padding: 0 12px; font-size: 16px; color: var(--primary); }

.menu-toggle { display: none; background: none; border: 0; font-size: 24px; padding: 0; color: var(--primary); }

.mobile-menu { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 100; }
.mobile-menu-panel {
    width: 280px; max-width: 85%; height: 100%; overflow-y: auto;
    background: #1d1e20; padding: 50px 0 20px;
    position: relative;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { display: block; padding: 10px 20px; color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid #242424; }
.mobile-menu ul ul a { padding-left: 35px; font-weight: 400; text-transform: none; color: #ccc; }
.mobile-menu ul ul ul a { padding-left: 50px; }
.mobile-menu-close { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: #fff; font-size: 22px; }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
    display: flex; flex-wrap: wrap; align-items: center;
    padding-top: 18px; padding-bottom: 18px;
    font-size: 11px; line-height: 24px; font-weight: 600; text-transform: uppercase;
}
.breadcrumbs a, .breadcrumbs span { color: var(--primary); }
.breadcrumbs .sep { margin: 0 10px; font-size: 10px; }

/* ---------- Home ---------- */

/* Home: header sits over the full-screen hero (as on the original). */
.home .site-header { position: absolute; left: 0; right: 0; }

.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    background: var(--hero-bg) no-repeat;
    background-position: 800px 74px;
    background-size: 85% auto;
}
.hero-content { position: absolute; top: 50%; left: 133px; }
.hero h1 { font-size: 37px; line-height: 1.2; font-weight: 300; text-transform: uppercase; margin-bottom: 30px; }

/* Box height comes from the text padding (percentages of the column width), as on the original. */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-text, .split-image { background: var(--bg) var(--bg-pos, center center) / var(--bg-size, cover) no-repeat; }
.split-image { background-color: var(--light-bg); }
.split-reverse .split-image { order: -1; }
.split-text {
    position: relative;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: var(--pad, 10% 12%);
    color: #fff;
}
.split-text::before { content: ''; position: absolute; inset: 0; background: var(--overlay, rgba(2, 1, 1, .3)); }
.split-text > * { position: relative; }
.split-text h3 { color: #fff; font-size: 3.125em; line-height: 1.2; font-weight: 400; letter-spacing: -.5px; text-transform: uppercase; margin-bottom: 16px; }
.split-text p { font-size: 19px; line-height: var(--lh, 1.6); font-weight: 300; margin-bottom: 23px; }

.features {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
    padding-top: 60px; padding-bottom: 40px;
    text-align: center;
}
.feature .icon { font-size: 35px; color: var(--primary); margin-bottom: 25px; }
.feature h3 { font-size: 1.25rem; line-height: 1.2; font-weight: 400; color: #b2b3b6; text-transform: uppercase; margin-bottom: 4px; }
.feature .feature-sub { color: #555; font-weight: 400; line-height: 1; margin-bottom: 15px; }
.feature p { font-size: 13px; line-height: 1.85; padding: 0 15px; }

.featured { padding-bottom: 60px; }
.section-title {
    text-align: center; color: #0e254e;
    font-size: 1.125rem; font-weight: 300; letter-spacing: -.18px; text-transform: uppercase;
    border-top: 1px solid var(--border); padding-top: 25px; margin-bottom: 25px;
}

.carousel { position: relative; }
.carousel-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 20px) / 5); gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    align-items: start;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav {
    position: absolute; top: 35%; z-index: 2;
    background: none; border: 0; padding: 5px; font-size: 26px; color: var(--text-dark);
}
.carousel-nav.prev { left: -40px; }
.carousel-nav.next { right: -40px; }

.slides {
    position: relative;
    height: 400px;
    background: #002fb1 var(--bg) center / cover no-repeat;
    color: #fff; text-align: center;
}
.slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 0 17%;
    opacity: 0; transition: opacity 1s;
}
.slide.is-active { opacity: 1; }
.slide h2 { color: #fff; font-size: 35px; line-height: 1; font-weight: 500; margin-bottom: 20px; }
.slide p { font-size: 17px; line-height: 1.4; font-weight: 400; max-width: 900px; }
.slides-boxed { background: var(--primary); height: 400px; }
.slides-boxed .slide h2 { font-weight: 700; }

/* ---------- Product cards ---------- */

.product-card { position: relative; }
.product-media { position: relative; margin-bottom: 15px; transition: box-shadow .25s; }
.product-image { position: relative; display: block; overflow: hidden; }
.product-image img { width: 100%; transition: opacity .3s; }
.product-image .hover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; opacity: 0; }
.product-card:hover .hover-image { opacity: 1; }
/* Hover buttons on the image (as on the original): round add-to-cart top right, quick view bar along the bottom */
.links-on-image > * { opacity: 0; transition: opacity .25s, padding .25s, background-color .25s, color .25s, border-color .25s; }
.product-media:hover .links-on-image > *, .links-on-image > :focus-within, .links-on-image > :focus-visible { opacity: 1; }
.product-media:hover { box-shadow: 0 25px 35px -5px rgba(0, 0, 0, .1); }
.links-on-image form { position: absolute; top: 15px; right: 15px; z-index: 2; }
.btn-cart-icon {
    width: 36px; height: 36px; border-radius: 50%; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #ddd; color: #333; font-size: 15px;
}
.btn-cart-icon:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-quick-view {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 2px 0; background: #3b436b; color: #fff;
    font-size: 13px; line-height: 34px; font-weight: 300; text-transform: uppercase; text-align: center;
}
.btn-quick-view:hover { color: #fff; }
.product-media:hover .btn-quick-view { opacity: .85; padding: 7px 0; }
.product-grid.view-list .links-on-image { display: none; } /* list view has its own buttons */
/* Touch screens have no hover: keep the cart button showing; tapping the image opens the artwork */
@media (hover: none) and (pointer: coarse) {
    .links-on-image > form { opacity: 1; }
    .links-on-image .btn-quick-view { display: none; }
    .product-media:hover { box-shadow: none; }
}
.sold-badge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, .85); color: var(--text-dark);
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
    padding: 4px 30px;
}
.product-cats { font-size: 9.5px; line-height: 1.5; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.product-cats a { color: var(--muted); }
.product-cats a:hover { color: var(--primary); }
.product-title { font-size: 13px; line-height: 1.35; font-weight: 400; margin: 0 0 4px; }
.product-title a { color: var(--primary); }
.product-price { font-size: 12px; line-height: 1.5; color: #444; margin: 0; }

/* ---------- Shop ---------- */

/* Porto's col-lg-3 / col-lg-9 with a 20px gutter */
.shop-layout { display: grid; grid-template-columns: calc(25% - 15px) calc(75% - 5px); column-gap: 20px; padding-bottom: 60px; }

.shop-sidebar { border: 1px solid var(--border); align-self: start; }
.shop-sidebar .widget { padding: 20px; border-bottom: 1px solid #efefef; }
.shop-sidebar .widget-title { font-size: 15px; line-height: 21px; font-weight: 400; letter-spacing: .15px; color: #313131; margin-bottom: 9px; }
.shop-sidebar .widget:last-child { border-bottom: 0; }
.widget-title {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; line-height: 1.4; font-weight: 600; text-transform: uppercase; color: var(--primary);
    margin-bottom: 12px;
}
.widget-title .toggle { background: none; border: 0; padding: 0; width: 12px; height: 12px; position: relative; }
.widget-title .toggle::before, .widget-title .toggle::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--primary); }
.widget-title .toggle::after { transform: rotate(90deg); opacity: 0; transition: opacity .2s; }
.widget.is-collapsed .toggle::after { opacity: 1; }
.widget.is-collapsed > :not(.widget-title) { display: none; }

.category-list, .artist-list { list-style: none; margin: 0; padding: 0; }
.category-list li { font-size: 13px; line-height: 24px; }
.category-list a { display: inline-block; padding: 4px 0; font-size: 14px; color: var(--text); }
.category-list .count { color: #848484; }
.category-list li.active a, .category-list a:hover { color: var(--primary); font-weight: 400; }
.artist-list li { font-size: 11px; line-height: 24px; }
.artist-list a { padding: 0 8px; }
.artist-list a { color: var(--text); }
.artist-list li.active a, .artist-list a:hover { color: var(--primary); font-weight: 600; }

.price-filter .range { position: relative; height: 20px; margin: 12px 0 22px; }
.price-filter .range::before { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--text-dark); }
.price-filter input[type=range] {
    position: absolute; left: 0; width: 100%; top: 0; margin: 0;
    pointer-events: none; background: none; -webkit-appearance: none; appearance: none;
}
.price-filter input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; pointer-events: auto;
    width: 12px; height: 12px; border-radius: 50%; background: var(--text-dark); cursor: pointer;
}
.price-filter input[type=range]::-moz-range-thumb {
    pointer-events: auto; width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--text-dark); cursor: pointer;
}
.price-filter-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12.25px; }
.price-filter .btn-xs { font-size: 12.25px; line-height: 18.4px; font-weight: 400; padding: 3px 8.75px; }
.shop-sidebar .product-list-widget li { margin: 0; padding: 8px 0; }
.shop-sidebar .product-list-widget img { width: 84px; height: 84px; }
.shop-sidebar .product-list-widget .name { font-size: 14px; font-weight: 300; line-height: 19.6px; }
.shop-sidebar .product-list-widget .price { font-size: 16px; font-weight: 200; line-height: 16px; color: #000; }

.product-list-widget ul { list-style: none; margin: 0; padding: 0; }
.product-list-widget li { margin-bottom: 15px; }
.product-list-widget a { display: flex; align-items: center; gap: 15px; }
.product-list-widget img { width: 74px; height: 74px; object-fit: cover; }
.product-list-widget .name { display: block; color: var(--text); font-size: 15px; font-weight: 400; margin-bottom: 8px; }
.product-list-widget .price { display: block; color: var(--text-dark); font-size: 16px; font-weight: 400; }

.shop-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    background: var(--light-bg); padding: 12px 10px; margin-bottom: 20px;
    font-size: 12px;
}
.shop-toolbar select, .shop-toolbar-bottom select {
    height: 34px; border: 0; background: #fff; padding: 0 30px 0 10px;
    font-size: 11px; text-transform: uppercase; color: var(--text);
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23222529' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
}
.shop-toolbar > select { min-width: 140px; }
.shop-toolbar .toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.shop-toolbar label, .shop-toolbar-bottom label { display: flex; align-items: center; gap: 8px; }
.result-count { color: var(--text); margin-right: 6px; }
.view-toggle { font-size: 14px; color: var(--text-dark); opacity: .5; display: flex; }
.view-toggle.active { opacity: 1; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.product-grid .product-card { padding-bottom: 12px; }
/* As on the original, the image box has 30px of white below the picture; the quick view bar sits at its bottom */
.product-grid .product-media { background: #fff; padding-bottom: 30px; margin-bottom: 17px; }
.product-grid .product-image { display: flex; align-items: center; justify-content: center; }
/* Like the original: cards with a hover image are capped at 300px tall and contained; others use the natural height */
.product-image.has-hover img { max-height: 300px; object-fit: contain; }
.product-grid .product-cats { margin-bottom: 3px; }
.product-grid .product-title { line-height: 20px; margin-bottom: 7px; }
.product-actions { display: none; }
/* Quick view popup (listing cards): gallery left, details right, like the original */
.qv-overlay {
    position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .5);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.qv-box {
    position: relative; width: 930px; max-width: 100%; max-height: calc(100vh - 40px); overflow: auto;
    background: #fff; padding: 30px; box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}
.qv-box.is-loading { min-height: 300px; }
.qv-box.is-loading::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px;
    border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: qv-spin .8s linear infinite;
}
@keyframes qv-spin { to { transform: rotate(360deg); } }
.qv-close {
    position: absolute; top: 8px; right: 10px; z-index: 3; width: 32px; height: 32px; padding: 0;
    background: none; border: 0; font-size: 30px; line-height: 1; font-weight: 200; color: var(--text-dark);
}
.qv-close:hover { color: var(--primary); }
.quick-view { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.quick-view .product-gallery { width: auto; margin: 0; }
.quick-view .product-summary { padding-top: 0; }
.quick-view .product-artist { margin-top: 0; }
.quick-view .product-artist a { color: inherit; }
@media (max-width: 767px) {
    .qv-box { padding: 40px 15px 20px; }
    .quick-view { grid-template-columns: 1fr; }
}

/* List view (as on the original): fixed 250px image column, text centred beside it, with buttons */
.product-grid.view-list { grid-template-columns: 1fr; gap: 20px; }
.product-grid.view-list .product-card { display: grid; grid-template-columns: 250px 1fr; column-gap: 20px; align-items: center; padding-bottom: 0; }
.product-grid.view-list .product-media { padding-bottom: 0; margin-bottom: 30px; }
.product-grid.view-list .product-image img { width: 100%; }
.product-grid.view-list .product-cats { font-size: 10px; line-height: 17px; margin: 0; }
.product-grid.view-list .product-title { font-size: 18px; line-height: 24.3px; font-weight: 600; letter-spacing: -.18px; margin: 0 0 7px; }
.product-grid.view-list .product-price { font-size: 14px; line-height: 14px; margin: 0 0 16px; }
.product-grid.view-list .product-actions { display: flex; gap: 2px; }
.btn-loop {
    display: inline-flex; align-items: center; gap: 5px;
    height: 36px; padding: 0 10px;
    border: 1px solid var(--button); background: var(--button); color: #fff;
    font-size: 12px; line-height: 34px; font-weight: 600; text-transform: uppercase;
}
.btn-loop:hover { color: #fff; background: var(--primary); }
.btn-loop .icon { font-size: 15px; }
.btn-quickview {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); color: var(--text-dark); font-size: 16px;
}
.btn-quickview:hover { color: var(--primary); border-color: var(--primary); }
.search-note, .no-results { margin: 0 0 20px; }

.shop-toolbar-bottom {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--border); margin-top: 40px; padding-top: 20px; font-size: 12px;
}
.shop-toolbar-bottom select { border: 1px solid #ddd; }
.pagination { display: flex; gap: 6px; align-items: center; }
.pagination a, .pagination span {
    min-width: 26px; height: 26px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #ccc; font-size: 11px; color: var(--text);
}
.pagination .current { border-color: var(--text-dark); color: var(--text-dark); }
.pagination .dots { border: 0; min-width: auto; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Single artwork ---------- */

.product-layout { display: grid; grid-template-columns: calc(75% - 5px) calc(25% - 15px); column-gap: 20px; }
.product-main { padding: 10px var(--gutter) 0; }
.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.gallery-main { position: relative; overflow: hidden; cursor: crosshair; touch-action: pan-y; }
.gallery-main img { width: 100%; }
/* Hover zoom: full-size image shown inside the box, panned by main.js */
.zoom-pane {
    position: absolute; inset: 0;
    background: #fff no-repeat;
    opacity: 0; transition: opacity .2s; pointer-events: none;
}
.gallery-main.is-zooming .zoom-pane { opacity: 1; }
.zoom-open {
    position: absolute; right: 4px; bottom: 4px; z-index: 2;
    width: 30px; height: 30px; border: 0; border-radius: 100%; padding: 0;
    background: none; color: #212529; font-size: 22px; line-height: 28px; font-weight: 300;
    opacity: 0; transition: opacity .1s;
}
.gallery-main:hover .zoom-open { opacity: 1; }

.lightbox {
    position: fixed; inset: 0; z-index: 1100; /* above the quick view popup */
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .9);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; padding: 10px 16px; opacity: .75; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.gallery-thumbs button { padding: 0; border: 1px solid transparent; background: none; aspect-ratio: 1; overflow: hidden; }
.gallery-thumbs button.active { border-color: var(--text-dark); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-summary { position: relative; padding-top: 30px; }
.product-nav { position: absolute; top: 12px; right: 0; display: flex; gap: 4px; }
.product-nav a {
    width: 28px; height: 28px; border-radius: 50%; border: 2px solid #e7e7e7;
    display: flex; align-items: center; justify-content: center; color: var(--text-dark); font-size: 13px;
}
.product-nav a:hover { border-color: var(--primary); }
.product-artist { font-size: 22px; line-height: 1.2; font-weight: 300; color: var(--text); margin: 0; }
.meta-line { margin: 0; font-size: 13px; line-height: 23.5px; font-weight: 200; }
.meta-group { margin-top: 23.5px; }
.meta-group:first-of-type { margin-top: 23.5px; }
.product-summary .product-price { font-size: 16px; line-height: 23.5px; font-weight: 200; color: #000; }

.product-meta { margin-top: 47px; font-size: 11px; font-weight: 300; text-transform: uppercase; }
.product-meta p { margin: 0 0 24px; }
.product-meta span, .product-meta a { color: var(--primary); font-weight: 400; }

.add-to-cart { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; }
.btn-cart {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: #fff;
    padding: 13.5px 27px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: -.3px;
}
.btn-cart .icon { font-size: 19px; }

.product-tabs { margin-top: 42px; }
.tab-titles { list-style: none; margin: 0; padding: 0; display: flex; border-bottom: 2px solid var(--border); }
.tab-titles li {
    font-size: 12px; font-weight: 400; text-transform: uppercase; color: var(--text-dark);
    padding: 10px 0; margin-bottom: -2px; border-bottom: 2px solid var(--text-dark);
}
.tab-body { padding: 30px 0; }

.product-sidebar { padding-top: 165px; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
    display: flex; align-items: center; gap: 18px;
    border-bottom: 1px solid var(--border); padding: 8px 0 6px;
    font-size: 14px; line-height: 18px; font-weight: 400; text-transform: uppercase; color: var(--text-dark);
}
.service-list li + li { margin-top: 12px; }
.service-list .icon { font-size: 34px; color: var(--primary); }

.related-widgets {
    display: grid; grid-template-columns: repeat(4, 1fr); /* widgets sit in columns 2 and 3, as on the original */
    margin-top: 20px; padding-top: 40px; padding-bottom: 45px;
    background: linear-gradient(var(--border), var(--border)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.related-widgets .product-list-widget { grid-column: span 1; padding: 0 5px; }
.related-widgets .product-list-widget:first-child { grid-column-start: 2; }
.related-widgets .widget-title { margin-bottom: 15px; }

/* ---------- Static pages ---------- */

.history { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: #f7f7f7; padding: 10px 57px 10px; margin-bottom: 40px; }
.history-text { padding-right: 10px; }
.history h1 { font-size: 25px; line-height: 40px; font-weight: 400; text-transform: uppercase; margin: 0 0 15px; }
.history p { font-size: 14px; line-height: 24px; margin-bottom: 20px; }
.history-image img { width: 100%; height: 100%; object-fit: cover; }

.page-heading { text-align: center; font-weight: 400; margin: 0 0 80px; }

.contact { padding-bottom: 100px; }
.contact-grid { display: grid; grid-template-columns: 650px 1fr; gap: 270px; }
.form label { display: block; font-size: 14px; color: var(--text); margin-bottom: 12px; }
.form input, .form textarea {
    display: block; width: 100%; margin-top: 8px;
    border: 1px solid #555; padding: 9px 12px; font-size: 13px; background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-form .btn { background: var(--button); border-color: var(--button); font-size: 15px; padding: 10px; margin-top: 20px; }
.contact-info { padding-top: 110px; font-size: 14px; line-height: 25px; }
.contact-info p { margin-bottom: 26px; }
.contact-info a { color: inherit; }

.intro-heading { text-align: center; padding: 40px 0 70px; }
.intro-heading h2 { margin-bottom: 15px; }
.two-col-text { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 0 57px 120px; font-size: 12px; line-height: 19px; }
.form-placeholder { font-size: 14px; padding-left: 210px; }

/* Enquiry forms (artist / collector) */
.enquiry-form { display: grid; gap: 14px; font-size: 14px; line-height: 22px; color: var(--text); }
.enquiry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.enquiry-form input[type=text], .enquiry-form input[type=tel], .enquiry-form input[type=email],
.enquiry-form textarea, .enquiry-form select {
    display: block; width: 100%; height: 50px; padding: 0 16px;
    border: 1px solid #e4e5ea; border-radius: 6px; background: #f7f7f9;
    font-size: 14px; font-weight: 400; color: var(--text-dark);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.enquiry-form textarea { height: 130px; padding: 14px 16px; resize: vertical; }
.enquiry-form ::placeholder { color: #9a9ca5; font-weight: 300; }
.enquiry-form input:hover, .enquiry-form textarea:hover, .enquiry-form select:hover { border-color: #cfd1d8; }
.enquiry-form input:focus, .enquiry-form textarea:focus, .enquiry-form select:focus {
    outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(38, 45, 79, .1);
}
.enquiry-field { display: grid; gap: 8px; }
.enquiry-label { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--primary); }
.enquiry-label .required { color: #d9534f; }
.enquiry-form select {
    padding-right: 44px; cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23262d4f' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 14px;
}
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* honeypot fields */

.enquiry-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 20px; cursor: pointer; }
.enquiry-consent input {
    flex: none; width: 18px; height: 18px; margin: 1px 0 0;
    appearance: none; -webkit-appearance: none; cursor: pointer;
    border: 1px solid #c9cbd3; border-radius: 4px; background: #fff;
    transition: background-color .2s, border-color .2s;
}
.enquiry-consent input:checked {
    border-color: var(--primary);
    background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.enquiry-consent input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.enquiry-consent a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.enquiry-submit {
    height: 52px; margin-top: 4px;
    border: 0; border-radius: 6px; background: var(--primary); color: #fff;
    font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    transition: background-color .2s, transform .1s;
}
.enquiry-submit:hover { background: var(--primary-hover); }
.enquiry-submit:active { transform: translateY(1px); }
.enquiry-note { margin: -4px 0 0; font-size: 12px; color: #9a9ca5; text-align: center; }

@media (max-width: 575px) {
    .enquiry-row { grid-template-columns: 1fr; }
}

.not-found { text-align: center; padding: 60px 0 120px; }
.not-found h1 { font-size: 120px; line-height: 1; color: var(--light-bg); }

/* ---------- Shop: shared bits ---------- */

.btn-lg { padding: 13px 26px; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; border-radius: 4px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-outline { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 18px; }

.notice { margin: 0 0 20px; padding: 12px 16px; border-radius: 4px; border-left: 3px solid; font-size: 13px; line-height: 20px; }
.notice-success { background: #eef7f0; border-color: #2e8540; color: #245c31; }
.notice-error { background: #fdf0f0; border-color: #c0392b; color: #8e2a20; }

.field { display: block; font-size: 14px; color: var(--text); margin-bottom: 16px; }
.field abbr { color: #c0392b; text-decoration: none; }
.field input, .field select, .field textarea {
    display: block; width: 100%; margin-top: 6px;
    height: 44px; padding: 0 12px;
    border: 1px solid #dcdde3; border-radius: 4px; background: #fff;
    font-size: 14px; color: var(--text-dark);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23262d4f' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 13px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(38, 45, 79, .1); }
.field input:disabled { background: var(--light-bg); color: var(--muted); }
.field-plain input { margin-top: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 16px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.check-heading { font-size: 20px; color: var(--primary); margin: 10px 0 18px; }
.stack-form button { margin-top: 4px; }
.stack-form fieldset { border: 1px solid var(--border); border-radius: 4px; padding: 16px 18px 2px; margin: 8px 0 20px; }
.stack-form legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--primary); }
.narrow { max-width: 560px; }
.lost-link { display: inline-block; margin-left: 14px; font-size: 13px; }

.shop-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.shop-table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--primary); padding: 12px 10px; border-bottom: 2px solid var(--border); }
.shop-table td { padding: 16px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.shop-table .num { text-align: right; white-space: nowrap; }
.shop-table .thumb { width: 96px; }
.shop-table .thumb img { width: 80px; height: 80px; object-fit: cover; }
.item-name { display: block; font-size: 16px; color: var(--primary); }
.item-meta { font-size: 12px; color: var(--muted); }
.shop-table .remove { width: 40px; text-align: right; }
.shop-table .remove button { background: none; border: 1px solid var(--border); border-radius: 50%; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); font-size: 11px; }
.shop-table .remove button:hover { border-color: #c0392b; color: #c0392b; }

.status { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; background: var(--light-bg); color: var(--text); }
.status-paid, .status-completed { background: #e6f4ea; color: #1e7b34; }
.status-shipped { background: #e8eefc; color: #2a4fb3; }
.status-on-hold, .status-pending { background: #fff4e0; color: #9a6200; }
.status-cancelled { background: #fbe9e9; color: #a52a2a; }

.empty-state { text-align: center; padding: 50px 20px 80px; }
.empty-state .icon { font-size: 54px; color: var(--primary); opacity: .8; }
.empty-state h2 { margin: 18px 0 8px; font-weight: 500; }
.empty-state p { margin-bottom: 26px; }

/* ---------- Header: mini-cart ---------- */

.cart-wrap { position: relative; margin-left: 8px; }
.cart-wrap .header-icon.cart { margin-left: 0; }
.mini-cart {
    position: absolute; right: -10px; top: calc(100% + 14px); z-index: 60;
    width: 300px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.mini-cart::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; } /* hover bridge */
.cart-wrap:hover .mini-cart, .cart-wrap:focus-within .mini-cart, .cart-wrap.is-open .mini-cart { opacity: 1; visibility: visible; transform: none; }
.mini-cart-inner { padding: 22px 26px 26px; }
.mini-cart-empty { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.mini-cart-head { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--text); }
.mini-cart-head a { color: var(--primary); }
.mini-cart-items { list-style: none; margin: 0; padding: 0; }
.mini-cart-items li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.mini-cart-items .name { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.mini-cart-items .qty { font-size: 13px; color: var(--text); }
.mini-cart-items .thumb img { width: 78px; height: 60px; object-fit: contain; }
.mini-cart-items .remove {
    position: absolute; top: 6px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
    border: 0; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); color: var(--text-dark); font-size: 9px;
    display: flex; align-items: center; justify-content: center;
}
.mini-cart-total { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 24px; font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--text); }
.mini-cart-total strong { font-size: 17px; color: var(--text-dark); }
.mini-cart-checkout { padding: 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .3px; border-radius: 2px; }


/* ---------- Cart page ---------- */

.cart-page, .checkout-page, .account-page { padding-bottom: 70px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.link-back { display: inline-flex; align-items: center; gap: 4px; margin-top: 20px; font-size: 13px; }
.cart-summary { border: 1px solid var(--border); border-radius: 4px; padding: 24px; }
.cart-summary h3 { font-size: 15px; text-transform: uppercase; margin-bottom: 18px; }
.totals { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 20px 0 24px; font-size: 14px; }
.totals dt { color: var(--text); }
.totals dd { margin: 0; text-align: right; color: var(--text-dark); }
.totals .shipping-cell small { display: block; font-size: 11px; margin-top: 2px; }
.totals .shipping-cell strong { font-weight: 500; }
.totals .grand { padding-top: 12px; border-top: 1px solid var(--border); font-size: 17px; font-weight: 600; color: var(--primary); }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #dcdde3; border-radius: 4px; font-size: 13px; }
.coupon-form .btn { border-radius: 4px; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #eef7f0; border-radius: 4px; font-size: 13px; }
.coupon-applied button { background: none; border: 0; color: #a52a2a; font-size: 12px; text-decoration: underline; }

/* ---------- Checkout (layout of the original) ---------- */

.checkout-toggle { margin-bottom: 22px; }
.checkout-toggle summary { display: inline-block; list-style: none; padding: 8px 16px; font-size: 14px; cursor: pointer; }
.checkout-toggle summary::-webkit-details-marker { display: none; }
.checkout-login { max-width: 640px; margin-top: 18px; padding: 22px; border: 1px solid var(--border); border-radius: 4px; }
.checkout-welcome { font-size: 13px; }
.discount-bar { margin-bottom: 26px; background: #f7f7f7; border: 1px solid var(--border); }
.discount-bar summary { display: flex; justify-content: space-between; align-items: center; padding: 22px 20px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--primary); }
.discount-bar summary::-webkit-details-marker { display: none; }
.discount-bar[open] summary .icon { transform: rotate(180deg); }
.discount-body { padding: 0 20px 20px; max-width: 520px; }
.checkout-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 22px; align-items: start; }
.checkout-col h2 { font-size: 28px; line-height: 1.3; margin-bottom: 22px; }
.review-table { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid #ddd; }
.review-table th, .review-table td { padding: 12px 10px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
.review-table thead th, .review-table tfoot th { background: #f4f4f4; font-weight: 600; color: var(--primary); width: 34%; }
.review-table tbody td { color: var(--primary); }
.review-table .total td strong { font-size: 17px; color: var(--text-dark); }
.payment-methods { margin-bottom: 18px; }
.payment-method { display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; font-size: 14px; color: var(--text); cursor: pointer; }
.payment-method input { accent-color: var(--primary); }
.card-logos { display: inline-flex; align-items: center; gap: 2px; }
.payment-box { display: none; font-size: 14px; line-height: 24px; }
.payment-box.is-open { display: block; }
.payment-box p { margin-bottom: 18px; }
.privacy-note { font-size: 14px; line-height: 24px; }
.terms { align-items: flex-start; }
.terms input { margin-top: 4px; }
.grand-total { font-size: 26px; font-weight: 700; color: var(--primary); margin: 20px 0 22px; }
.grand-total span { margin-left: 10px; }
.btn-place-order { padding: 10px 16px; font-size: 14px; }

/* ---------- Account, order pages ---------- */

.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.auth-card { max-width: 560px; }
.auth-grid .auth-card { max-width: none; }
.auth-card h1 { font-size: 24px; margin-bottom: 18px; }
.account-layout { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: start; }
.account-nav { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.account-nav a, .account-nav button { display: block; width: 100%; padding: 13px 18px; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left; font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--text); }
.account-nav form button { border-bottom: 0; }
.account-nav a.active, .account-nav a:hover, .account-nav button:hover { background: var(--light-bg); color: var(--primary); }
.account-content h2 { font-size: 22px; margin-bottom: 16px; }
.recent-orders { list-style: none; margin: 0; padding: 0; }
.recent-orders li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.order-received h1 { font-size: 24px; margin-bottom: 22px; }
.order-overview { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; border: 1px dashed #cfd1d8; border-radius: 4px; }
.order-overview li { flex: 1 1 150px; padding: 14px 18px; border-right: 1px dashed #cfd1d8; font-size: 11px; text-transform: uppercase; color: var(--muted); }
.order-overview li:last-child { border-right: 0; }
.order-overview strong { display: block; margin-top: 4px; font-size: 14px; text-transform: none; color: var(--text-dark); }
.bank-details { margin-bottom: 30px; padding: 20px 22px; background: #f7f7f9; border-radius: 4px; }
.bank-details h3 { font-size: 16px; margin-bottom: 8px; }
.bank-details pre { margin: 12px 0 0; font-family: inherit; font-size: 14px; white-space: pre-line; color: var(--text-dark); }
.order-section-title { font-size: 18px; margin: 10px 0 14px; }
.order-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.order-addresses h3 { font-size: 16px; margin-bottom: 10px; }
.order-addresses address { font-style: normal; font-size: 14px; line-height: 24px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 4px; }
.reserved-note { font-size: 13px; color: #9a6200; }

@media (max-width: 991px) {
    .checkout-form { grid-template-columns: 1fr 1fr; }
    .checkout-form .checkout-col:first-child { grid-column: 1 / -1; }
    .cart-layout, .account-layout { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .checkout-form, .auth-grid, .order-addresses, .field-row { grid-template-columns: 1fr; }
    .field-row { gap: 0; }
    .mini-cart { right: -16px; width: min(300px, calc(100vw - 32px)); }
    .recent-orders li { grid-template-columns: 1fr auto; }
    .shop-table .thumb { display: none; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: #a8a8a8; font-size: 13px; line-height: 24px; }
.footer-main { display: grid; grid-template-columns: 5fr 2.5fr 3fr; gap: 0 90px; padding-top: 70px; padding-bottom: 50px; }
.site-footer h3 { color: #fff; font-size: 15px; line-height: 1.4; font-weight: 600; text-transform: uppercase; margin-bottom: 15px; }
.site-footer a { color: #a8a8a8; }
.site-footer a:hover { color: #fff; }
.footer-about p { text-align: justify; margin-bottom: 10px; }
.social-links { display: flex; gap: 8px; }
.social-links a {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #2b2e32; color: #fff; font-size: 14px;
}
.social-links a:hover { background: var(--primary); }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { border-bottom: 1px solid #3b3e42; }
.footer-links a { display: flex; align-items: center; gap: 4px; padding: 7px 0; }
.footer-links .icon { font-size: 9px; }
.footer-links li.active a { font-weight: 600; }
.footer-bottom { text-align: center; padding-top: 30px; padding-bottom: 20px; font-size: 11px; line-height: 24px; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */

/* Wide screens: Porto's col-xl sidebar is 20% instead of 25% */
@media (min-width: 1500px) {
    .shop-layout, .product-layout { grid-template-columns: calc(20% - 16px) calc(80% - 4px); }
    .product-layout { grid-template-columns: calc(80% - 4px) calc(20% - 16px); }
}

@media (max-width: 1219px) {
    .menu > li > a { padding: 10px 12px; }
}

@media (max-width: 1240px) {
    .hero-content { left: 60px; }
    .hero { background-position: 60% 74px; }
    .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
    .product-layout { padding-left: 0; }
}

@media (max-width: 991px) {
    .menu-toggle { display: flex; justify-self: start; width: 32px; height: 34px; align-items: center; justify-content: center; font-size: 20px; }
    .main-nav, .header-link { display: none; }

    .split-text h3 { font-size: 36px; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .carousel-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
    .carousel-nav.prev { left: -15px; }
    .carousel-nav.next { right: -15px; }

    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { order: 2; }
    .product-layout { grid-template-columns: 1fr; }
    .product-sidebar { padding-top: 0; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-about { grid-column: 1 / -1; }
    .contact-grid, .two-col-text, .history { grid-template-columns: 1fr; gap: 30px; }
    .contact-info { padding-top: 0; }
    .form-placeholder { padding-left: 0; }
}

@media (max-width: 575px) {
    .header-inner { min-height: 100px; padding-top: 0; padding-bottom: 0; }
    .logo img { width: 85px; }
    .search-wrap { display: none; }
}

@media (max-width: 767px) {
    .top-banner { font-size: 13px; line-height: 22px; }
    .hero { background-position: 187px 90px; background-size: 383px auto; }
    .hero-content { left: var(--gutter); right: var(--gutter); }
    .hero h1 { font-size: 20px; }

    .split { grid-template-columns: 1fr; min-height: 0; }
    .split-image { display: none; }
    .split-text { padding: 60px var(--gutter); }
    .split-text h3 { font-size: 30px; }
    .split-text p { font-size: 16px; }

    .features { grid-template-columns: 1fr; }
    .carousel-track { grid-auto-columns: calc((100% - 20px) / 2); }
    .slide { padding: 0 var(--gutter); }
    .slide h2 { font-size: 26px; }
    .slide p { font-size: 14px; }

    .shop-toolbar .toolbar-right { margin-left: 0; width: 100%; justify-content: space-between; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 15px; }
    .product-grid.view-list .product-card { grid-template-columns: 40% 1fr; }
    .product-grid.view-list .product-media { margin-bottom: 0; }
    .product-top { grid-template-columns: 1fr; }
    .related-widgets { grid-template-columns: 1fr; gap: 30px; }
    .related-widgets .product-list-widget:first-child { grid-column-start: auto; }
    .history, .two-col-text { padding-left: 15px; padding-right: 15px; }
    .page-heading { margin-bottom: 30px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-main { grid-template-columns: 1fr; }
    .search-form input { width: 220px; }
}

/* ---------- Newsletter popup, WhatsApp button, cookie bar (as on the original) ---------- */

.nl-popup, .cookie-modal {
    position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .8);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: widget-fade 1.2s;
}
.nl-popup[hidden], .cookie-modal[hidden] { display: none; }
@keyframes widget-fade { from { opacity: 0; } }
.nl-box {
    position: relative; width: 640px; max-width: 100%; min-height: 320px; padding: 80px 58px 40px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-content: start;
    background: #fff; box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
}
.nl-close {
    position: absolute; top: 20px; right: 20px; width: 15px; height: 15px; padding: 0;
    background: none; border: 0; color: #777; font-size: 22px; line-height: 15px; font-weight: 200;
}
.nl-close:hover { color: var(--primary); }
.nl-text h2 { font-size: 17px; line-height: 23.8px; font-weight: 300; color: var(--primary); margin: 0 0 20px; }
.nl-text p { font-size: 13px; line-height: 23.4px; font-weight: 200; letter-spacing: .1px; color: var(--primary); margin: 0; }
.nl-form { display: grid; gap: 20px; align-content: start; }
.nl-form input:not(.hp) {
    height: 40px; padding: 8px 12px; border: 1px solid #818a91; border-radius: 3px;
    font-size: 13.6px; font-weight: 400; color: #373a3c; background: #fff; width: 100%;
}
.nl-form button {
    height: 40px; padding: 0 10px; border: 0; border-radius: 3px;
    background: #3b436b; color: #fff; font-size: 15px; font-weight: 400;
}
.nl-form button:hover { background: var(--primary); }
.nl-form button:disabled { opacity: .6; }
.nl-message { margin: 0; font-size: 13px; line-height: 1.5; color: var(--primary); }
.nl-message.is-error { color: #b42318; }

.wa-chat { position: fixed; right: 20px; bottom: 69px; z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; }
.wa-toggle {
    height: 40px; padding: 0 24px; display: flex; align-items: center; gap: 12px;
    background: var(--primary); color: #fff; border: 0; border-radius: 50px;
    font-size: 18px; line-height: 24px; font-weight: 300;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .06), 0 2px 32px rgba(0, 0, 0, .16);
    transition: transform .2s;
}
.wa-toggle:hover { transform: scale(1.04); }
.wa-toggle .icon { font-size: 18px; }
.wa-box {
    position: relative; width: 382px; max-width: calc(100vw - 40px); margin: 0 4px 36px 0;
    background: #fff; border-radius: 8px; box-shadow: 0 8px 25px -5px rgba(45, 62, 79, .15);
    animation: widget-fade .3s;
}
.wa-box::after { /* little arrow towards the button */
    content: ''; position: absolute; right: 26px; bottom: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: #fff;
}
.wa-header {
    height: 58px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between;
    background: var(--primary); color: #fff; border-radius: 8px 8px 0 0; font-size: 16px;
}
.wa-header strong { font-weight: 400; }
.wa-close { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; padding: 0; opacity: .8; }
.wa-close:hover { opacity: 1; }
.wa-account { display: flex; align-items: center; gap: 16px; padding: 36px; color: #777; border-radius: 0 0 8px 8px; }
.wa-account:hover { background: #f6f6f8; color: #777; }
.wa-avatar { position: relative; width: 62px; flex: none; }
.wa-avatar img { width: 62px; height: auto; border-radius: 50%; }
.wa-avatar::after { /* green "online" dot */
    content: ''; position: absolute; top: 4px; right: 0; width: 12px; height: 12px; border-radius: 50%; background: #25d366; border: 2px solid #fff;
}
.wa-info { display: flex; flex-direction: column; }
.wa-label { font-size: 12px; line-height: 18px; font-weight: 300; }
.wa-name { font-size: 18px; line-height: 27px; font-weight: 700; }

.cookie-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    padding: 12px 10px; background: #fff; color: #000; font-size: 15px; line-height: 24px; font-weight: 300;
    box-shadow: 0 -1px 10px rgba(172, 171, 171, .3);
}
.cookie-settings-link { margin: 5px 20px; padding: 0; background: none; border: 0; color: #62a329; font: inherit; }
.cookie-settings-link:hover { text-decoration: underline; }
.cookie-accept { margin: 5px; padding: 9px 12px; background: #000; color: #fff; border: 0; font-size: 13px; line-height: 13px; font-weight: 400; }
.cookie-accept:hover { background: #333; }
.cookie-modal { z-index: 10000; }
.cookie-dialog {
    position: relative; width: 760px; max-width: 100%; max-height: calc(100vh - 40px); overflow: auto;
    padding: 30px; background: #fff; color: #000; font-size: 14px; line-height: 1.6;
}
.cookie-dialog h2 { font-size: 18px; font-weight: 600; margin: 0 0 10px; color: #000; }
.cookie-dialog p { margin: 0 0 15px; color: #444; }
.cookie-category { border: 1px solid #e5e5e5; padding: 12px 15px 0; margin-bottom: 10px; }
.cookie-category-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cookie-category-head span, .cookie-switch span { font-size: 12px; color: #62a329; font-weight: 500; }
.cookie-switch { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.cookie-dialog .cookie-accept { margin: 10px 0 0; background: #61a229; padding: 11px 16px; }
.cookie-dialog .cookie-accept:hover { background: #4e8221; }

@media (max-width: 767px) {
    .nl-box { grid-template-columns: 1fr; padding: 50px 24px 30px; min-height: 0; }
    .nl-text { margin-bottom: 20px; }
    .wa-chat { right: 12px; bottom: 90px; }
    .wa-toggle { padding: 0 14px; font-size: 15px; }
    .cookie-bar { font-size: 13px; line-height: 20px; text-align: center; }
}

/* ---------- Add to cart: spinner on the button, then the "added to your cart" popup ---------- */

.is-loading { position: relative; pointer-events: none; }
.is-loading > * { visibility: hidden; }
.is-loading::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
    animation: qv-spin .7s linear infinite;
}
.btn-cart.is-loading, .btn-loop.is-loading { color: transparent; }
.btn-cart-icon.is-loading { opacity: 1; }
.btn-cart-icon.is-loading::after { width: 16px; height: 16px; margin: -8px 0 0 -8px; border-color: rgba(38, 45, 79, .2); border-top-color: var(--primary); }

.cart-notice {
    position: fixed; inset: 0; z-index: 10001; background: rgba(0, 0, 0, .5);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: widget-fade .2s;
}
.cart-notice-box {
    position: relative; width: 440px; max-width: 100%; padding: 30px; background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2); text-align: center;
}
.cart-notice-title { font-size: 18px; line-height: 1.4; font-weight: 500; color: var(--primary); margin: 0 0 20px; }
.cart-notice-title.is-error { color: #b42318; }
.cart-notice-tick {
    display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 6px;
    border-radius: 50%; background: #2e7d32; color: #fff; font-size: 13px; vertical-align: 2px;
}
.cart-notice-item {
    display: flex; align-items: center; gap: 15px; text-align: left;
    padding: 15px 0; margin-bottom: 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cart-notice-item[hidden] { display: none; }
.cart-notice-item img { width: 70px; height: 70px; object-fit: contain; flex: none; }
.cart-notice-item strong { display: block; font-size: 15px; font-weight: 500; color: var(--text-dark); }
.cart-notice-item em { display: block; font-size: 13px; color: var(--muted); }
.cart-notice-price { display: block; margin-top: 4px; font-size: 14px; color: var(--text-dark); }
.cart-notice-error { margin: 0 0 20px; color: var(--text); }
.cart-notice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cart-notice-actions .btn { width: 100%; text-align: center; }
.cart-notice-actions .btn:only-child { grid-column: 1 / -1; }
.cart-notice-link { display: inline-block; margin-top: 15px; font-size: 13px; color: var(--primary); text-decoration: underline; }
@media (max-width: 480px) {
    .cart-notice-box { padding: 30px 20px 24px; }
    .cart-notice-actions { grid-template-columns: 1fr; }
}
