/*
Theme Name: Reis Kuyumculuk
Theme URI: https://reiskuyumculuk.com
Author: Reis Kuyumculuk
Author URI: https://reiskuyumculuk.com
Description: Custom WooCommerce theme for Reis Kuyumculuk jewelry store. Converted from Shopify Madrid theme. Features mega-menu, hero slideshow, product carousels, cart drawer and full WooCommerce integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 9.0
License: Proprietary
Text Domain: reis-kuyumculuk
Tags: woocommerce, jewelry, custom-menu, featured-images, full-width-template
*/

/* ============================================================
   DESIGN TOKENS — mirrors original Shopify CSS custom properties
   ============================================================ */
:root {
  /* Colors */
  --color-background: 255, 255, 255;
  --color-background-secondary: 245, 245, 245;
  --gradient-background: #ffffff;
  --color-foreground: 0, 0, 0;
  --color-foreground-secondary: 77, 77, 77;
  --color-foreground-title: 0, 0, 0;

  --color-button-text: 249, 249, 249;
  --color-button-text-hover: 249, 249, 249;
  --color-button: 74, 106, 86;
  --color-button-hover: 102, 129, 111;

  --color-button-secondary: 235, 235, 235;
  --color-button-secondary-hover: 238, 238, 238;
  --color-button-secondary-text: 0, 0, 0;
  --color-button-secondary-text-hover: 0, 0, 0;

  --color-button-tertiary-text: 0, 0, 0;
  --color-button-tertiary-text-hover: 255, 255, 255;
  --color-button-tertiary: 74, 106, 86;
  --color-button-tertiary-hover: 74, 106, 86;

  --color-overlay: 0, 0, 0;
  --color-border-input: 204, 204, 204;
  --color-border-input-hover: 128, 128, 128;
  --color-background-input: 255, 255, 255;
  --color-border: 225, 225, 225;

  --color-card-price-new: 0, 0, 0;
  --color-card-price-old: 153, 153, 153;
  --color-badge-sale-background: 74, 106, 86;
  --color-badge-sale-text: 249, 249, 249;
  --color-badge-soldout-background: 255, 255, 255;
  --color-badge-soldout-text: 0, 0, 0;

  /* Typography */
  --font-body-family: "Instrument Sans", sans-serif;
  --font-body-style: normal;
  --font-body-weight: 400;
  --font-body-scale: 1.4;
  --font-body-line-height: 1.5;

  --font-heading-family: "Instrument Sans", sans-serif;
  --font-heading-style: normal;
  --font-heading-weight: 500;
  --font-heading-letter-spacing: -0.03em;
  --font-heading-line-height: 1.3;

  --font-button-family: "Instrument Sans", sans-serif;
  --font-button-weight: 600;
  --font-button-text-transform: uppercase;
  --font-button-letter-spacing: 0.06em;

  --font-subtitle-family: "Instrument Sans", sans-serif;
  --font-subtitle-weight: 600;

  --font-header-menu-family: "Instrument Sans", sans-serif;
  --font-header-menu-weight: 500;

  /* Spacing */
  --announcement-height: 0px;
  --header-height: 0px;
  --spaced-section: 5rem;
  --border-radius-button: 0px;
  --border-radius-media: 0px;
}

@media screen and (min-width: 990px) {
  :root {
    --spaced-section: 16rem;
  }
}

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

html {
  font-size: 11px;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  grid-template-columns: 100%;
  min-height: 100%;
  margin: 0;
  font-size: calc(var(--font-body-scale) * 1rem);
  line-height: var(--font-body-line-height);
  font-family: var(--font-body-family);
  font-style: var(--font-body-style);
  font-weight: var(--font-body-weight);
  color: rgb(var(--color-foreground));
  background-color: rgb(var(--color-background));
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading-family);
  font-weight: var(--font-heading-weight);
  letter-spacing: var(--font-heading-letter-spacing);
  line-height: var(--font-heading-line-height);
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.secondary_text {
  color: rgb(var(--color-foreground-secondary));
}

.list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

.h2 { font-size: 2.4rem; }
.h3 { font-size: 1.6rem; }
.subtitle {
  font-family: var(--font-subtitle-family);
  font-weight: var(--font-subtitle-weight);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 3rem;
  font-family: var(--font-button-family);
  font-weight: var(--font-button-weight);
  font-size: 1.2rem;
  text-transform: var(--font-button-text-transform);
  letter-spacing: var(--font-button-letter-spacing);
  border: 1px solid transparent;
  border-radius: var(--border-radius-button);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.button--primary {
  background-color: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
  border-color: rgb(var(--color-button));
}
.button--primary:hover {
  background-color: rgb(var(--color-button-hover));
  border-color: rgb(var(--color-button-hover));
}

.button--secondary {
  background-color: rgb(var(--color-button-secondary));
  color: rgb(var(--color-button-secondary-text));
  border-color: rgb(var(--color-button-secondary));
}
.button--secondary:hover {
  background-color: rgb(var(--color-button-secondary-hover));
}

.button--tertiary {
  background-color: transparent;
  color: rgb(var(--color-button-tertiary-text));
  border-color: rgb(var(--color-foreground));
}
.button--tertiary:hover {
  background-color: rgb(var(--color-button-tertiary));
  color: rgb(var(--color-button-tertiary-text-hover));
  border-color: rgb(var(--color-button-tertiary));
}

.button--full-width { width: 100%; }

/* ============================================================
   FORM FIELDS
   ============================================================ */
.field {
  position: relative;
}

.field__input {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgb(var(--color-border-input));
  background-color: rgb(var(--color-background-input));
  font-family: var(--font-body-family);
  font-size: calc(var(--font-body-scale) * 1rem);
  color: rgb(var(--color-foreground));
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
}

.field__input:focus {
  border-color: rgb(var(--color-border-input-hover));
}

.field__input::placeholder {
  color: rgb(var(--color-foreground-secondary));
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--sale {
  background-color: rgb(var(--color-badge-sale-background));
  color: rgb(var(--color-badge-sale-text));
}

.badge--soldout {
  background-color: rgb(var(--color-badge-soldout-background));
  color: rgb(var(--color-badge-soldout-text));
  border: 1px solid rgb(var(--color-border));
}

/* ============================================================
   LINK STYLES
   ============================================================ */
.link--text {
  color: rgb(var(--color-foreground));
}

.link-hover-line {
  position: relative;
}
.link-hover-line::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}
.link-hover-line:hover::after { width: 100%; }

/* ============================================================
   FOCUS STYLES
   ============================================================ */
.focus-inset:focus-visible {
  outline: 2px solid rgb(var(--color-foreground));
  outline-offset: -2px;
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(15px);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SPINNER / LOADING
   ============================================================ */
.spinner {
  animation: rotator 1.4s linear infinite;
  width: 2.4rem;
  height: 2.4rem;
}
.spinner .path {
  stroke: rgb(var(--color-button));
  stroke-dasharray: 187;
  stroke-dashoffset: 0;
  transform-origin: center;
  animation: dash 1.4s ease-in-out infinite;
}
@keyframes rotator { to { transform: rotate(360deg); } }
@keyframes dash {
  0%   { stroke-dashoffset: 187; }
  50%  { stroke-dashoffset: 46.75; transform: rotate(135deg); }
  100% { stroke-dashoffset: 187; transform: rotate(450deg); }
}

/* ============================================================
   ICON SPRITES
   ============================================================ */
.icon { display: inline-block; vertical-align: middle; }
