@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Outfit:wght@300;400;500;600;700&display=swap');

/*
Theme Name: Bramwell & Co.
Theme URI: https://bramwellandco.com
Description: Premium home essentials theme
Version: 3.0.0
Author: Bramwell & Co.
*/

/* ============================================
   DESIGN SYSTEM — CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --color-bg: #FAF8F5;
    --color-bg-alt: #F5F0EB;
    --color-bg-dark: #2C2C2C;
    --color-text: #2C2C2C;
    --color-text-light: #6B6B6B;
    --color-accent: #B8977E;
    --color-accent-dark: #9A7D65;
    --color-sage: #9CAF88;
    --color-border: #E8E2DA;
    --color-white: #FFFFFF;
    --color-error: #C0392B;
    --color-success: #27AE60;

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', 'Avenir', sans-serif;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4rem;
    --space-8: 6rem;

    --container-max: 1280px;
    --container-narrow: 800px;
    --header-height: 72px;
    --announcement-height: 40px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 16px 50px rgba(0,0,0,0.12);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover,
a:focus {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

strong, b {
    font-weight: 600;
}

small {
    font-size: 0.875rem;
}

blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-text-light);
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-4);
    margin: var(--space-5) 0;
}

/* ============================================
   LAYOUT — CONTAINERS & GRID
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.container-narrow {
    width: 100%;
    max-width: var(--container-narrow);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.grid {
    display: grid;
    gap: var(--space-4);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
    min-height: 44px;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: var(--color-text);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    border-color: var(--color-bg-dark);
}

.btn-dark:hover,
.btn-dark:focus {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-sage {
    background-color: var(--color-sage);
    color: var(--color-white);
    border-color: var(--color-sage);
}

.btn-sage:hover,
.btn-sage:focus {
    background-color: #8a9d76;
    border-color: #8a9d76;
    color: var(--color-white);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    min-height: 36px;
}

.btn-lg {
    padding: 1rem 2.8rem;
    font-size: 1rem;
}

/* ============================================
   FORM INPUTS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    min-height: 44px;
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(184, 151, 126, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: #B0A89E;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B6B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    text-align: center;
    padding: 0.6rem var(--space-4);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 1001;
}

.announcement-bar a {
    color: var(--color-accent);
    font-weight: 500;
}

.announcement-bar__close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-bar__close:hover {
    opacity: 1;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition);
    height: var(--header-height);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.site-header.shrink {
    height: 60px;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-text);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--color-text);
    text-decoration: none;
}

.site-logo img {
    max-height: 44px;
    width: auto;
}

.shrink .site-logo img {
    max-height: 36px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.main-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-accent);
    transition: width var(--transition);
}

.main-nav a:hover::after,
.main-nav a.current-menu-item::after,
.main-nav .current-menu-item > a::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Header actions (search, cart, account icons) */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-actions button,
.header-actions a {
    color: var(--color-text);
    font-size: 1.1rem;
    transition: color var(--transition);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-actions button:hover,
.header-actions a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.cart-count {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -4px;
    right: -6px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(44, 44, 44, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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

.search-overlay__inner {
    width: 100%;
    max-width: 600px;
    padding: var(--space-4);
}

.search-overlay input[type="search"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-white);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 2rem;
    padding: 0.75rem 0;
    outline: none;
}

.search-overlay input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-overlay__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(44,44,44,0.3), rgba(44,44,44,0.5));
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: var(--space-6);
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: var(--space-3);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: var(--space-5);
    line-height: 1.6;
}

/* ============================================
   SECTION PATTERNS
   ============================================ */
.section {
    padding: var(--space-8) 0;
}

.section--alt {
    background-color: var(--color-bg-alt);
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-white);
}

.section__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-7);
}

.section__header h2 {
    margin-bottom: var(--space-3);
}

.section__header p {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.section__divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    margin: var(--space-3) auto;
}

/* ============================================
   WOOCOMMERCE — PRODUCT GRID
   ============================================ */
.products,
ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    padding: 0;
    list-style: none;
}

/* ============================================
   WOOCOMMERCE — PRODUCT CARDS
   ============================================ */
.products .product,
.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.products .product:hover,
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Product image */
.products .product .woocommerce-loop-product__link img,
.product-card__image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    overflow: hidden;
    transition: transform var(--transition-slow);
}

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

