/*
Theme Name: Pressed by Sienna
Theme URI: https://pressedbysienna.com/
Author: Pressed by Sienna
Description: A lightweight, mobile-first WooCommerce theme for Pressed by Sienna press-on nails. Cream, soft pink, and botanical green palette.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pressed-by-sienna
Tags: e-commerce, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Design tokens — change these to update the entire site
   ========================================================================== */
:root {
  /* Colors — placeholders; update once final logo lands */
  --color-cream:        #FAF4EA;
  --color-cream-dark:   #F2E9D8;
  --color-pink:         #F3D6D6;
  --color-pink-dark:    #E5B8B8;
  --color-green:        #4F6B4A;   /* Logo green — UPDATE WHEN LOGO IS READY */
  --color-green-dark:   #3D5439;
  --color-text:         #2B2B2B;
  --color-text-soft:    #5C5C5C;
  --color-border:       #E8DFCF;
  --color-white:        #FFFFFF;

  /* Typography */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;

  /* Sizing */
  --container-max:    1200px;
  --container-narrow: 800px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Effects */
  --shadow-soft:  0 2px 12px rgba(79, 107, 74, 0.08);
  --shadow-hover: 0 6px 24px rgba(79, 107, 74, 0.14);
  --transition:   200ms ease;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-green-dark);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 var(--space-md); }

a {
  color: var(--color-green);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus { color: var(--color-green-dark); }

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

button { font-family: inherit; cursor: pointer; }

/* ==========================================================================
   3. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow { max-width: var(--container-narrow); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
  background-color: var(--color-cream);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-logo img {
  max-height: 60px;
  width: auto;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-green-dark);
  text-decoration: none;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.cart-link {
  position: relative;
  color: var(--color-green-dark);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.cart-link__count {
  background: var(--color-green);
  color: var(--color-white);
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.1em 0.5em;
  min-width: 1.5em;
  text-align: center;
}

/* ==========================================================================
   5. Homepage hero
   ========================================================================== */
.home-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-pink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.home-hero--placeholder {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-pink) 100%);
}

.home-hero--has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.home-hero__overlay { position: absolute; inset: 0; pointer-events: none; }

.home-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.home-hero__title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  margin: 0 0 var(--space-md);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.home-hero--has-image .home-hero__title {
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.home-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0 auto var(--space-lg);
  max-width: 520px;
  color: var(--color-text);
}

.home-hero--has-image .home-hero__subtitle {
  color: var(--color-cream);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.home-hero__cta {
  margin-top: var(--space-sm);
}

@media (min-width: 800px) {
  .home-hero { min-height: 70vh; }
}

/* ==========================================================================
   6. Category tiles
   ========================================================================== */
.category-tiles {
  background-color: var(--color-cream);
  padding: var(--space-2xl) 0;
}

.category-tiles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-pink);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.tile:hover, .tile:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.tile__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 50%);
}

.tile__label {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.tile--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-pink);
}

.tile--placeholder .tile__label {
  position: static;
  color: var(--color-green-dark);
  text-shadow: none;
  text-align: center;
}

@media (min-width: 600px) {
  .category-tiles__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (min-width: 1000px) {
  .category-tiles__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   7. Product scroller
   ========================================================================== */
.product-scroller {
  background-color: var(--color-cream);
  padding: var(--space-xl) 0 var(--space-2xl);
}

.product-scroller__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.product-scroller__title {
  margin: 0;
}

.product-scroller__shop-all {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-green-dark);
  white-space: nowrap;
}

.product-scroller__shop-all:hover {
  color: var(--color-green);
}

.product-scroller__rail-wrap {
  /* Allow rail to bleed past container edges on mobile for a nicer scrolling feel */
  margin: 0 calc(-1 * var(--space-md));
}

.product-scroller__rail {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--space-md);
  padding: var(--space-xs) var(--space-md) var(--space-md);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-green) transparent;
}

.product-scroller__rail::-webkit-scrollbar { height: 6px; }
.product-scroller__rail::-webkit-scrollbar-track { background: transparent; }
.product-scroller__rail::-webkit-scrollbar-thumb {
  background: var(--color-pink-dark);
  border-radius: 999px;
}

.product-card {
  flex: 0 0 70%;
  max-width: 280px;
  scroll-snap-align: start;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--color-text);
  display: block;
}

.product-card:hover, .product-card:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.product-card__image-wrap {
  aspect-ratio: 1 / 1;
  background: var(--color-pink);
  overflow: hidden;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-green-dark);
  margin: var(--space-sm) var(--space-md) 0;
  line-height: 1.3;
}

.product-card__price {
  padding: var(--space-xs) var(--space-md) var(--space-md);
  font-weight: 500;
  color: var(--color-text);
}

.product-card__price del {
  color: var(--color-text-soft);
  margin-right: 0.4em;
  font-weight: 400;
}

@media (min-width: 600px) {
  .product-card { flex-basis: 45%; }
}

@media (min-width: 900px) {
  .product-card { flex-basis: 30%; max-width: 320px; }
}

@media (min-width: 1200px) {
  .product-card { flex-basis: 23%; }
}

/* ==========================================================================
   8. Instagram feed
   ========================================================================== */
.instagram-feed {
  background-color: var(--color-cream);
  padding: var(--space-xl) 0 var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.instagram-feed__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.instagram-feed__title {
  margin: 0 0 var(--space-xs);
}

.instagram-feed__handle {
  display: inline-block;
  color: var(--color-green);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.instagram-feed__handle:hover {
  color: var(--color-green-dark);
}

.instagram-feed__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}

.instagram-feed__item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-pink);
  border-radius: var(--radius-sm);
  position: relative;
}

.instagram-feed__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.instagram-feed__item:hover img,
.instagram-feed__item:focus img {
  transform: scale(1.04);
}

@media (min-width: 600px) {
  .instagram-feed__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }
}

@media (min-width: 900px) {
  .instagram-feed__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.instagram-feed__shortcode {
  /* Container for 3rd-party plugin output — no opinionated styles */
}

/* ==========================================================================
   9. Buttons
   ========================================================================== */
.btn,
button.btn,
.button,
.wp-block-button__link,
input[type="submit"] {
  display: inline-block;
  background-color: var(--color-green);
  color: var(--color-white) !important;
  border: none;
  padding: 0.85em 2em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.btn:hover,
button.btn:hover,
.button:hover,
input[type="submit"]:hover {
  background-color: var(--color-green-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-green) !important;
  border: 1.5px solid var(--color-green);
}

.btn--outline:hover {
  background-color: var(--color-green);
  color: var(--color-white) !important;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-green-dark);
  color: var(--color-cream);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-2xl);
  text-align: center;
}

.site-footer a { color: var(--color-pink); }
.site-footer a:hover { color: var(--color-white); }

.site-footer__copyright {
  font-size: 0.85rem;
  color: var(--color-cream-dark);
  margin-top: var(--space-md);
  opacity: 0.7;
}

/* ==========================================================================
   8. Forms (general)
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.75em 1em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-green);
}

label { font-weight: 500; color: var(--color-text); display: block; margin-bottom: 0.4em; }

/* ==========================================================================
   9. Page content
   ========================================================================== */
.page-content {
  padding: var(--space-xl) 0;
}

.page-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* ==========================================================================
   10. Utility
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
