/* ===================================================
   和暮 WAGURASHI - Japandi Living & Home Goods
   Design: 自然(Nature) × 温(Warmth) × 静(Calm)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg-primary: #faf8f5;
    --bg-cream: #f3efe8;
    --bg-sage: #e8ede5;
    --bg-card: #ffffff;
    --bg-dark: #2c3330;
    --bg-dark-soft: #374340;
    --text-primary: #2c3330;
    --text-secondary: #6b7c75;
    --text-light: #faf8f5;
    --text-muted: #9da8a3;
    --accent-green: #7c9473;
    --accent-green-dark: #5d7556;
    --accent-terracotta: #c47c5a;
    --accent-terracotta-light: #d4956f;
    --accent-sand: #d4c5a9;
    --border-color: #e2ded6;
    --border-light: #eeebe5;
    --shadow-sm: 0 1px 4px rgba(44,51,48,0.05);
    --shadow-md: 0 4px 16px rgba(44,51,48,0.07);
    --shadow-lg: 0 8px 32px rgba(44,51,48,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 999px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-sans: 'Inter', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    --font-display: 'Playfair Display', 'Noto Sans JP', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

/* ========== HEADER ========== */
.site-header {
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    background: rgba(250,248,245,0.92);
}

.header-top {
    display: flex;
    justify-content: center;
    padding: 8px 0;
    background: var(--accent-green);
    color: #fff;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 400;
    border-radius: 0;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 700;
}

.main-nav {
    margin-left: auto;
    margin-right: 24px;
}

.main-nav ul {
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 0.5px;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width var(--transition), left var(--transition);
    border-radius: 1px;
}

.main-nav a:hover {
    color: var(--text-primary);
}

.main-nav a:hover::after {
    width: 100%;
    left: 0;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 11px;
    transition: transform var(--transition);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 100;
    display: block;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 22px;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--bg-sage);
    color: var(--accent-green);
}

/* Mobile-only category list (hidden on desktop) */
.nav-mobile-cats {
    display: none;
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-actions a {
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-actions a:hover {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}

.cart-count {
    background: var(--accent-terracotta);
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ========== CATEGORY BAR (2nd row) ========== */
.header-cat-bar {
    background: var(--bg-cream);
    border-top: 1px solid var(--border-light);
    overflow: hidden;
}

.cat-bar-inner {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
}

.cat-bar-inner::-webkit-scrollbar { display: none; }

.cat-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
    border-bottom: 2px solid transparent;
}

.cat-bar-item:hover {
    color: var(--accent-green);
    background: rgba(124,148,115,0.06);
    border-bottom-color: var(--accent-green);
}

.cat-bar-icon {
    font-size: 14px;
    line-height: 1;
}

.nav-close {
    display: none;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ========== HERO BANNER SLIDER ========== */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.4s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 10s ease;
}

.hero-slide.active .slide-bg {
    transform: scale(1.04);
}

.hero-slide .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44,51,48,0.55) 0%, rgba(44,51,48,0.15) 50%, rgba(44,51,48,0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 8%;
    max-width: 680px;
}

.hero-content .tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(124,148,115,0.7);
    padding: 6px 18px;
    margin-bottom: 20px;
    font-weight: 500;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    color: #fff;
    line-height: 1.35;
    margin-bottom: 18px;
    letter-spacing: 1px;
    font-weight: 600;
}

.hero-content p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    line-height: 1.9;
    max-width: 480px;
    font-weight: 300;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: #fff;
    color: var(--text-primary);
    border: none;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border-radius: var(--radius-full);
}

.btn-hero:hover {
    background: var(--accent-green);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124,148,115,0.35);
}

.btn-hero .arrow {
    transition: transform var(--transition);
    font-size: 16px;
}

.btn-hero:hover .arrow {
    transform: translateX(4px);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 36px;
    right: 8%;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    border-radius: 50%;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.slider-arrows {
    display: flex;
    gap: 6px;
}

.slider-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
}

