/*
Theme Name: ApplianceNest
Theme URI: https://appliancenest.shop
Author: ApplianceNest Team
Author URI: https://appliancenest.shop
Description: Exact WooCommerce replica of naryshop.com for ApplianceNest. Recreates the complete design system, typography, color palette, navigation, product cards, single product layout, cart, checkout, and responsive behavior.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.2
Requires PHP: 7.4
Text Domain: appliancenest
*/

/* ==========================================================================
   1. DESIGN TOKENS & CSS VARIABLES
   ========================================================================== */
:root {
  --an-primary: #112C1D;
  --an-primary-hover: #0c2015;
  --an-accent: #c2531d;
  --an-accent-hover: #a64516;
  --an-dark: #242424;
  --an-black: #000000;
  --an-white: #ffffff;
  --an-text: #767676;
  --an-text-dark: #333333;
  --an-text-light: #999999;
  --an-border: #e3e7e4;
  --an-border-light: #eeeeee;
  --an-border-dark: #d2d8d3;
  --an-bg-light: #f4f5f4;
  --an-bg-cream: #fafbfa;
  --an-gold: #f4b400;
  --an-success: #2e7d32;
  --an-container: 1390px;
  --an-font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --an-font-heading: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --an-font-secondary: 'Lato', sans-serif;
  --an-radius: 0px;
  --an-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --an-shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --an-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --an-btn-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  --an-transition: all 0.25s ease-in-out;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--an-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--an-text);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--an-font-heading);
  color: var(--an-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0.6em;
}

h1 { font-size: 32px; font-weight: 800; }
h2 { font-size: 26px; font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
h5 { font-size: 15px; font-weight: 600; }
h6 { font-size: 13px; font-weight: 600; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--an-accent);
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  border-radius: var(--an-radius);
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--an-transition);
}

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.an-container {
  max-width: var(--an-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

.an-container-fluid {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.an-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.an-col {
  padding-left: 15px;
  padding-right: 15px;
  flex: 1;
}

/* Buttons */
.an-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--an-font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 13px 28px;
  border-radius: var(--an-radius);
  text-align: center;
  transition: var(--an-transition);
  box-shadow: var(--an-btn-shadow);
  border: none;
  cursor: pointer;
  line-height: 1.2;
}

.an-btn-accent {
  background-color: var(--an-accent);
  color: #ffffff;
}

.an-btn-accent:hover {
  background-color: var(--an-accent-hover);
  color: #ffffff;
}

.an-btn-primary {
  background-color: var(--an-primary);
  color: #ffffff;
}

.an-btn-primary:hover {
  background-color: var(--an-primary-hover);
  color: #ffffff;
}

.an-btn-outline {
  background-color: transparent;
  border: 2px solid var(--an-dark);
  color: var(--an-dark);
}

.an-btn-outline:hover {
  background-color: var(--an-dark);
  color: #ffffff;
}

.an-btn-sm {
  padding: 8px 18px;
  font-size: 12px;
}

.an-btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   4. TOP ANNOUNCEMENT BAR
   ========================================================================== */
.an-announcement-bar {
  background-color: var(--an-black);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.6px;
  text-align: center;
  padding: 8px 15px;
  line-height: 1.4;
  position: relative;
  z-index: 100;
}

.an-announcement-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   5. MAIN HEADER ROW
   ========================================================================== */
.an-header-main {
  background-color: #ffffff;
  border-bottom: 1px solid var(--an-border);
  padding: 18px 0;
  position: relative;
  z-index: 99;
}

.an-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Brand Logo */
.an-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.an-logo-text {
  font-family: var(--an-font-heading);
  font-size: 30px;
  font-weight: 800;
  color: var(--an-primary);
  letter-spacing: -0.5px;
  line-height: 1;
}

.an-logo-text span {
  color: var(--an-accent);
}

/* Header Live Search */
.an-header-search {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.an-search-form {
  display: flex;
  border: 2px solid var(--an-border-dark);
  border-radius: var(--an-radius);
  background-color: #ffffff;
  overflow: hidden;
  transition: var(--an-transition);
}

.an-search-form:focus-within {
  border-color: var(--an-accent);
}

.an-search-category {
  border: none;
  background-color: var(--an-bg-light);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--an-dark);
  border-right: 1px solid var(--an-border);
  cursor: pointer;
  outline: none;
  max-width: 160px;
}

.an-search-input {
  flex: 1;
  border: none;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--an-dark);
  background: transparent;
  outline: none;
}

.an-search-input::placeholder {
  color: #a0a0a0;
}

.an-search-btn {
  background-color: var(--an-accent);
  color: #ffffff;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: var(--an-transition);
}

.an-search-btn:hover {
  background-color: var(--an-accent-hover);
}

/* Header Tools & Actions */
.an-header-tools {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.an-tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--an-dark);
  font-size: 13px;
  font-weight: 600;
  position: relative;
  cursor: pointer;
}

.an-tool-item:hover {
  color: var(--an-accent);
}

.an-tool-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 22px;
}

.an-badge-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: var(--an-accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.an-tool-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.an-tool-label {
  font-size: 11px;
  color: var(--an-text-light);
  text-transform: uppercase;
  font-weight: 500;
}

.an-tool-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--an-dark);
}

