/*
Theme Name: Storefront Child
Theme URI: https://theoldfangledleatherco.co.za
Description: Child theme for The Oldfangled Leather Co.
Author: The Oldfangled Leather Co.
Template: storefront
Version: 1.0.0
*/

/* =============================================
   OLDFANGLED LEATHER CO — BRAND TOKENS
   ============================================= */
:root {
    --olc-red:      #8B1A1A;
    --olc-black:    #1A1A1A;
    --olc-cream:    #FAF7F2;
    --olc-tan:      #C8A96E;
    --olc-brown:    #6B4C2A;
    --olc-border:   #E0D5C5;
}

/* === GLOBAL === */
body {
    background-color: var(--olc-cream);
    color: var(--olc-black);
    font-family: 'Georgia', serif;
}

/* === HEADER === */
.site-header {
    background-color: #FAF7F2 !important;
    border-bottom: 2px solid var(--olc-border);
    padding: 16px 0;
}

.site-branding {
    text-align: left;
}

.site-title a {
    color: var(--olc-red) !important;
    font-family: 'Georgia', serif;
    font-size: 1.6rem;
    text-decoration: none;
}

.site-description {
    color: var(--olc-brown);
    font-size: 0.85rem;
}

.custom-logo {
    max-height: 90px !important;
    width: auto !important;
}

/* === NAV === */
.main-navigation a,
.storefront-primary-navigation a {
    color: var(--olc-black) !important;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'Georgia', serif;
}

.main-navigation a:hover {
    color: var(--olc-red) !important;
}

.main-navigation ul li.current-menu-item > a {
    color: var(--olc-red) !important;
}

/* === PRODUCT GRID === */
ul.products li.product {
    background: #fff;
    border: 1px solid var(--olc-border);
    border-radius: 4px;
    padding: 16px;
    transition: box-shadow 0.2s ease;
}

ul.products li.product:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    color: var(--olc-black);
}

ul.products li.product .price {
    color: var(--olc-red);
    font-weight: bold;
    font-size: 1.05rem;
}

/* === BUTTONS === */
ul.products li.product .button,
ul.products li.product a.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: var(--olc-red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 3px !important;
    font-size: 0.88rem !important;
    font-weight: bold !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 10px 20px !important;
    width: 100% !important;
    margin-top: 8px !important;
    transition: background-color 0.2s ease !important;
}

ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background-color: #6B1212 !important;
    color: #fff !important;
}

/* === SPECIAL FIND BADGE === */
.woocommerce ul.products li.product {
    position: relative;
}

.olc-special-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--olc-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 2px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    pointer-events: none;
}

/* === SINGLE PRODUCT === */
.woocommerce div.product .product_title {
    font-family: 'Georgia', serif;
    color: var(--olc-black);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--olc-red) !important;
    font-size: 1.4rem;
}

/* === FOOTER === */
.site-footer {
    background-color: #F0EBE3;
    color: var(--olc-brown);
    border-top: 2px solid var(--olc-border);
}

.site-footer a {
    color: var(--olc-red);
}

/* === CART/CHECKOUT === */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order {
    background-color: var(--olc-red) !important;
    color: #fff !important;
    font-size: 1.05rem !important;
    padding: 14px 28px !important;
    border-radius: 3px !important;
}

/* === WIDGETS === */
.widget-title {
    color: var(--olc-brown);
    border-bottom: 2px solid var(--olc-border);
    padding-bottom: 6px;
    font-family: 'Georgia', serif;
}

/* Force light header - override Storefront customizer inline styles */
.site-header,
header.site-header,
.storefront-sticky-add-to-cart,
#masthead {
    background-color: #FAF7F2 !important;
    color: #1A1A1A !important;
    border-bottom: 2px solid #E0D5C5 !important;
}

#masthead .site-title a,
#masthead .site-description,
.site-header .site-title a {
    color: #8B1A1A !important;
}