/* ========== SECTION TITLES ========== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 10px;
}

.section-header .en-title {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 8px;
    font-weight: 400;
    font-style: italic;
}

.section-header h2 {
    font-family: var(--font-sans);
    font-size: 26px;
    letter-spacing: 2px;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-green);
    margin: 14px auto 0;
    border-radius: 2px;
}

.section-header p {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ========== CATEGORY SHOWCASE (Homepage) ========== */
.category-showcase {
    padding: 80px 0;
    background: var(--bg-primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    display: block;
    border-radius: var(--radius-md);
    background: var(--bg-cream);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 20px;
    background: linear-gradient(transparent, rgba(44,51,48,0.75));
    color: #fff;
}

.category-card .card-overlay h3 {
    font-family: var(--font-sans);
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}

.category-card .card-overlay span {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.75;
    font-style: italic;
}

/* ========== FEATURED PRODUCTS ========== */
.featured-section {
    padding: 80px 0;
    background: var(--bg-cream);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: block;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.product-card .image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--bg-cream);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.product-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .image-wrap img {
    transform: scale(1.05);
}

.product-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-terracotta);
    color: #fff;
    font-size: 10px;
    padding: 4px 12px;
    letter-spacing: 1px;
    font-weight: 600;
    z-index: 2;
    border-radius: var(--radius-full);
}

.product-card .badge.new {
    background: var(--accent-green);
}

.product-card .card-body {
    padding: 18px 16px 20px;
}

.product-card .card-category {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 6px;
    font-weight: 600;
}

.product-card h4 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-card .price-area {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-card .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-card .original-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card .tax-label {
    font-size: 10px;
    color: var(--text-muted);
}

/* Quick View overlay on hover */
.product-card .quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(124,148,115,0.9);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform var(--transition);
    backdrop-filter: blur(4px);
}

.product-card:hover .quick-view {
    transform: translateY(0);
}

/* ========== BRAND STORY SECTION ========== */
.brand-story {
    padding: 100px 0;
    background: var(--bg-sage);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.brand-story::before {
    content: '暮';
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-sans);
    font-size: 280px;
    opacity: 0.04;
    color: var(--accent-green);
    line-height: 1;
    font-weight: 900;
}

.brand-story-flex {
    display: flex;
    align-items: center;
    gap: 70px;
}

.brand-story-text { flex: 1; }

.brand-story-text .en-title {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 14px;
    font-style: italic;
}

.brand-story-text h2 {
    font-family: var(--font-sans);
    font-size: 30px;
    letter-spacing: 2px;
    margin-bottom: 22px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-story-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 14px;
    font-weight: 300;
}

.brand-story-image {
    flex: 0 0 420px;
    height: 480px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.brand-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== NEW ARRIVALS ========== */
.new-arrivals {
    padding: 80px 0;
    background: var(--bg-primary);
}

/* ========== CATEGORY PAGE ========== */
.category-hero {
    background: var(--bg-sage);
    padding: 55px 0;
    text-align: center;
    color: var(--text-primary);
}

.category-hero h1 {
    font-family: var(--font-sans);
    font-size: 30px;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 700;
}

.category-hero p {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
}

.category-content {
    padding: 50px 0;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.filter-bar .result-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.filter-bar select {
    padding: 10px 36px 10px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-primary);
    appearance: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    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='%236b7c75' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.pagination a:hover {
    border-color: var(--accent-green);
    background: var(--accent-green);
    color: #fff;
}

.pagination .current {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}

/* ========== PRODUCT DETAIL ========== */
.product-detail {
    padding: 40px 0 80px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.breadcrumb a:hover { color: var(--accent-green); }
.breadcrumb span { color: var(--text-muted); }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-cream);
    margin-bottom: 12px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-main:hover img {
    transform: scale(1.12);
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumbs img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--transition);
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    border-color: var(--accent-green);
}

.product-info .sku {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-info h1 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 18px;
}

.product-info .price-block {
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 22px;
}

.product-info .price-block .current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-info .price-block .tax-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
}