.product-card__image {
    position: relative;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card__image.loading {
    background: linear-gradient(90deg, var(--color-bg-alt) 25%, var(--color-bg) 50%, var(--color-bg-alt) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Sale badge */
.products .product .onsale,
.onsale,
.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    z-index: 2;
    line-height: 1;
}

/* Product info */
.products .product .woocommerce-loop-product__title,
.product-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    padding: var(--space-3) var(--space-3) 0;
    margin: 0;
    color: var(--color-text);
}

.products .product .woocommerce-loop-product__title:hover {
    color: var(--color-accent);
}

.product-card__info {
    padding: var(--space-3);
}

/* Pricing */
.products .product .price,
.product-card__price {
    padding: 0 var(--space-3);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

.products .product .price del,
.price del {
    color: var(--color-text-light);
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.products .product .price ins,
.price ins {
    text-decoration: none;
    color: var(--color-accent-dark);
    font-weight: 600;
}

/* Star ratings */
.star-rating {
    color: var(--color-accent);
    font-size: 0.85rem;
    margin: 0.4rem var(--space-3);
}

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

/* Add to cart */
.products .product .button,
.products .product .add_to_cart_button,
.product-card .add-to-cart {
    display: block;
    width: calc(100% - 2 * var(--space-3));
    margin: var(--space-3);
    padding: 0.7rem 1rem;
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 2px solid var(--color-bg-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    min-height: 44px;
    line-height: 1.6;
}

.products .product .button:hover,
.products .product .add_to_cart_button:hover,
.product-card .add-to-cart:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
}

.products .product .added_to_cart {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem;
    color: var(--color-sage);
    font-weight: 500;
}

/* ============================================
   WOOCOMMERCE — SINGLE PRODUCT
   ============================================ */
.single-product .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: start;
    margin-bottom: var(--space-7);
}

.single-product .woocommerce-product-gallery {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.single-product .woocommerce-product-gallery img {
    width: 100%;
    border-radius: var(--radius-md);
}

.single-product .entry-summary {
    padding-top: var(--space-3);
}

.single-product .product_title {
    font-size: 2.2rem;
    margin-bottom: var(--space-3);
}

.single-product .price {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-4);
}

.single-product .woocommerce-product-details__short-description {
    color: var(--color-text-light);
    margin-bottom: var(--space-5);
    line-height: 1.8;
}

.single-product .single_add_to_cart_button {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
    padding: 0.9rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    min-height: 48px;
}

.single-product .single_add_to_cart_button:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.single-product .quantity input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    min-height: 44px;
}

/* Tabs */
.woocommerce-tabs {
    margin-top: var(--space-7);
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-5);
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
    transition: all var(--transition);
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--color-text);
    border-bottom-color: var(--color-accent);
}

/* Related products */
.related.products {
    margin-top: var(--space-8);
}

.related.products h2 {
    text-align: center;
    margin-bottom: var(--space-6);
}

/* ============================================
   WOOCOMMERCE — CART PAGE
   ============================================ */
.woocommerce-cart table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-5);
}

.woocommerce-cart table.shop_table th {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
    border-bottom: 2px solid var(--color-border);
    padding: var(--space-3);
    text-align: left;
}

.woocommerce-cart table.shop_table td {
    padding: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.woocommerce-cart table.shop_table img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.woocommerce-cart .product-remove a {
    color: var(--color-text-light);
    font-size: 1.2rem;
}

.woocommerce-cart .product-remove a:hover {
    color: var(--color-error);
}

.woocommerce-cart .cart_totals {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    max-width: 450px;
    margin-left: auto;
}

.woocommerce-cart .cart_totals h2 {
    font-size: 1.3rem;
    margin-bottom: var(--space-4);
}

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

.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
}

.woocommerce-cart .checkout-button {
    display: block;
    width: 100%;
    margin-top: var(--space-4);
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition);
    min-height: 48px;
}

.woocommerce-cart .checkout-button:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-white);
    text-decoration: none;
}

/* ============================================
   WOOCOMMERCE — CHECKOUT PAGE
   ============================================ */
.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.woocommerce-checkout h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-4);
}

.woocommerce-checkout .form-row {
    margin-bottom: var(--space-3);
}

.woocommerce-checkout .form-row label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.woocommerce-checkout .input-text {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
}

.woocommerce-checkout .input-text:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 151, 126, 0.15);
}

.woocommerce-checkout #order_review {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin-top: var(--space-5);
}

.woocommerce-checkout #place_order {
    width: 100%;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    min-height: 50px;
}

.woocommerce-checkout #place_order:hover {
    background-color: var(--color-accent-dark);
}

/* ============================================
   WOOCOMMERCE — MY ACCOUNT
   ============================================ */
