/*
 Theme Name:   Flatsome Child
 Theme URI:    https://noura.id
 Description:  Flatsome Child Theme for Noura.id
 Author:       Noura.id
 Author URI:   https://noura.id
 Template:     flatsome
 Version:      1.0.0
 Text Domain:  flatsome-child
*/

/* ============================================
   NOURA.ID — BRAND TOKENS
   Primary   : #3E2C1C (Espresso)
   Secondary : #8C7056 (Mocha)
   Background: #FAFAF7 (Ivory)
   Accent    : #C4B49A (Taupe)
   Heading   : Playfair Display
   Body      : DM Sans
============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --noura-primary:    #3E2C1C;
  --noura-secondary:  #8C7056;
  --noura-bg:         #FAFAF7;
  --noura-accent:     #C4B49A;
  --noura-accent-light: #E8DDD0;
  --noura-white:      #FFFFFF;
  --noura-text:       #3E2C1C;
  --noura-text-muted: #7A6A5A;
  --font-heading:     'Playfair Display', Georgia, serif;
  --font-body:        'DM Sans', system-ui, sans-serif;
}

/* --- Base Typography --- */
body {
  font-family: var(--font-body) !important;
  background-color: var(--noura-bg) !important;
  color: var(--noura-text) !important;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading) !important;
  color: var(--noura-primary) !important;
  font-weight: 600;
  line-height: 1.3;
}

p, li, td, th, span, div {
  font-family: var(--font-body);
}

/* --- Links --- */
a {
  color: var(--noura-secondary);
  transition: color 0.2s ease;
}
a:hover {
  color: var(--noura-primary);
}

/* --- Header --- */
#header,
.header-wrapper {
  background-color: var(--noura-white) !important;
  border-bottom: 1px solid var(--noura-accent-light);
}

.header-logo img {
  max-height: 50px;
}

/* --- Navigation --- */
.nav-item > a,
.nav > li > a {
  font-family: var(--font-body) !important;
  font-weight: 500;
  color: var(--noura-primary) !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 13px;
}

.nav-item > a:hover,
.nav > li > a:hover,
.nav > li.active > a {
  color: var(--noura-secondary) !important;
}

/* --- Buttons --- */
.button,
button,
input[type=submit],
input[type=button],
.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background-color: var(--noura-primary) !important;
  color: var(--noura-white) !important;
  font-family: var(--font-body) !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  border-radius: 2px;
  border: 2px solid var(--noura-primary) !important;
  transition: all 0.25s ease;
}

.button:hover,
button:hover,
input[type=submit]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background-color: transparent !important;
  color: var(--noura-primary) !important;
}

/* Outline variant */
.button.outline,
.woocommerce a.button.alt {
  background-color: transparent !important;
  color: var(--noura-primary) !important;
  border: 2px solid var(--noura-primary) !important;
}
.button.outline:hover,
.woocommerce a.button.alt:hover {
  background-color: var(--noura-primary) !important;
  color: var(--noura-white) !important;
}

/* --- WooCommerce: Add to Cart --- */
.woocommerce .single_add_to_cart_button,
.woocommerce #respond input#submit {
  background-color: var(--noura-primary) !important;
  border-color: var(--noura-primary) !important;
  color: var(--noura-white) !important;
  border-radius: 2px;
  padding: 14px 36px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.woocommerce .single_add_to_cart_button:hover {
  background-color: var(--noura-secondary) !important;
  border-color: var(--noura-secondary) !important;
}