/* ==========================================================================
   6. BOTTOM NAVIGATION ROW (SPRUCE GREEN #112C1D)
   ========================================================================== */
.an-header-nav-row {
  background-color: var(--an-primary);
  color: #ffffff;
  position: relative;
  z-index: 90;
}

.an-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Categories Dropdown Trigger */
.an-categories-trigger {
  background-color: var(--an-accent);
  color: #ffffff;
  font-family: var(--an-font-heading);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  min-width: 250px;
  transition: var(--an-transition);
}

.an-categories-trigger:hover {
  background-color: var(--an-accent-hover);
}

.an-categories-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--an-border);
  box-shadow: var(--an-shadow-md);
  display: none;
  z-index: 200;
}

.an-categories-trigger:hover .an-categories-menu,
.an-categories-trigger.is-open .an-categories-menu {
  display: block;
}

.an-cat-menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--an-dark);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--an-border-light);
  transition: var(--an-transition);
}

.an-cat-menu-item a:hover {
  background-color: var(--an-bg-light);
  color: var(--an-accent);
  padding-left: 24px;
}

/* Main Navigation Links */
.an-main-nav {
  display: flex;
  align-items: center;
}

.an-nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.an-nav-item a {
  display: block;
  font-family: var(--an-font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ffffff;
  padding: 16px 0;
  position: relative;
  transition: var(--an-transition);
}

.an-nav-item a:hover,
.an-nav-item.current-menu-item a {
  color: var(--an-accent);
}

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

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

/* Nav Right Contact Pill */
.an-nav-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--an-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.an-nav-contact a {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.an-nav-contact a:hover {
  color: var(--an-accent);
}

/* ==========================================================================
   7. HOMEPAGE: HERO SECTION
   ========================================================================== */
.an-hero-section {
  padding: 30px 0 20px;
}

.an-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.an-hero-main-banner {
  position: relative;
  background-color: #e9ece8;
  background-size: cover;
  background-position: center right;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  overflow: hidden;
  border-radius: var(--an-radius);
}

.an-hero-main-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0.1) 100%);
  z-index: 1;
}

.an-hero-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.an-hero-tag {
  display: inline-block;
  background-color: var(--an-primary);
  color: #ffffff;
  font-family: var(--an-font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.an-hero-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--an-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.an-hero-desc {
  font-size: 16px;
  color: var(--an-text);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Hero Side Banners */
.an-hero-side-banners {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.an-side-banner {
  flex: 1;
  position: relative;
  background-color: #f1f4f1;
  background-size: cover;
  background-position: center right;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.an-side-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.6) 60%, rgba(255,255,255,0.05) 100%);
  z-index: 1;
}

.an-side-content {
  position: relative;
  z-index: 2;
  max-width: 280px;
}

.an-side-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--an-accent);
  margin-bottom: 8px;
  display: block;
}

.an-side-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--an-dark);
  line-height: 1.25;
  margin-bottom: 12px;
}

.an-side-link {
  font-family: var(--an-font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--an-dark);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.an-side-link:hover {
  color: var(--an-accent);
}

/* ==========================================================================
   8. HOMEPAGE: 5-COLUMN CATEGORY GRID
   ========================================================================== */
.an-categories-section {
  padding: 40px 0;
}

.an-section-header {
  text-align: center;
  margin-bottom: 35px;
}

.an-section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--an-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.an-section-subtitle {
  font-size: 15px;
  color: var(--an-text-light);
  margin-bottom: 0;
}

.an-categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.an-category-card {
  border: 1px solid var(--an-border);
  background-color: #ffffff;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--an-transition);
}

.an-category-card:hover {
  border-color: var(--an-accent);
  box-shadow: var(--an-shadow-md);
  transform: translateY(-4px);
}

.an-cat-img-wrap {
  width: 140px;
  height: 140px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.an-cat-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--an-transition);
}

.an-category-card:hover .an-cat-img-wrap img {
  transform: scale(1.08);
}

.an-cat-name {
  font-family: var(--an-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--an-dark);
  margin-bottom: 4px;
}

.an-category-card:hover .an-cat-name {
  color: var(--an-accent);
}

.an-cat-count {
  font-size: 13px;
  color: var(--an-text-light);
}

/* ==========================================================================
   9. HOMEPAGE: WHY CHOOSE US (SPLIT FEATURE SECTION)
   ========================================================================== */
.an-why-choose-section {
  padding: 50px 0;
  background-color: var(--an-bg-light);
}

.an-why-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
}

.an-why-content h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.an-why-content p {
  font-size: 16px;
  color: var(--an-text);
  line-height: 1.7;
  margin-bottom: 24px;
}

.an-features-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.an-feature-box {
  background-color: #ffffff;
  padding: 24px;
  border: 1px solid var(--an-border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--an-transition);
}

.an-feature-box:hover {
  border-color: var(--an-accent);
  box-shadow: var(--an-shadow-sm);
}

