/*
Theme Name: Mediastore
Theme URI: https://example.com/mediastore
Author: Your Name
Description: Custom WooCommerce theme built with PHP templates and custom styling.
Version: 1.0.0
Text Domain: mediastore
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
*/

:root {
  --color-bg: #f4f2ee;
  --color-surface: #ffffff;
  --color-ink: #1a1a1a;
  --color-muted: #555a60;
  --color-accent: #0a6a49;
  --color-accent-dark: #0b553d;
  --color-border: #e5e7eb;
  --container: 1180px;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.6;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
input, button, textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-topbar {
  background: #f6f6f6;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.75rem;
}

.header-topbar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.social-links {
  display: flex;
  gap: 12px;
  color: var(--color-ink);
  letter-spacing: 0.08em;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ink);
  font-weight: 600;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 24px;
}

.site-brand a {
  color: var(--color-ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.primary-nav li {
  position: relative;
}

.primary-nav a {
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: none;
}

.site-main {
  padding: 0 0 60px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  background: #dfe9e4;
  min-height: 460px;
  border-bottom: 1px solid #dfe4de;
}

.slider-track {
  display: flex;
  width: 100%;
  min-height: 460px;
}

.slide {
  min-width: 100%;
  min-height: 460px;
  background-size: cover;
  background-position: center;
  display: none;
}

.slide.active { display: block; }

.slide-one { background: linear-gradient(135deg, rgba(12,87,63,.45), rgba(245,245,245,.12)), url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; }
.slide-two { background: linear-gradient(135deg, rgba(12,87,63,.45), rgba(245,245,245,.12)), url('https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; }
.slide-three { background: linear-gradient(135deg, rgba(12,87,63,.45), rgba(245,245,245,.12)), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; }
.slide-four { background: linear-gradient(135deg, rgba(12,87,63,.45), rgba(245,245,245,.1)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; }
.slide-five { background: linear-gradient(135deg, rgba(12,87,63,.45), rgba(245,245,245,.1)), url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; }
.slide-six { background: linear-gradient(135deg, rgba(12,87,63,.45), rgba(245,245,245,.1)), url('https://images.unsplash.com/photo-1581092160607-ee2279d7e9d1?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; }
.slide-seven { background: linear-gradient(135deg, rgba(12,87,63,.45), rgba(245,245,245,.1)), url('https://images.unsplash.com/photo-1556740749-887f6717d7e4?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  background: rgba(255,255,255,.8);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  color: #111827;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

.intro-section {
  padding: 54px 0 18px;
}

.page-title {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  line-height: 1.12;
  color: #1c1c1c;
  text-align: center;
}

.intro-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.intro-copy p {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.highlight-band {
  background: #f0f0ea;
  border-top: 1px solid #e2dfd8;
  border-bottom: 1px solid #e2dfd8;
  margin-top: 34px;
}

.highlight-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
}

.highlight-inner p {
  margin: 0;
  flex: 1;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.5;
  font-weight: 500;
  color: #1e1e1e;
}

.button,
.woocommerce a.button,
.woocommerce button.button,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
button[type="submit"]:hover {
  background: var(--color-accent-dark);
  text-decoration: none;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  padding-top: 52px;
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 28px 28px 24px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.info-card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 2vw, 2.2rem);
}

.info-card p {
  margin: 0 0 16px;
  color: var(--color-muted);
}

.lead-form {
  display: grid;
  gap: 14px;
}

.field-row {
  display: grid;
  gap: 8px;
}

.field-row label {
  font-weight: 600;
  color: var(--color-ink);
}

.field-row input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
}

.products-preview {
  padding-top: 56px;
}

.section-title {
  margin: 0 0 22px;
  font-size: 2.1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.product-card img {
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f5;
}

.product-card h3 {
  margin: 14px 0 8px;
  font-size: 1.08rem;
}

.product-card .price {
  color: var(--color-accent-dark);
  font-weight: 700;
}

.site-footer {
  background: #111827;
  color: #e5e7eb;
  margin-top: 52px;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 88px;
}

.site-footer a {
  color: #f9fafb;
}

@media (max-width: 900px) {
  .site-header-inner,
  .highlight-inner,
  .site-footer-inner {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .primary-nav ul {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .info-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-topbar-inner,
  .site-header-inner,
  .site-footer-inner,
  .highlight-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .primary-nav ul {
    width: 100%;
    justify-content: space-between;
  }

  .info-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    font-size: 1.6rem;
  }
}