/* --- Product Cards --- */
.product-inner,
.woocommerce ul.products li.product {
  background: var(--noura-white);
  border: 1px solid var(--noura-accent-light);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-inner:hover,
.woocommerce ul.products li.product:hover {
  box-shadow: 0 8px 32px rgba(62, 44, 28, 0.10);
  transform: translateY(-3px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.product-title {
  font-family: var(--font-heading) !important;
  color: var(--noura-primary) !important;
  font-size: 16px;
  font-weight: 600;
}

.woocommerce ul.products li.product .price,
.product-price {
  color: var(--noura-secondary) !important;
  font-family: var(--font-body) !important;
  font-weight: 600;
  font-size: 15px;
}

/* Sale badge */
.onsale,
.woocommerce span.onsale {
  background-color: var(--noura-secondary) !important;
  color: var(--noura-white) !important;
  font-family: var(--font-body) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

/* --- Product Single Page --- */
.product .product_title {
  font-family: var(--font-heading) !important;
  color: var(--noura-primary) !important;
  font-size: 28px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--noura-secondary) !important;
  font-size: 22px;
  font-weight: 600;
}

/* --- Cart & Checkout --- */
.woocommerce-cart .cart_totals h2,
.woocommerce-checkout h3 {
  font-family: var(--font-heading) !important;
  color: var(--noura-primary) !important;
}

.woocommerce table.shop_table {
  border-color: var(--noura-accent-light);
}

.woocommerce table.shop_table th {
  background-color: var(--noura-bg);
  color: var(--noura-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Forms --- */
input[type=text],
input[type=email],
input[type=password],
input[type=tel],
input[type=number],
input[type=search],
textarea,
select {
  border-color: var(--noura-accent) !important;
  border-radius: 2px !important;
  font-family: var(--font-body) !important;
  color: var(--noura-text) !important;
  background-color: var(--noura-white) !important;
  transition: border-color 0.2s ease;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
textarea:focus,
select:focus {
  border-color: var(--noura-secondary) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(140, 112, 86, 0.12) !important;
}

/* --- Footer --- */
#footer,
.footer-wrapper {
  background-color: var(--noura-primary) !important;
  color: var(--noura-accent-light) !important;
}

#footer a,
.footer-wrapper a {
  color: var(--noura-accent) !important;
}

#footer a:hover,
.footer-wrapper a:hover {
  color: var(--noura-white) !important;
}

#footer h3, #footer h4,
.footer-wrapper h3, .footer-wrapper h4 {
  color: var(--noura-white) !important;
  font-family: var(--font-heading) !important;
}

/* --- Section Backgrounds --- */
.section-dark,
.dark-bg {
  background-color: var(--noura-primary) !important;
}

.section-light,
.light-bg {
  background-color: var(--noura-bg) !important;
}

/* --- Flatsome Banners & UX Blocks --- */
.banner-inner h1,
.banner-inner h2,
.banner-inner h3 {
  font-family: var(--font-heading) !important;
}

/* --- Scrollbar (webkit) --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--noura-bg); }
::-webkit-scrollbar-thumb { background: var(--noura-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--noura-secondary); }

/* --- Selection color --- */
::selection {
  background-color: var(--noura-accent-light);
  color: var(--noura-primary);
}

/* ============================================
   NOURA.ID — HEADER & LOGO OVERRIDES
============================================ */

/* --- Header wrapper --- */
#header,
#header .header-wrapper,
.header-wrapper {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E8DDD0 !important;
  box-shadow: 0 2px 16px rgba(62,44,28,0.06) !important;
}

/* Sticky header */
#header.is-sticky,
#header.sticky-header {
  background: #FFFFFF !important;
  box-shadow: 0 2px 20px rgba(62,44,28,0.10) !important;
}

/* --- Logo image sizing --- */
#header .logo img,
.header-logo img,
.custom-logo,
img.custom-logo {
  max-height: 44px !important;
  width: auto !important;
  height: auto !important;
  display: block;
}

/* Hide site name text if logo image is set */
.site-name-text,
.header-logo .site-name {
  display: none;
}

/* --- Topbar --- */
#top-bar,
.top-bar-wrapper {
  background-color: #3E2C1C !important;
  color: #E8DDD0 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px;
  letter-spacing: 0.05em;
}

#top-bar a,
.top-bar-wrapper a {
  color: #C4B49A !important;
}

#top-bar a:hover,
.top-bar-wrapper a:hover {
  color: #FFFFFF !important;
}

/* --- Main nav bar (inside header) --- */
.nav-bar,
#header .nav-bar {
  background: transparent !important;
}

/* Nav items */
#header .nav > li > a,
.header-main .nav > li > a,
.nav-dark .nav > li > a {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #3E2C1C !important;
  padding: 0 14px !important;
}

#header .nav > li > a:hover,
.header-main .nav > li > a:hover,
#header .nav > li.active > a {
  color: #8C7056 !important;
}

/* Nav underline indicator */
#header .nav > li > a:after {
  background-color: #8C7056 !important;
}

/* --- Dropdown menus --- */
.nav .sub-menu,
.dropdown-menu {
  background: #FFFFFF !important;
  border-top: 2px solid #8C7056 !important;
  box-shadow: 0 8px 24px rgba(62,44,28,0.12) !important;
}

.nav .sub-menu li a,
.dropdown-menu li a {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  color: #3E2C1C !important;
}

.nav .sub-menu li a:hover,
.dropdown-menu li a:hover {
  color: #8C7056 !important;
  background: #FAFAF7 !important;
}

/* --- Header icons (cart, account, search) --- */
#header .header-button,
#header .cart-icon,
#header .icon-cart,
.header-cart-link,
.header-account-link {
  color: #3E2C1C !important;
}

#header .header-button:hover,
.header-cart-link:hover,
.header-account-link:hover {
  color: #8C7056 !important;
}

/* Cart count badge */
.cart-count,
.count {
  background: #8C7056 !important;
  color: #FFFFFF !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 10px !important;
}

/* --- Search bar in header --- */
.header-search-form input,
#header .search-field {
  border-color: #E8DDD0 !important;
  font-family: 'DM Sans', sans-serif !important;
  background: #FAFAF7 !important;
  color: #3E2C1C !important;
}

/* --- Mobile header --- */
#mobile-menu,
.mobile-menu-wrapper {
  background: #FFFFFF !important;
}

.mobile-nav .nav > li > a {
  font-family: 'DM Sans', sans-serif !important;
  color: #3E2C1C !important;
  border-bottom: 1px solid #E8DDD0 !important;
}

.mobile-nav .nav > li > a:hover {
  color: #8C7056 !important;
}

/* Hamburger icon */
.nav-icon,
.nav-toggle {
  color: #3E2C1C !important;
}

/* Mobile logo */
.mobile-logo img {
  max-height: 38px !important;
  width: auto !important;
}

/* === NOURA.ID - PRODUCT PAGE CUSTOM STYLE === */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* Brand Colors */
:root {
  --noura-espresso: #3E2C1C;
  --noura-mocha: #8C7056;
  --noura-ivory: #FAFAF7;
  --noura-taupe: #C4B49A;
  --noura-linen: #E9E3D8;
  --noura-sand: #F3F0EA;
}

/* Global Font */
body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--noura-ivory);
  color: var(--noura-espresso);
}

