/* APRA Cattle Co. - Western Ranch Theme */

:root {
  /* Brand Colors */
  --brown-dark: #3d2817;
  --brown-medium: #6b4423;
  --brown-light: #a67c52;
  --tan: #d4a574;
  --cream: #f5e6d3;
  --blue-accent: #9dcfd8;
  --peach-accent: #f4b69f;
  --yellow-accent: #e8e8b8;
  --gray-accent: #b8b8a8;
  --red: #8b1a1a;
  --black: #1a1a1a;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  color: var(--black);
  background: var(--cream);
  line-height: 1.6;
}

/* Header */
.header {
  background: var(--brown-dark);
  border-bottom: 4px solid var(--tan);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--tan);
  text-decoration: none;
  font-family: 'Times New Roman', serif;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.logo span {
  color: var(--cream);
  font-size: 0.7rem;
  display: block;
  letter-spacing: 4px;
  margin-top: -5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--tan);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tan);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.cart-icon {
  position: relative;
  font-size: 1.3rem;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Hero Section */
.hero {
  background: url('../images/hero-longhorn.jfif') center/cover no-repeat;
  background-size: cover;
  background-position: center center;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 40px 20px;
  position: relative;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 20px;
  text-shadow: 3px 3px 8px rgba(0,0,0,0.7);
  font-family: 'Times New Roman', serif;
  letter-spacing: 3px;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 35px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--brown-medium);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  transition: all 0.3s;
  border: 2px solid var(--tan);
  cursor: pointer;
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background: var(--tan);
  color: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Sections */
section {
  max-width: 1400px;
  margin: 60px auto;
  padding: 0 40px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 3rem;
  color: var(--brown-dark);
  margin-bottom: 10px;
  font-family: 'Times New Roman', serif;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--tan);
}

.section-title p {
  color: var(--brown-medium);
  font-size: 1.2rem;
  margin-top: 20px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid var(--tan);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.product-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--blue-accent), var(--peach-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.product-info {
  padding: 25px;
}

.product-info h3 {
  font-size: 1.5rem;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

.product-info p {
  color: var(--brown-medium);
  margin-bottom: 15px;
  line-height: 1.5;
}

.product-price {
  font-size: 1.8rem;
  color: var(--red);
  font-weight: bold;
  margin-bottom: 15px;
}

.product-options {
  margin-bottom: 20px;
}

.product-options label {
  display: block;
  margin-bottom: 8px;
  color: var(--brown-dark);
  font-weight: bold;
}

.product-options select {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--tan);
  border-radius: 5px;
  font-size: 1rem;
  background: white;
  color: var(--brown-dark);
}

.btn-add-cart {
  width: 100%;
  padding: 15px;
  background: var(--brown-medium);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.btn-add-cart:hover {
  background: var(--brown-dark);
  transform: scale(1.02);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--brown-dark);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--brown-medium);
  margin-bottom: 20px;
}

.about-image {
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, var(--brown-light), var(--tan));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  color: white;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border: 2px solid var(--tan);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--brown-dark);
  font-weight: bold;
  font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--tan);
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Georgia', serif;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Cart Page */
.cart-items {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border: 2px solid var(--tan);
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid var(--cream);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--blue-accent), var(--peach-accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
}

.cart-item-details h3 {
  font-size: 1.3rem;
  color: var(--brown-dark);
  margin-bottom: 5px;
}

.cart-item-details p {
  color: var(--brown-medium);
}

.cart-item-qty input {
  width: 70px;
  padding: 8px;
  border: 2px solid var(--tan);
  border-radius: 5px;
  text-align: center;
  font-size: 1rem;
}

.cart-item-price {
  font-size: 1.5rem;
  color: var(--red);
  font-weight: bold;
}

.btn-remove {
  padding: 8px 15px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-remove:hover {
  background: darkred;
}

.cart-summary {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border: 2px solid var(--tan);
  max-width: 400px;
  margin-left: auto;
}

.cart-summary h3 {
  font-size: 1.8rem;
  color: var(--brown-dark);
  margin-bottom: 20px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--cream);
  font-size: 1.2rem;
}

.cart-total.final {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--red);
  border-bottom: none;
  margin-top: 15px;
}

/* Footer */
.footer {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 60px 40px 30px;
  margin-top: 80px;
  border-top: 4px solid var(--tan);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--tan);
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-family: 'Times New Roman', serif;
}

.footer-section p,
.footer-section a {
  color: var(--cream);
  text-decoration: none;
  line-height: 2;
  display: block;
}

.footer-section a:hover {
  color: var(--tan);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--brown-medium);
  color: var(--tan);
}

/* Empty State */
.empty-cart {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.empty-cart-icon {
  font-size: 6rem;
  color: var(--gray-accent);
  margin-bottom: 20px;
}

.empty-cart h2 {
  font-size: 2rem;
  color: var(--brown-dark);
  margin-bottom: 15px;
}

.empty-cart p {
  font-size: 1.2rem;
  color: var(--brown-medium);
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .cart-summary {
    margin: 0;
  }
}