.an-feature-icon {
  width: 52px;
  height: 52px;
  background-color: rgba(194, 83, 29, 0.1);
  color: var(--an-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border-radius: 50%;
}

.an-feature-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--an-dark);
  margin-bottom: 6px;
}

.an-feature-text p {
  font-size: 13px;
  color: var(--an-text);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ==========================================================================
   10. HOMEPAGE: 4-COLUMN FEATURED PRODUCTS GRID & PRODUCT CARDS
   ========================================================================== */
.an-featured-products-section {
  padding: 50px 0;
}

.an-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Product Card - Refined Consistent Structure */
.an-product-card {
  border: 1px solid var(--an-border);
  background-color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--an-transition);
  border-radius: var(--an-radius);
  overflow: hidden;
}

.an-product-card:hover {
  border-color: var(--an-accent);
  box-shadow: var(--an-shadow-md);
}

.an-product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.an-product-image-wrap a.an-product-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.an-product-image-wrap img,
.an-product-image-wrap .an-main-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s ease;
}

.an-product-card:hover .an-product-image-wrap img {
  transform: scale(1.04);
}

/* Sale Badge */
.an-badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--an-accent);
  color: #ffffff;
  font-family: var(--an-font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  z-index: 5;
  text-transform: uppercase;
  border-radius: var(--an-radius);
  pointer-events: none;
}

/* Wishlist Heart Button - Prominently Displayed */
.an-card-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background-color: #ffffff;
  color: var(--an-dark);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  z-index: 5;
  border: none;
  cursor: pointer;
  transition: var(--an-transition);
}

.an-card-wishlist:hover {
  color: var(--an-accent);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.an-card-wishlist.is-active {
  color: var(--an-accent);
}

.an-card-wishlist.is-active i {
  font-weight: 900;
}

/* Product Details */
.an-product-details {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.an-product-cat {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--an-text-light);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: block;
}

.an-product-title {
  font-family: var(--an-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--an-dark);
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an-product-title a {
  color: var(--an-dark);
}

.an-product-title a:hover {
  color: var(--an-accent);
}

.an-product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--an-gold);
}

.an-product-rating-count {
  font-size: 12px;
  color: var(--an-text-light);
  margin-left: 4px;
}

.an-product-price {
  font-family: var(--an-font-heading);
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  margin-top: auto;
  font-size: 18px;
  color: var(--an-accent);
  font-weight: 800;
}

.an-product-price del,
.an-price-regular {
  font-size: 13px;
  color: var(--an-text-light);
  text-decoration: line-through;
  font-weight: 500;
}

.an-product-price ins {
  text-decoration: none;
  color: var(--an-accent);
  font-weight: 800;
}

/* Card Add To Cart Action */
.an-product-card-actions {
  width: 100%;
}

.an-card-add-to-cart {
  width: 100%;
  min-height: 44px;
  background-color: var(--an-bg-light);
  color: var(--an-dark);
  border: 1px solid var(--an-border);
  padding: 10px 16px;
  font-family: var(--an-font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--an-transition);
  cursor: pointer;
  border-radius: var(--an-radius);
  text-decoration: none;
}

.an-card-add-to-cart:hover {
  background-color: var(--an-accent);
  border-color: var(--an-accent);
  color: #ffffff;
}

/* ==========================================================================
   11. HOMEPAGE: BRAND STORY SPLIT SECTION
   ========================================================================== */
.an-brand-story-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.an-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.an-story-content h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.an-story-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--an-text);
  margin-bottom: 24px;
}

.an-story-bullets {
  margin-bottom: 30px;
}

.an-story-bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--an-dark);
}

.an-bullet-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(46, 125, 50, 0.12);
  color: var(--an-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.an-story-image {
  position: relative;
  overflow: hidden;
  box-shadow: var(--an-shadow-md);
}

.an-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   12. HOMEPAGE: CONTACT SECTION ("GET IN TOUCH")
   ========================================================================== */
.an-contact-section {
  padding: 60px 0;
  background-color: var(--an-bg-light);
}

.an-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}

.an-contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.an-info-card {
  background-color: #ffffff;
  padding: 24px;
  border: 1px solid var(--an-border);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.an-info-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--an-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.an-info-card-body h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--an-dark);
}

.an-info-card-body p {
  font-size: 14px;
  color: var(--an-text);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Contact Form */
.an-contact-form-wrap {
  background-color: #ffffff;
  padding: 36px;
  border: 1px solid var(--an-border);
}

.an-contact-form-wrap h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
}

.an-form-group {
  margin-bottom: 20px;
}

.an-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.an-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--an-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.an-form-input,
.an-form-textarea {
  width: 100%;
  border: 1px solid var(--an-border-dark);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--an-dark);
  background-color: var(--an-bg-light);
  transition: var(--an-transition);
}

.an-form-input:focus,
.an-form-textarea:focus {
  border-color: var(--an-accent);
  background-color: #ffffff;
}

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

/* ==========================================================================
   13. NEWSLETTER BANNER (BLACK #000000)
   ========================================================================== */
.an-newsletter-banner {
  background-color: var(--an-black);
  color: #ffffff;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.an-newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.an-newsletter-text-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.an-newsletter-icon {
  font-size: 38px;
  color: var(--an-accent);
}

