/* CEDARWOOD 2.0 — warm forest, natural wood and golden light */
:root {
  --cedar: #71836b;
  --cedar-dark: #344b3a;
  --cedar-deep: #24372b;
  --wood: #94633f;
  --wood-mid: #b88758;
  --wood-light: #dfc49b;
  --cream: #f5eddf;
  --paper: #fffaf1;
  --ink: #302b23;
  --gold: #d6a85f;
}

html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse at 12% 8%, rgba(226,177,103,.19), transparent 27%),
    radial-gradient(ellipse at 88% 22%, rgba(104,128,91,.13), transparent 30%),
    repeating-linear-gradient(92deg, rgba(119,83,49,.018) 0 1px, transparent 1px 9px),
    linear-gradient(135deg, #f8f0e3, #eee5d5 55%, #f8f1e6);
  background-attachment: fixed;
}

/* Header: deep forest green with clear, warm lettering */
#header {
  background: linear-gradient(115deg, #263b2d, #405b42 58%, #314633);
  color: #fff8e9;
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 5px 20px rgba(42,35,24,.19);
}
#header a, #header .material-icons, #header .header-nav,
#header .header-nav a, #header .header-top, #header .header-top a,
#header .menu, #header .top-menu a, #header .position-static a {
  color: #fff5df !important;
}
#header .header-nav {
  background: rgba(25,43,31,.42);
  border-bottom: 1px solid rgba(239,207,151,.24);
}
#header .header-top { background: transparent; }
#header .top-menu a[data-depth="0"] {
  font-weight: 700;
  font-size: 1rem;
  padding:  .8rem .9rem;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
#header a:hover, #header .top-menu a:hover,
#header .top-menu a[data-depth="0"]:hover {
  color: #f4ca82 !important;
}
#header .logo { filter: drop-shadow(0 2px 5px rgba(0,0,0,.25)); }

/* Search: translucent glass-like field with a golden edge */
#search_widget { max-width: 440px; }
#search_widget form { position: relative; }
#search_widget input[type="text"],
#search_widget input[type="search"] {
  color: #fff8e9 !important;
  background: rgba(255,250,238,.13) !important;
  border: 1px solid rgba(230,190,121,.82) !important;
  border-radius: 24px !important;
  min-height: 43px;
  padding: 9px 16px;
  box-shadow: inset 0 1px 5px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.12);
}
#search_widget input::placeholder { color: rgba(255,246,224,.82) !important; }
#search_widget input:focus {
  outline: none;
  border-color: #f3cf8c !important;
  box-shadow: 0 0 0 3px rgba(225,180,105,.2);
}
#search_widget button {
  color: #fff7e8 !important;
  background: linear-gradient(135deg, #a97848, #d0a365) !important;
  border: 1px solid #e4c18a !important;
  border-radius: 50% !important;
}

/* Buttons */
.btn-primary, button[name="submitNewsletter"],
.product-add-to-cart .add-to-cart, .quick-view {
  color: #fffaf0 !important;
  background: linear-gradient(135deg, #526b4c, #344b38) !important;
  border: 1px solid #6e805d !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 8px rgba(48,59,39,.16);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary:hover, button[name="submitNewsletter"]:hover,
.product-add-to-cart .add-to-cart:hover, .quick-view:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #9b7049, #bd915d) !important;
  border-color: #d0a36a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(70,48,27,.2);
}

/* Product cards: warm wood frame, soft light and clean product-photo area */
.product-miniature { margin-bottom: 1.6rem; }
.product-miniature .thumbnail-container {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(4deg, rgba(95,61,34,.045) 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #ead8bc, #c9a77d 48%, #e9d7b9) !important;
  border: 2px solid #a8794e !important;
  border-radius: 13px !important;
  padding: 6px;
  box-shadow: 0 5px 16px rgba(67,48,29,.17), inset 0 0 0 2px rgba(255,245,222,.55);
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-miniature .thumbnail-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 23px rgba(67,48,29,.23), inset 0 0 0 2px rgba(255,245,222,.7);
}
.product-miniature .thumbnail-top {
  overflow: hidden;
  background: #fffaf1;
  border-radius: 8px;
}
.product-miniature .thumbnail-top img,
.product-miniature .product-thumbnail img {
  transition: transform .35s ease;
}
.product-miniature .thumbnail-container:hover .thumbnail-top img,
.product-miniature .thumbnail-container:hover .product-thumbnail img {
  transform: scale(1.035);
}
.product-miniature .product-description {
  background: linear-gradient(180deg, rgba(255,250,241,.97), rgba(247,237,219,.98));
  border-radius: 0 0 8px 8px;
  padding: 10px 9px 12px;
}
.product-miniature .product-title a {
  color: #354a35 !important;
  font-weight: 700;
}
.product-miniature .product-title a:hover { color: var(--wood) !important; }
.product-miniature .product-price-and-shipping {
  color: #76502f !important;
  font-weight: 800;
}

/* Product detail page */
.product-cover, .images-container .thumb-container {
  background: #fffaf1;
  border: 5px solid #d7bd96;
  border-radius: 12px;
  box-shadow: 0 5px 17px rgba(66,48,29,.13);
  padding: 5px;
}
.product-information, .card, .block-category,
.featured-products, .product-accessories, .tabs {
  border-radius: 12px;
}
.product-information, .product-actions {
  background: rgba(255,250,241,.72);
  border: 1px solid rgba(153,111,68,.2);
  border-radius: 12px;
  padding: 12px;
}

/* Natural section headings and links */
h1, h2, h3, h4, .h1, .h2, .h3 {
  color: #344b38;
  font-weight: 800;
}
h1, .h1 { text-shadow: 0 1px 0 rgba(255,255,255,.65); }
a { color: #526b4b; }
a:hover { color: #986b42; }

/* Inputs */
input, select, textarea, .form-control {
  border: 1px solid rgba(126,94,58,.38);
  border-radius: 8px;
  background-color: rgba(255,250,241,.92);
}
input:focus, select:focus, textarea:focus, .form-control:focus {
  border-color: #b58a55;
  box-shadow: 0 0 0 .15rem rgba(202,157,93,.2);
}

/* Category and content areas */
#main .page-header, .block-category,
.products-selection, .pagination, .featured-products h2 {
  border-color: rgba(151,111,67,.24);
}
.block-category {
  background: linear-gradient(135deg, rgba(255,250,241,.9), rgba(235,224,203,.82));
  border: 1px solid rgba(151,111,67,.22);
  padding: 16px;
}

/* Footer */
#footer {
  color: #f8eddb;
  background:
    repeating-linear-gradient(88deg, rgba(255,255,255,.025) 0 1px, transparent 1px 10px),
    linear-gradient(125deg, #263b2d, #40553c);
  border-top: 5px solid #bd925e;
}
#footer a, #footer .h3, #footer h3 { color: #f5dfb8 !important; }
#footer a:hover { color: #fff !important; }

/* Warm sale labels */
.product-flags li.product-flag, .discount-percentage, .discount-amount {
  color: #fffaf0;
  background: #a87545;
  border-radius: 4px;
}
hr, .separator { border-color: rgba(160,117,70,.3); }

/* Small decorative woodland glow, kept subtle so it never covers content */
#content-wrapper { position: relative; }
#content-wrapper::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 2%; right: -2%;
  width: 180px; height: 180px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(218,171,100,.12), transparent 70%);
}

@media (max-width: 767px) {
  #header { border-bottom-width: 3px; }
  #header .header-nav { background: rgba(25,43,31,.55); }
  .product-miniature .thumbnail-container { border-radius: 10px !important; }
  #search_widget { max-width: 100%; }
}