.product-info .price-block .original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 12px;
}

.product-info .short-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 26px;
}

.product-info .qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.product-info .qty-row label {
    font-size: 13px;
    font-weight: 500;
}

.product-info .qty-input {
    width: 70px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    text-align: center;
    font-family: var(--font-sans);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.btn-add-cart {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--accent-green);
    color: #fff;
    border: none;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.btn-add-cart:hover {
    background: var(--accent-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(124,148,115,0.3);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.spec-table th,
.spec-table td {
    padding: 14px 16px;
    font-size: 13px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.spec-table th {
    background: var(--bg-cream);
    width: 30%;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.product-long-desc {
    margin-top: 60px;
    padding: 44px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.product-long-desc h3 {
    font-family: var(--font-sans);
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-green);
    display: inline-block;
    font-weight: 700;
}

.product-long-desc .desc-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
}

/* ========== CART ========== */
.cart-page {
    padding: 50px 0 90px;
}

.cart-page h2 {
    font-family: var(--font-sans);
    font-size: 26px;
    letter-spacing: 2px;
    margin-bottom: 36px;
    text-align: center;
    font-weight: 700;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-table th {
    background: var(--accent-green);
    color: #fff;
    padding: 14px 20px;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 500;
    text-align: left;
}

.cart-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    font-size: 14px;
}

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-product-cell img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-product-cell .name {
    font-size: 13px;
    font-weight: 500;
}

.cart-remove {
    color: var(--accent-terracotta);
    font-size: 11px;
    letter-spacing: 1px;
    border: 1px solid var(--accent-terracotta);
    padding: 4px 14px;
    transition: var(--transition);
    display: inline-block;
    border-radius: var(--radius-full);
}

.cart-remove:hover {
    background: var(--accent-terracotta);
    color: #fff;
}

.cart-summary {
    text-align: right;
    padding: 36px 0;
}

.cart-summary .total-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cart-summary .total-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-summary .total-amount small {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.btn-checkout {
    display: inline-block;
    padding: 16px 56px;
    background: var(--accent-green);
    color: #fff;
    font-size: 13px;
    letter-spacing: 2px;
    transition: var(--transition);
    margin-top: 18px;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.btn-checkout:hover {
    background: var(--accent-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(124,148,115,0.3);
}

.cart-empty {
    text-align: center;
    padding: 70px 0;
}

.cart-empty p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.btn-continue {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    font-size: 13px;
    letter-spacing: 1px;
    transition: var(--transition);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.btn-continue:hover {
    background: var(--accent-green);
    color: #fff;
}

/* ========== CHECKOUT ========== */
.checkout-page {
    padding: 50px 0 90px;
}

.checkout-page h2 {
    font-family: var(--font-sans);
    font-size: 26px;
    letter-spacing: 2px;
    margin-bottom: 36px;
    text-align: center;
    font-weight: 700;
}

.checkout-box {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 44px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.checkout-amount {
    text-align: center;
    padding: 26px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 26px;
}

.checkout-amount .label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.checkout-amount .amount {
    font-size: 34px;
    font-weight: 700;
    color: var(--accent-green);
}

.paypay-section {
    text-align: center;
    padding: 28px;
    border: 2px solid #ff0033;
    border-radius: var(--radius-md);
    margin: 26px 0;
}

.paypay-section img {
    max-width: 240px;
    margin: 14px auto;
}

.paypay-section .steps {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 2;
    text-align: left;
    max-width: 300px;
    margin: 14px auto 0;
}

.checkout-flow {
    margin-top: 26px;
}

.checkout-flow h4 {
    font-size: 14px;
    font-weight: 600;
    border-left: 3px solid var(--accent-green);
    padding-left: 12px;
    margin-bottom: 12px;
}

.checkout-flow p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 22px;
    line-height: 1.8;
}

.btn-order {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--accent-terracotta);
    color: #fff;
    border: none;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.btn-order:hover {
    background: var(--accent-terracotta-light);
    transform: translateY(-2px);
}

/* ========== LEGAL PAGES ========== */
.legal-page {
    padding: 50px 0 90px;
}

.legal-page h2 {
    font-family: var(--font-sans);
    font-size: 26px;
    letter-spacing: 2px;
    margin-bottom: 44px;
    text-align: center;
    font-weight: 700;
}

.legal-table {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.legal-table th,
.legal-table td {
    padding: 18px 24px;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.legal-table th {
    background: var(--bg-cream);
    width: 200px;
    font-weight: 500;
}

/* Privacy */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 44px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.privacy-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 28px 0 12px;
    padding-left: 14px;
    border-left: 3px solid var(--accent-green);
}

.privacy-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(250,248,245,0.6);
    padding: 60px 0 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.9;
    color: rgba(255,255,255,0.4);
}

.footer-col h4 {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--accent-sand);
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}

.footer-col ul a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 18px 0;
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    letter-spacing: 1px;
}

/* ========== NATURE DIVIDER ========== */
.nature-divider {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        var(--accent-green) 0%,
        var(--accent-sand) 33%,
        var(--accent-terracotta) 66%,
        var(--accent-green) 100%
    );
    opacity: 0.5;
    border-radius: 2px;
}

/* ========== SEARCH TOGGLE ========== */
.search-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.search-toggle:hover {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44,51,48,0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 90%;
    max-width: 640px;
    position: relative;
}

.search-form-overlay {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.search-form-overlay input {
    flex: 1;
    border: none;
    padding: 20px 28px;
    font-size: 16px;
    font-family: var(--font-sans);
    outline: none;
    background: transparent;
    color: var(--text-primary);
}

.search-form-overlay button {
    background: var(--accent-green);
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.search-form-overlay button:hover {
    background: var(--accent-green-dark);
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 36px;
    cursor: pointer;
    transition: color var(--transition);
}

.search-close:hover {
    color: #fff;
}

/* Inline search form (search results page) */
.search-inline-form {
    display: flex;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto 40px;
}

.search-inline-form input {
    flex: 1;
    padding: 14px 22px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-family: var(--font-sans);
    outline: none;
    background: var(--bg-card);
    transition: border-color var(--transition);
}

.search-inline-form input:focus {
    border-color: var(--accent-green);
}

.search-inline-form button {
    padding: 14px 28px;
    background: var(--accent-green);
    color: #fff;
    border: none;
    font-size: 13px;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.search-inline-form button:hover {
    background: var(--accent-green-dark);
}

/* ========== CHECKOUT FORM ========== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.checkout-form-section h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-green);
    display: inline-block;
}

.form-errors {
    background: #fff0f0;
    border: 1px solid #ffcdd2;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.form-errors p {
    color: #c62828;
    font-size: 13px;
    margin-bottom: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--accent-terracotta);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-sans);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(124,148,115,0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-form-section .paypay-section {
    margin: 24px 0;
}

.paypay-title {
    color: #ff0033;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 14px;
}

.checkout-agree {
    margin: 24px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.checkout-agree label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkout-agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-green);
    flex-shrink: 0;
}

.checkout-agree a {
    color: var(--accent-green);
    text-decoration: underline;
}

/* Order Summary Sidebar */
.order-summary-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 120px;
}

.order-summary-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.summary-item img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.summary-item-info {
    flex: 1;
    min-width: 0;
}

.summary-item-name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-item-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.summary-item-price {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.summary-divider {
    height: 1px;
    background: var(--border-light);
    margin: 14px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
}

.summary-row .free-shipping {
    color: var(--accent-green);
    font-weight: 600;
}

.summary-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 10px 0;
}

/* ========== THANK YOU PAGE ========== */
.thankyou-page {
    padding: 60px 0 100px;
}

.thankyou-box {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.thankyou-icon {
    margin-bottom: 24px;
}

.thankyou-box h1 {
    font-family: var(--font-sans);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.thankyou-sub {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 36px;
}

.order-info-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    box-shadow: var(--shadow-md);
    text-align: left;
    margin-bottom: 28px;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.order-info-row:last-child {
    border-bottom: none;
}

.order-info-row .label {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-info-row .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.order-info-row .order-number {
    font-family: 'Inter', monospace;
    color: var(--accent-green);
    font-size: 16px;
    letter-spacing: 1px;
}

.order-info-row .free-shipping {
    color: var(--accent-green);
}

.thankyou-notice {
    background: var(--bg-sage);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    text-align: left;
    margin-bottom: 32px;
}

.thankyou-notice h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.thankyou-notice ul {
    list-style: disc;
    padding-left: 18px;
}

.thankyou-notice li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 2;
}

.thankyou-actions {
    margin-top: 12px;
}

.btn-back-home {
    display: inline-block;
    padding: 16px 44px;
    background: var(--accent-green);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.btn-back-home:hover {
    background: var(--accent-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(124,148,115,0.3);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-green);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(124,148,115,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-green-dark);
    transform: translateY(-3px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-story-flex { flex-direction: column; gap: 40px; }
    .brand-story-image { flex: none; width: 100%; height: 340px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .product-detail-grid { gap: 36px; }
    .checkout-layout { grid-template-columns: 1fr; }
    .order-summary-box { position: static; }
}

@media (max-width: 768px) {
    .header-main { padding: 12px 5%; }
    .logo a { font-size: 20px; letter-spacing: 1px; }

    .nav-toggle { display: block; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-card);
        z-index: 9999;
        padding: 70px 28px 40px;
        transition: right var(--transition);
        box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    }

    .main-nav.open { right: 0; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 14px 0;
        font-size: 14px;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-light);
    }

    .nav-dropdown { display: none; }

    .nav-mobile-cats {
        display: block;
        padding: 16px 0 8px;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-mobile-label {
        font-size: 11px;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--accent-green);
        font-weight: 600;
        margin-bottom: 8px;
    }

    .nav-mobile-cats a {
        display: block;
        padding: 10px 0 10px 12px;
        font-size: 13px;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--border-light);
    }

    .nav-mobile-cats a:hover {
        color: var(--accent-green);
    }

    .nav-close {
        position: absolute;
        top: 18px;
        right: 18px;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 26px;
        cursor: pointer;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.35);
        z-index: 9998;
    }

    .nav-overlay.show { display: block; }

    .header-cat-bar { display: none; }

    .hero-section { height: 55vh; min-height: 380px; border-radius: 0; }
    .hero-content h1 { font-size: 22px; }
    .hero-content { padding: 0 6%; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .category-grid { grid-template-columns: 1fr 1fr; }

    .product-card .card-body { padding: 12px 10px 14px; }
    .product-card h4 { font-size: 12px; }
    .product-card .price { font-size: 14px; }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cart-table th:nth-child(n+3),
    .cart-table td:nth-child(n+3) {
        display: none;
    }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .site-footer { border-radius: 0; }

    .section-header h2 { font-size: 20px; }
    .section-header { margin-bottom: 28px; }

    .category-showcase, .featured-section, .new-arrivals { padding: 44px 0; }

    .form-row { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-form-section { order: 1; }
    .checkout-summary-section { order: 0; }
    .search-inline-form { flex-direction: column; }
    .search-inline-form button { width: 100%; }

    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
    .header-top { font-size: 9px; letter-spacing: 1px; padding: 6px 10px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card .card-body { padding: 10px 8px 12px; }
    .product-card h4 { font-size: 11px; height: auto; -webkit-line-clamp: 2; }

    .product-long-desc { padding: 22px; }
    .privacy-content { padding: 22px; }

    .hero-section { min-height: 320px; }

    .order-summary-box { padding: 20px; }
    .order-info-card { padding: 20px; }
    .thankyou-notice { padding: 18px; }
    .thankyou-box h1 { font-size: 22px; }
}