.an-newsletter-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.an-newsletter-desc {
  font-size: 14px;
  color: #aaaaaa;
  margin-bottom: 0;
}

.an-newsletter-form {
  display: flex;
  max-width: 520px;
  width: 100%;
}

.an-newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background-color: #222222;
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.an-newsletter-input::placeholder {
  color: #777777;
}

.an-newsletter-btn {
  background-color: var(--an-accent);
  color: #ffffff;
  padding: 0 28px;
  font-family: var(--an-font-heading);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: var(--an-transition);
}

.an-newsletter-btn:hover {
  background-color: var(--an-accent-hover);
}

/* ==========================================================================
   14. FOOTER (SPRUCE GREEN #112C1D)
   ========================================================================== */
.an-footer {
  background-color: var(--an-primary);
  color: #c9d4cd;
  padding: 60px 0 30px;
  font-size: 14px;
  line-height: 1.7;
}

.an-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.an-footer-col h4 {
  font-family: var(--an-font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.an-footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--an-accent);
}

.an-footer-desc {
  margin-bottom: 20px;
  color: #c9d4cd;
}

.an-footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.an-footer-contact-list i,
.an-footer-contact-list svg {
  color: var(--an-accent);
  margin-top: 4px;
  flex-shrink: 0;
}

.an-footer-links li {
  margin-bottom: 10px;
}

.an-footer-links a {
  color: #c9d4cd;
  display: inline-block;
  transition: var(--an-transition);
}

.an-footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* Bottom Bar */
.an-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
}

.an-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.an-copyright {
  font-size: 13px;
  color: #9cb0a2;
}

.an-payment-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.an-payment-badge {
  background-color: #ffffff;
  border-radius: 3px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}

.an-payment-badge svg,
.an-payment-badge img {
  height: 18px;
  width: auto;
}

/* ==========================================================================
   15. SINGLE PRODUCT PAGE LAYOUT (NARYSHOP 1:1)
   ========================================================================== */
.an-single-product-wrap {
  padding: 40px 0 60px;
}

.an-product-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

/* Left Gallery */
.an-gallery-wrap {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.an-thumbnails-strip {
  width: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.an-gallery-wrap.no-thumbnails .an-thumbnails-strip {
  display: none !important;
}

.an-gallery-wrap.no-thumbnails .an-main-image-wrap {
  width: 100%;
  flex: 1;
}

.an-thumb-item {
  width: 80px;
  height: 80px;
  position: relative;
  border: 1px solid var(--an-border);
  cursor: pointer;
  background-color: #fafafa;
  transition: var(--an-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.an-thumb-item:hover,
.an-thumb-item.is-active {
  border-color: var(--an-accent);
}

.an-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.an-main-image-wrap {
  flex: 1;
  position: relative;
  border: 1px solid var(--an-border);
  background-color: #ffffff;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}

.an-main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

.an-gallery-zoom-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background-color: #ffffff;
  border: 1px solid var(--an-border);
  border-radius: 50%;
  box-shadow: var(--an-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--an-dark);
  z-index: 4;
  cursor: pointer;
  transition: var(--an-transition);
}

.an-gallery-zoom-btn:hover {
  background-color: var(--an-accent);
  border-color: var(--an-accent);
  color: #ffffff;
}

/* In-Page Image Lightbox Modal */
.an-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
}

.an-lightbox-modal.is-active {
  display: flex;
}

.an-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

.an-lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.an-lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 85vw;
  max-height: 80vh;
}

.an-lightbox-img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  background-color: #ffffff;
  padding: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.an-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  font-size: 36px;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0 10px;
}

.an-lightbox-close:hover {
  color: var(--an-accent);
}

.an-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--an-transition);
  z-index: 3;
}

.an-lightbox-nav:hover {
  background-color: var(--an-accent);
}

.an-lightbox-prev {
  left: -60px;
}

.an-lightbox-next {
  right: -60px;
}

.an-lightbox-counter {
  position: absolute;
  bottom: -36px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Right Summary */
.an-summary-wrap {
  display: flex;
  flex-direction: column;
}

.an-review-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fbf5e8;
  color: #8c6114;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--an-radius);
  margin-bottom: 14px;
  width: fit-content;
}

.an-review-pill .an-stars {
  color: var(--an-gold);
}

.an-single-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--an-dark);
  line-height: 1.25;
  margin-bottom: 14px;
}

.an-status-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.an-status-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.an-pill-stock {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.an-pill-condition {
  background-color: #e3f2fd;
  color: #1565c0;
}

.an-pill-shipping {
  background-color: #fff3e0;
  color: #e65100;
}

/* Pricing Section */
.an-single-pricing {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--an-border);
  font-size: 32px;
  font-weight: 800;
  color: var(--an-accent);
}

.an-single-pricing del {
  font-size: 18px;
  color: var(--an-text-light);
  text-decoration: line-through;
  font-weight: 500;
}

.an-single-pricing ins {
  text-decoration: none;
}