/* Heading Font */
h1, h2, h3, h4, h5, h6,
.product_title,
.entry-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: var(--noura-espresso);
}

/* === SINGLE PRODUCT PAGE === */

/* Product layout */
.single-product div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 3rem 2rem;
  background: var(--noura-ivory);
}

/* Product images */
.single-product .woocommerce-product-gallery {
  position: sticky;
  top: 2rem;
}

.single-product .woocommerce-product-gallery__image img {
  border-radius: 4px;
  width: 100%;
}

/* Thumbnails */
.single-product .flex-control-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0 !important;
}

.single-product .flex-control-thumbs li {
  width: 80px !important;
}

.single-product .flex-control-thumbs img {
  border-radius: 4px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
  cursor: pointer;
}

.single-product .flex-control-thumbs img:hover,
.single-product .flex-control-thumbs .flex-active {
  border-color: var(--noura-espresso) !important;
}

/* Product title */
.single-product .product_title {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* Price */
.single-product .price {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--noura-mocha) !important;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

/* Divider */
.single-product .woocommerce-product-details__short-description {
  border-top: 1px solid var(--noura-linen);
  border-bottom: 1px solid var(--noura-linen);
  padding: 1.2rem 0;
  margin: 1.2rem 0;
  font-size: 13px;
  color: var(--noura-mocha);
  line-height: 1.8;
}

/* Variation labels */
.single-product .variations label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--noura-espresso);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

/* Variation select */
.single-product .variations select {
  border: 1px solid var(--noura-linen);
  border-radius: 2px;
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--noura-espresso);
  background: var(--noura-ivory);
  width: 100%;
  margin-bottom: 1rem;
  appearance: none;
  cursor: pointer;
}

/* Size buttons (variation swatches) */
.single-product .variable-items-wrapper .button-variable-item {
  border: 1px solid var(--noura-linen) !important;
  border-radius: 2px !important;
  font-size: 12px !important;
  letter-spacing: 1px !important;
  color: var(--noura-espresso) !important;
  background: var(--noura-ivory) !important;
  padding: 8px 16px !important;
  transition: all 0.2s !important;
  font-family: 'DM Sans', sans-serif !important;
}

.single-product .variable-items-wrapper .button-variable-item:hover,
.single-product .variable-items-wrapper .button-variable-item.selected {
  border-color: var(--noura-espresso) !important;
  background: var(--noura-espresso) !important;
  color: var(--noura-ivory) !important;
}

/* Quantity */
.single-product .quantity input {
  border: 1px solid var(--noura-linen);
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--noura-espresso);
  text-align: center;
  width: 60px;
  height: 44px;
  background: var(--noura-ivory);
}

/* Add to cart button */
.single-product .single_add_to_cart_button,
.single-product button[name=add-to-cart] {
  background: var(--noura-espresso) !important;
  color: var(--noura-ivory) !important;
  border: none !important;
  border-radius: 2px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  padding: 16px 32px !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  margin-top: 1rem !important;
}

.single-product .single_add_to_cart_button:hover {
  background: var(--noura-mocha) !important;
}

/* Trust badges */
.single-product .product-trust-badges {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--noura-linen);
  border-bottom: 1px solid var(--noura-linen);
}

.single-product .trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--noura-mocha);
}

/* Product tabs */
.single-product .woocommerce-tabs .tabs {
  border-bottom: 1px solid var(--noura-linen);
  margin-bottom: 1.5rem;
}

.single-product .woocommerce-tabs .tabs li a {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--noura-mocha);
  font-family: 'DM Sans', sans-serif;
}

.single-product .woocommerce-tabs .tabs li.active a {
  color: var(--noura-espresso);
  border-bottom: 2px solid var(--noura-espresso);
}

/* Product description */
.single-product .woocommerce-product-details__short-description p,
.single-product .woocommerce-tab p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--noura-mocha);
}

/* Related products */
.related.products h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--noura-espresso);
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

/* Product cards on shop/related */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--noura-espresso);
}

.woocommerce ul.products li.product .price {
  font-family: 'Playfair Display', serif;
  color: var(--noura-mocha) !important;
}

.woocommerce ul.products li.product a img {
  border-radius: 4px;
  transition: transform 0.4s ease;
}

.woocommerce ul.products li.product a:hover img {
  transform: scale(1.03);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .single-product div.product {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }

  .single-product .woocommerce-product-gallery {
    position: relative;
    top: 0;
  }
}

/* === END NOURA.ID PRODUCT PAGE === */