.woocommerce-MyAccount-navigation {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--color-bg-alt);
    color: var(--color-accent-dark);
}

.woocommerce-MyAccount-content {
    margin-top: var(--space-5);
}

/* ============================================
   WOOCOMMERCE — NOTICES
   ============================================ */
.woocommerce-message,
.woocommerce-info {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
    font-size: 0.9rem;
}

.woocommerce-error {
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-left: 4px solid var(--color-error);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
    font-size: 0.9rem;
    list-style: none;
}

/* ============================================
   TESTIMONIALS SLIDER
   ============================================ */
.testimonials {
    overflow: hidden;
    position: relative;
}

.testimonials__track {
    display: flex;
    transition: transform var(--transition-slow);
}

.testimonials__slide {
    flex: 0 0 100%;
    text-align: center;
    padding: var(--space-6) var(--space-4);
}

.testimonials__text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto var(--space-4);
    line-height: 1.6;
}

.testimonials__author {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.testimonials__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: var(--space-4);
}

.testimonials__dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-border);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.testimonials__dots button.active {
    background-color: var(--color-accent);
    transform: scale(1.2);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-4) 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color var(--transition);
}

.faq-item__question:hover {
    color: var(--color-accent);
}

.faq-item__icon {
    font-size: 1.5rem;
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: var(--space-3);
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition);
}

.faq-item.active .faq-item__answer {
    max-height: 500px;
    padding-bottom: var(--space-4);
}

.faq-item__answer p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter {
    text-align: center;
}

.newsletter__form {
    display: flex;
    gap: var(--space-2);
    max-width: 480px;
    margin: var(--space-4) auto 0;
}

.newsletter__form input[type="email"] {
    flex: 1;
    border-radius: var(--radius-sm);
}

.newsletter__form button {
    white-space: nowrap;
}

.newsletter__error {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: var(--space-2);
    display: none;
}

.newsletter__error.visible {
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--color-bg-dark);
    color: rgba(255,255,255,0.7);
    padding: var(--space-8) 0 var(--space-5);
}

.site-footer h4,
.site-footer h5 {
    color: var(--color-white);
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-7);
}

.site-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: var(--color-white);
    text-decoration: none;
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-in > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-in.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-in.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-in.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-in.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-in.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-in.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mt-6 { margin-top: 4rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-6 { margin-bottom: 4rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }
.pt-6 { padding-top: 4rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }
.pb-6 { padding-bottom: 4rem; }

.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;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   PAGE TEMPLATES
   ============================================ */
.page-header {
    text-align: center;
    padding: var(--space-7) 0;
    background-color: var(--color-bg-alt);
}

.page-header h1 {
    margin-bottom: var(--space-2);
}

.page-header .breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.page-header .breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
}

.page-header .breadcrumb a:hover {
    color: var(--color-accent);
}

.page-content {
    padding: var(--space-7) 0;
}

/* ============================================
   RESPONSIVE — TABLET (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .products,
    ul.products {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-product .product {
        gap: var(--space-5);
    }

    .woocommerce-checkout .col2-set {
        gap: var(--space-4);
    }
}

/* ============================================
   RESPONSIVE — SMALL TABLET (768px)
   ============================================ */
@media (max-width: 768px) {
    .products,
    ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .single-product .product {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }

    /* Mobile navigation */
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-8) var(--space-5);
        gap: 0;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
        z-index: 1001;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav a {
        font-size: 1rem;
        padding: 0.75rem 0;
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .main-nav a::after {
        display: none;
    }

    .hero {
        min-height: 50vh;
    }

    .hero__title {
        font-size: 2rem;
    }

    .section {
        padding: var(--space-7) 0;
    }

    .newsletter__form {
        flex-direction: column;
    }

    .testimonials__text {
        font-size: 1.2rem;
    }

    .woocommerce-cart table.shop_table thead {
        display: none;
    }

    .woocommerce-cart table.shop_table tr {
        display: block;
        margin-bottom: var(--space-3);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        padding: var(--space-3);
    }

    .woocommerce-cart table.shop_table td {
        display: block;
        border: none;
        padding: 0.3rem 0;
        text-align: right;
    }

    .woocommerce-cart table.shop_table td::before {
        content: attr(data-title);
        float: left;
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .woocommerce-cart .cart_totals {
        max-width: 100%;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .products,
    ul.products {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 45vh;
    }

    .hero__content {
        padding: var(--space-4);
    }

    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }

    .section {
        padding: var(--space-6) 0;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .announcement-bar,
    .back-to-top,
    .menu-toggle {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