.an-single-save-badge {
  background-color: var(--an-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  text-transform: uppercase;
}

.an-single-desc {
  font-size: 15px;
  color: var(--an-text);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* 2x2 Trust Features Grid */
.an-trust-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background-color: var(--an-bg-light);
  padding: 16px;
  margin-bottom: 26px;
  border: 1px solid var(--an-border);
}

.an-trust-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.an-trust-icon {
  width: 32px;
  height: 32px;
  background-color: #ffffff;
  color: var(--an-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.an-trust-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--an-dark);
  line-height: 1.3;
}

/* Add to Cart Form & Responsive Buttons (Priority 5) */
.an-add-to-cart-form form.cart,
form.cart {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  width: 100%;
}

.an-qty-action-row,
form.cart > div:first-child:not(.quantity) {
  display: flex;
  gap: 14px;
  align-items: center;
}

form.cart .quantity,
.an-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--an-border-dark);
  height: 50px;
  background-color: #ffffff;
  width: fit-content;
  flex-shrink: 0;
}

.an-qty-btn {
  width: 38px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--an-dark);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--an-transition);
}

.an-qty-btn:hover {
  background-color: var(--an-bg-light);
}

form.cart .quantity input.qty,
.an-qty-input {
  width: 52px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--an-dark);
  outline: none;
  padding: 0;
  -moz-appearance: textfield;
}

form.cart .quantity input.qty::-webkit-outer-spin-button,
form.cart .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

form.cart .single_add_to_cart_button,
.an-single-add-btn {
  flex: 1;
  min-height: 50px;
  height: 50px;
  background-color: var(--an-accent);
  color: #ffffff;
  font-family: var(--an-font-heading);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  box-shadow: var(--an-btn-shadow);
  transition: var(--an-transition);
  padding: 0 24px;
  border-radius: var(--an-radius);
}

form.cart .single_add_to_cart_button:hover,
.an-single-add-btn:hover {
  background-color: var(--an-accent-hover);
  color: #ffffff;
}

.an-single-buy-btn {
  width: 100%;
  min-height: 50px;
  height: 50px;
  background-color: var(--an-primary);
  color: #ffffff;
  font-family: var(--an-font-heading);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: var(--an-btn-shadow);
  transition: var(--an-transition);
  border-radius: var(--an-radius);
}

.an-single-buy-btn:hover {
  background-color: var(--an-primary-hover);
}

/* Meta Data */
.an-product-meta {
  padding-top: 18px;
  border-top: 1px solid var(--an-border);
  font-size: 13px;
  color: var(--an-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.an-meta-item strong {
  color: var(--an-dark);
  font-weight: 600;
}

/* Tabs Section (Priority 8 - Responsive Horizontal Scroll) */
.an-product-tabs {
  margin-top: 40px;
  border: 1px solid var(--an-border);
}

.an-tabs-nav {
  display: flex;
  background-color: var(--an-bg-light);
  border-bottom: 1px solid var(--an-border);
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.an-tabs-nav::-webkit-scrollbar {
  display: none;
}

.an-tab-nav-btn {
  padding: 16px 28px;
  font-family: var(--an-font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--an-dark);
  cursor: pointer;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  transition: var(--an-transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.an-tab-nav-btn.is-active {
  background-color: #ffffff;
  color: var(--an-accent);
  border-bottom-color: var(--an-accent);
}

.an-tab-content {
  padding: 30px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--an-text);
}

.an-tab-panel {
  display: none;
}

.an-tab-panel.is-active {
  display: block;
}

/* Specs Table */
.an-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.an-specs-table tr {
  border-bottom: 1px solid var(--an-border);
}

.an-specs-table th {
  padding: 12px 14px;
  font-weight: 700;
  width: 28%;
  text-align: left;
  color: var(--an-dark);
  background-color: var(--an-bg-cream);
}

.an-specs-table td {
  padding: 12px 14px;
  color: var(--an-text);
}

/* Sticky Bottom Add To Cart Bar */
.an-sticky-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 2px solid var(--an-accent);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 12px 0;
  z-index: 999;
  display: none;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.an-sticky-cart-bar.is-visible {
  display: block;
  transform: translateY(0);
}

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

.an-sticky-product-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.an-sticky-thumb {
  width: 46px;
  height: 46px;
  border: 1px solid var(--an-border);
  object-fit: contain;
}

.an-sticky-title {
  font-family: var(--an-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--an-dark);
  margin-bottom: 2px;
}

.an-sticky-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--an-accent);
}

.an-sticky-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   16. CART & CHECKOUT: 3-STEP BANNER & LAYOUTS
   ========================================================================== */
.an-page-header-banner {
  background-color: var(--an-black);
  color: #ffffff;
  padding: 45px 0 35px;
  text-align: center;
}

.an-page-header-title {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.an-checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: var(--an-font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.an-step {
  color: #888888;
  display: flex;
  align-items: center;
  gap: 6px;
}

.an-step.is-active {
  color: #ffffff;
}

.an-step.is-completed {
  color: var(--an-accent);
}

.an-step-divider {
  color: #555555;
}

/* Cart Page */
.an-cart-section {
  padding: 50px 0;
}

.an-cart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.an-cart-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--an-border);
}

.an-cart-table th {
  background-color: var(--an-bg-light);
  padding: 14px 18px;
  text-align: left;
  font-family: var(--an-font-heading);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--an-dark);
  border-bottom: 1px solid var(--an-border);
}

.an-cart-table td {
  padding: 18px;
  border-bottom: 1px solid var(--an-border);
  vertical-align: middle;
}

.an-cart-item-title {
  font-family: var(--an-font-heading);
  font-weight: 700;
  color: var(--an-dark);
}

.an-cart-remove {
  color: #e53935;
  font-size: 18px;
  cursor: pointer;
}

.an-cart-totals-card {
  border: 1px solid var(--an-border);
  padding: 28px;
  background-color: var(--an-bg-light);
}

.an-cart-totals-card h3 {
  font-size: 20px;
  font-weight: 800;
  border-bottom: 2px solid var(--an-primary);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.an-total-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--an-border);
  font-size: 14px;
}