#masthead .main-navigation a,
.site-header .main-navigation a {
    color: #1A1A1A !important;
}

#masthead .main-navigation a:hover {
    color: #8B1A1A !important;
}

/* Outlined buttons instead of solid fill */
ul.products li.product .button,
ul.products li.product a.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: transparent !important;
    color: #8B1A1A !important;
    border: 2px solid #8B1A1A !important;
    border-radius: 3px !important;
    font-size: 0.88rem !important;
    font-weight: bold !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 9px 20px !important;
    width: 100% !important;
    margin-top: 8px !important;
    transition: all 0.2s ease !important;
}

ul.products li.product .button:hover,
ul.products li.product a.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background-color: #8B1A1A !important;
    color: #FAF7F2 !important;
    border-color: #8B1A1A !important;
}

/* === NAV LINKS AS FRAMED BUTTONS === */
.main-navigation ul li a,
.storefront-primary-navigation ul li a {
    display: inline-block !important;
    border: 2px solid #8B1A1A !important;
    color: #8B1A1A !important;
    background: transparent !important;
    padding: 6px 14px !important;
    border-radius: 3px !important;
    font-size: 0.82rem !important;
    font-weight: bold !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    margin: 3px !important;
}

.main-navigation ul li a:hover,
.main-navigation ul li a:focus,
.storefront-primary-navigation ul li a:hover,
.storefront-primary-navigation ul li a:focus,
.main-navigation ul li:hover > a {
    background-color: #8B1A1A !important;
    color: #FAF7F2 !important;
    border-color: #8B1A1A !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force nav hover text visible - nuclear override */
.main-navigation ul li a:hover *,
.main-navigation ul li:hover > a,
.main-navigation ul li:hover > a *,
#site-navigation a:hover,
#site-navigation li:hover > a {
    color: #FAF7F2 !important;
    background-color: #8B1A1A !important;
    -webkit-text-fill-color: #FAF7F2 !important;
}

/* === SHOP INTRO SECTION === */
.woocommerce-products-header,
.page-description,
.term-description,
.woocommerce-archive-description {
    text-align: center !important;
    max-width: 700px !important;
    margin: 0 auto 20px auto !important;
    padding: 20px 0 10px 0 !important;
}

.woocommerce-products-header__title,
.page-title,
h1.page-title {
    text-align: center !important;
    font-size: 1.6rem !important;
    color: #1A1A1A !important;
    margin-bottom: 8px !important;
}

.woocommerce-products-header p,
.term-description p {
    font-size: 0.9rem !important;
    color: #6B4C2A !important;
    line-height: 1.5 !important;
    margin-bottom: 4px !important;
}

/* === FORCE HOMEPAGE HEADING CENTRE === */
.page-id-20 h1,
.page-id-20 h2,
.page-id-20 .entry-title,
.page-id-20 .entry-content,
.page-id-20 .entry-content p,
.page-id-20 .entry-content h1,
.page-id-20 .entry-content h2 {
    text-align: center !important;
}

/* === FORCE BOLD ON HOMEPAGE LINES === */
.page-id-20 .entry-content h1,
.page-id-20 .entry-content h2,
.page-id-20 .entry-content p:first-of-type,
.page-id-20 .entry-content p:last-of-type {
    font-weight: 900 !important;
    font-size: 1.1rem !important;
    color: #1A1A1A !important;
}

/* Hide sorting dropdown on Special Finds category */
.tax-product_cat.term-special-finds .woocommerce-ordering {
  display: none !important;
}

/* Homepage 3-button row */
.olc-btn-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 6px;
  margin: 8px auto 8px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.olc-btn-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  background: #8B1A1A;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s;
  text-align: center;
  box-sizing: border-box;
}

.olc-btn-row a:hover {
  background: #6e1414;
  color: #ffffff !important;
}

@media (min-width: 600px) {
  .olc-btn-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .olc-btn-row a {
    width: auto;
    max-width: none;
  }
}