.an-total-row.grand-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--an-accent);
  border-bottom: none;
  padding-top: 18px;
}

/* Checkout Page */
.an-checkout-section {
  padding: 50px 0;
}

.an-checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.an-checkout-billing-wrap h3,
.an-checkout-order-wrap h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--an-primary);
}

.an-order-review-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.an-order-review-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--an-border);
}

/* ==========================================================================
   17. DRAWERS, MODALS & WISHLIST (PRIORITIES 6 & 7)
   ========================================================================== */
.an-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.an-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Base Drawer */
.an-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100%;
  background-color: #ffffff;
  z-index: 99999;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}

.an-cart-drawer.is-active {
  transform: translateX(0);
}

/* Mobile Nav Drawer (Slides from Left) */
.an-mobile-drawer {
  left: 0;
  right: auto;
  width: 320px;
  max-width: 85vw;
  transform: translateX(-100%);
}

.an-mobile-drawer.is-active {
  transform: translateX(0);
}

/* Drawer Header */
.an-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--an-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  flex-shrink: 0;
}

.an-drawer-header h3 {
  font-family: var(--an-font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--an-dark);
  margin-bottom: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.an-drawer-close {
  font-size: 26px;
  cursor: pointer;
  color: var(--an-dark);
  background: none;
  border: none;
  line-height: 1;
  padding: 4px;
  transition: var(--an-transition);
}

.an-drawer-close:hover {
  color: var(--an-accent);
}

/* Drawer Body */
.an-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.an-drawer-body .widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.an-mini-cart-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Free UK Delivery Shipping Notice in Drawer */
.an-drawer-shipping-notice {
  background-color: #fbf5e8;
  border-bottom: 1px solid #fae8c6;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8c6114;
  flex-shrink: 0;
}

.an-drawer-shipping-notice i {
  font-size: 20px;
  color: var(--an-accent);
  flex-shrink: 0;
}

.an-drawer-shipping-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.an-drawer-shipping-title {
  font-family: var(--an-font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.an-drawer-shipping-sub {
  font-size: 11px;
  color: #a47620;
}

/* Drawer Items List */
.an-drawer-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.an-drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--an-border-light);
  position: relative;
  transition: var(--an-transition);
}

.an-drawer-item-thumb {
  width: 64px;
  height: 64px;
  border: 1px solid var(--an-border);
  background-color: #fafafa;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.an-drawer-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.an-drawer-item-info {
  flex: 1;
  min-width: 0;
}

.an-drawer-item-title {
  font-family: var(--an-font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--an-dark);
  margin-bottom: 4px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.an-drawer-item-title a {
  color: var(--an-dark);
}

.an-drawer-item-title a:hover {
  color: var(--an-accent);
}

.an-drawer-item-price {
  font-family: var(--an-font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--an-accent);
  margin-bottom: 6px;
}

.an-drawer-qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--an-border);
  background-color: #ffffff;
  height: 26px;
}

.an-drawer-qty-btn {
  width: 26px;
  height: 100%;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--an-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.an-drawer-qty-btn:hover {
  background-color: var(--an-bg-light);
  color: var(--an-accent);
}

.an-drawer-qty-val {
  width: 30px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--an-dark);
}

.an-drawer-item-remove {
  background: none;
  border: none;
  color: #b0b0b0;
  font-size: 14px;
  cursor: pointer;
  padding: 6px;
  transition: var(--an-transition);
  flex-shrink: 0;
}

.an-drawer-item-remove:hover {
  color: #d32f2f;
}

/* Drawer Footer */
.an-drawer-footer-wrap {
  padding: 20px;
  border-top: 1px solid var(--an-border);
  background-color: #fafafa;
  flex-shrink: 0;
}

.an-drawer-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--an-font-heading);
}

.an-drawer-subtotal-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--an-dark);
}

.an-drawer-subtotal-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--an-accent);
}

.an-drawer-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.an-drawer-btn-cart {
  width: 100%;
  min-height: 46px;
  border: 2px solid var(--an-dark);
  color: var(--an-dark);
  font-weight: 700;
}

.an-drawer-btn-checkout {
  width: 100%;
  min-height: 48px;
  background-color: var(--an-accent);
  color: #ffffff;
  font-weight: 800;
}

/* Empty Drawer State */
.an-drawer-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  flex: 1;
}

.an-drawer-empty-icon {
  font-size: 54px;
  color: var(--an-border-dark);
  margin-bottom: 20px;
}

.an-drawer-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--an-dark);
  margin-bottom: 10px;
}

.an-drawer-empty-desc {
  font-size: 14px;
  color: var(--an-text);
  margin-bottom: 24px;
  line-height: 1.5;
}

.an-drawer-empty-btn {
  padding: 12px 28px;
}

/* Wishlist Table & Page Styling (Priority 7) */
.an-wishlist-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 30px;
  border: 1px solid var(--an-border);
}

.an-wishlist-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.an-wishlist-table th {
  background-color: var(--an-bg-light);
  padding: 14px 18px;
  font-family: var(--an-font-heading);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--an-dark);
  border-bottom: 1px solid var(--an-border);
}

.an-wishlist-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--an-border-light);
  vertical-align: middle;
}

.an-wishlist-remove-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #999999;
  cursor: pointer;
  transition: var(--an-transition);
}

.an-wishlist-remove-btn:hover {
  color: #d32f2f;
}

.an-w-thumb img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid var(--an-border);
  padding: 4px;
  background-color: #fafafa;
}

.an-wishlist-item-title {
  font-family: var(--an-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--an-dark);
}

.an-wishlist-item-title:hover {
  color: var(--an-accent);
}

.an-w-price {
  font-family: var(--an-font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--an-accent);
}

.an-w-price del {
  font-size: 13px;
  color: var(--an-text-light);
  text-decoration: line-through;
  font-weight: 500;
}

.an-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
}

.an-stock-badge.in-stock {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.an-stock-badge.out-of-stock {
  background-color: #ffebee;
  color: #c62828;
}

/* Toast Notification */
.an-toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--an-primary);
  color: #ffffff;
  padding: 14px 22px;
  font-family: var(--an-font-heading);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--an-shadow-lg);
  border-left: 4px solid var(--an-accent);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.an-toast-notification.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.an-toast-notification i {
  color: var(--an-accent);
  font-size: 16px;
}

/* Shop Layout & Filter Toggle (Priority 10) */
.an-shop-container {
  padding-top: 40px;
  padding-bottom: 70px;
}

.an-mobile-filter-bar {
  display: none;
  margin-bottom: 20px;
}

.an-mobile-filter-toggle {
  width: 100%;
  padding: 12px 18px;
  background-color: #ffffff;
  border: 1px solid var(--an-border);
  font-family: var(--an-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--an-dark);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--an-transition);
}

.an-mobile-filter-toggle:hover,
.an-mobile-filter-toggle.is-active {
  border-color: var(--an-accent);
  color: var(--an-accent);
}

.an-mobile-filter-toggle.is-active .an-filter-icon-arrow {
  transform: rotate(180deg);
}

.an-shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.an-shop-sidebar {
  background-color: #ffffff;
  border: 1px solid var(--an-border);
  padding: 24px;
  box-sizing: border-box;
  width: 100%;
}

.an-sidebar-widget {
  margin-bottom: 30px;
}

.an-sidebar-widget-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 2px solid var(--an-primary);
  padding-bottom: 10px;
  margin-bottom: 16px;
  color: var(--an-dark);
}

.an-sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.an-sidebar-cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--an-text-dark);
  padding: 4px 0;
  transition: var(--an-transition);
}

.an-sidebar-cat-list li a:hover {
  color: var(--an-accent);
  padding-left: 4px;
}

.an-sidebar-trust-box {
  background-color: var(--an-bg-light);
  border: 1px solid var(--an-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.an-sidebar-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.an-sidebar-trust-item i {
  font-size: 24px;
  color: var(--an-accent);
  flex-shrink: 0;
}

.an-sidebar-trust-item strong {
  display: block;
  font-size: 13px;
  color: var(--an-dark);
}

.an-sidebar-trust-item span {
  font-size: 12px;
  color: var(--an-text);
}

.an-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--an-border);
  flex-wrap: wrap;
  gap: 12px;
}

.an-catalog-toolbar .woocommerce-result-count {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--an-text);
}

.an-catalog-toolbar .woocommerce-ordering select {
  padding: 8px 14px;
  border: 1px solid var(--an-border);
  background-color: #ffffff;
  font-size: 13px;
}

.an-shop-grid {
  grid-template-columns: repeat(3, 1fr);
}

.an-pagination-wrap {
  margin-top: 40px;
  text-align: center;
}

/* ==========================================================================
   18. MOBILE RESPONSIVE RULES (ALL BREAKPOINTS - ZERO OVERFLOW GUARANTEE)
   ========================================================================== */
/* Root & Container Constraints */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

.an-container {
  width: 100%;
  max-width: var(--an-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Desktop Tools: Default */
.an-mobile-toggle {
  display: none;
  font-size: 24px;
  color: var(--an-dark);
  background: none;
  border: none;
  cursor: pointer;
}

.an-tool-text-desktop {
  display: flex;
  flex-direction: column;
}

/* 1200px - Laptop Breakpoint */
@media (max-width: 1200px) {
  .an-hero-title { font-size: 34px; }
  .an-categories-grid { grid-template-columns: repeat(3, 1fr); }
  .an-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .an-products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .an-shop-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 991px - Tablet Breakpoint */
@media (max-width: 991px) {
  .an-header-main { padding: 14px 0; }
  .an-header-inner { gap: 15px; }
  
  /* Show Mobile Hamburger, Hide Desktop Tool Text */
  .an-mobile-toggle { display: flex !important; }
  .an-tool-text-desktop { display: none !important; }
  .an-header-nav-row { display: none !important; }
  
  /* Compact Logo */
  .an-logo-text { font-size: 24px; }

  /* Compact Live Search */
  .an-header-search {
    max-width: 420px;
  }
  .an-search-category {
    display: none;
  }

  /* Grid Reductions */
  .an-hero-grid { grid-template-columns: 1fr; }
  .an-why-grid { grid-template-columns: 1fr; }
  .an-story-grid { grid-template-columns: 1fr; }
  .an-contact-grid { grid-template-columns: 1fr; }
  .an-newsletter-inner { flex-direction: column; text-align: center; gap: 16px; }
  .an-cart-grid { grid-template-columns: 1fr; }
  .an-checkout-grid { grid-template-columns: 1fr; }
  
  /* Shop Layout Mobile Collapse */
  .an-mobile-filter-bar { display: block !important; margin-bottom: 16px; width: 100%; }
  .an-shop-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .an-shop-sidebar {
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    padding: 20px 16px !important;
  }
  .an-shop-sidebar.is-open {
    display: block !important;
    animation: anFadeSlideDown 0.25s ease-out;
  }
  .an-shop-main {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .an-shop-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  /* Single Product Responsive (Priority 3 & 8) */
  .an-product-main-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .an-gallery-wrap {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .an-thumbnails-strip {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
  }
  .an-thumb-item {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
  }
  .an-main-image-wrap {
    width: 100%;
  }

  /* Lightbox arrows repositioned for smaller screens */
  .an-lightbox-prev { left: 10px; }
  .an-lightbox-next { right: 10px; }
}

/* 767px - Mobile Breakpoint */
@media (max-width: 767px) {
  .an-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .an-announcement-bar {
    font-size: 11px;
    padding: 6px 10px;
  }

  /* Search Bar: Fold on small screens */
  .an-header-search {
    display: none;
  }

  .an-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .an-features-2x2 {
    grid-template-columns: 1fr;
  }

  .an-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .an-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .an-hero-main-banner {
    min-height: 340px;
    padding: 24px 16px;
  }

  .an-hero-title {
    font-size: 26px;
  }

  .an-hero-desc {
    font-size: 14px;
  }

  .an-contact-form-wrap {
    padding: 20px 14px;
  }

  .an-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Product Card on Mobile (Priority 2) */
  .an-products-grid,
  .an-shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .an-product-details {
    padding: 12px;
  }

  .an-product-title {
    font-size: 13px;
    min-height: 36px;
  }

  .an-product-price {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .an-card-add-to-cart {
    font-size: 11px;
    padding: 8px 10px;
    min-height: 40px;
    letter-spacing: 0.2px;
  }

  /* Cart Table Horizontal Scroll on Mobile */
  .an-cart-items-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Single Product Add to Cart Stack on Mobile (Priority 5) */
  .an-single-title {
    font-size: 22px;
  }

  .an-single-pricing {
    font-size: 26px;
  }

  .an-trust-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .an-tab-nav-btn {
    padding: 12px 18px;
    font-size: 13px;
  }

  .an-tab-content {
    padding: 20px 14px;
  }

  .an-specs-table th,
  .an-specs-table td {
    padding: 10px;
    font-size: 13px;
  }

  /* Drawer on Mobile (Priority 6) */
  .an-cart-drawer {
    width: 100%;
    max-width: 100vw;
  }
}

/* 430px down to 360px - Small Mobile Viewports */
@media (max-width: 430px) {
  .an-logo-text {
    font-size: 20px;
  }

  .an-header-tools {
    gap: 10px;
  }

  .an-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .an-cat-card {
    padding: 14px 8px;
  }

  .an-cat-card span {
    font-size: 12px;
  }

  /* Single Product Add to Cart Form on Small Mobile */
  form.cart .quantity {
    width: 100%;
    justify-content: center;
  }

  form.cart .single_add_to_cart_button {
    width: 100%;
  }

  .an-qty-action-row {
    flex-direction: column;
    width: 100%;
  }

  .an-sticky-cart-bar {
    display: none !important; /* Hide sticky bar on very small phones to prevent screen obstruction */
  }

  .an-toast-notification {
    bottom: 15px;
    right: 15px;
    left: 15px;
    font-size: 13px;
    padding: 12px 16px;
  }
}

/* 380px and below */
@media (max-width: 380px) {
  .an-header-inner {
    gap: 6px !important;
  }
  .an-logo-text {
    font-size: 17px !important;
  }
  .an-header-tools {
    gap: 8px !important;
  }
}

/* 360px and below - Single column where needed */
@media (max-width: 360px) {
  .an-products-grid,
  .an-shop-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

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

