/* Base Styles */
@font-face {
  font-family: "Sperintura";
  src: url("/images/fonts/Sprintura\ Demo.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-color: #c08c33;
  --primary-dark: #a07928;
  --secondary-color: #222;
  --text-color: #333;
  --light-text: #fff;
  --light-bg: #f9f9f9;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --error-color: #f44336;

  --transition: all 0.3s ease;
  --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --border-radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  height: auto;
  display: block;
}

button,
input,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  font-family: Arial, Helvetica, sans-serif;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .container {
    width: 95%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1rem;
  }

  .container {
    width: 100%;
    padding: 0 10px;
  }
}

/* Product Display Section */
.product-section {
  padding: 3rem 0;
  background-color: var(--light-bg);
}

.product-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Product Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: #fff;
  box-shadow: var(--box-shadow);
}

.main-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.main-image:hover img {
  transform: scale(1.02);
}

.thumbnail-container {
  display: flex;
  gap: 1rem;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.thumbnail.active {
  border-color: var(--primary-color);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail:hover {
  transform: translateY(-3px);
}

/* Product Info */
.product-title {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.product-description {
  margin-bottom: 2rem;
  color: #555;
  line-height: 1.7;
}

.product-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-group label {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--secondary-color);
}

/* Custom Select */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select select {
  appearance: none;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: #fff;
  cursor: pointer;
  transition: var(--transition);
  font-family: Arial, Helvetica, sans-serif;
}

.custom-select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(192, 140, 51, 0.2);
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #777;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  font-size: 1.2rem;
  transition: var(--transition);
}

.quantity-btn:hover {
  background-color: #e0e0e0;
}

#quantity {
  width: 60px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  font-weight: 500;
}

/* Add to Cart Button */
.add-to-cart-btn {
  font-family: Arial, Helvetica, sans-serif;
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(192, 140, 51, 0.3);
}

.add-to-cart-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(192, 140, 51, 0.4);
}

.add-to-cart-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(192, 140, 51, 0.3);
}

/* Product Details Tabs */
.product-details {
  padding: 3rem 0;
  background-color: #fff;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.tab {
  padding: 1rem 2rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab:hover {
  color: var(--primary-color);
}

.tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

.features-list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.features-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.features-list li:before {
  content: "✓";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Nutrition Table */
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.nutrition-row {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.nutrition-row.header {
  background-color: #f5f5f5;
  font-weight: 600;
}

.nutrition-cell {
  flex: 1;
  padding: 0.75rem 1rem;
}

/* Reviews */
.review {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.review:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.review-stars {
  color: var(--primary-color);
}

.review-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.review-author {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.75rem;
}

/* Responsive Product Layout */
@media (max-width: 992px) {
  .product-display {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-gallery {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .product-title {
    font-size: 2rem;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab {
    padding: 0.75rem 1rem;
    flex: 1;
    text-align: center;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .product-section {
    padding: 2rem 0;
  }

  .thumbnail-container {
    justify-content: center;
  }

  .product-title {
    font-size: 1.75rem;
  }

  .quantity-selector {
    width: 100%;
  }

  #quantity {
    flex: 1;
  }
}

/* Navigation Styles */
header {
  background-color: #4a2a20;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 15px;
}

.logo {
  flex: 0 0 60px;
}

.logo img {
  width: 100px;
  object-fit: cover;
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  justify-content: center;
}

.nav-links {
  position: absolute;
  left: 60%;
  top: 35%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  list-style: none;
  font-style: italic;
}

.nav-item {
  color: var(--light-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-item:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--light-text);
  transition: var(--transition);
}

.nav-item:hover {
  color: rgba(255, 255, 255, 0.9);
}

.nav-item:hover:after {
  width: 100%;
}

.cart-icon {
  color: var(--light-text);
  font-size: 1.25rem;
  transition: var(--transition);
}

.cart-icon:hover {
  transform: scale(1.1);
}

.menu-toggle {
  display: none;
  color: #fcb231;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #33160d7f;
    text-align: center;
    padding: 1rem 0;
    gap: 1rem;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.4s ease-in-out;
    z-index: 998;
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
  }

  .menu-toggle {
    display: block;
  }

  .cart {
    margin-right: 1rem;
  }
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* Applied Animations */
.main-image img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.add-to-cart-btn {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.add-to-cart-btn:hover {
  animation: pulse 1s infinite;
}

.product-title {
  position: relative;
  display: inline-block;
}

.product-title::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 0;
  transition: width 0.3s ease;
}

.product-title:hover::after {
  width: 100%;
}

.logo img {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.thumbnail {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.thumbnail:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-item {
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.nav-item:hover::before {
  transform: translateX(0);
}

.social-icon {
  overflow: hidden;
  position: relative;
}

.social-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
}

.social-icon:hover::before {
  animation: shimmer 1.5s infinite;
}

.tab-content {
  animation: fadeIn 0.5s ease;
}

/* Cart icon animation */
.cart-icon {
  position: relative;
}

.cart-icon:hover {
  animation: pulse 1s infinite;
}

/* Input focus animations */
input:focus,
select:focus {
  transition: all 0.3s ease;
  box-shadow: 0 0 0 3px rgba(192, 140, 51, 0.2);
}

/* Subscribe button pulse on hover */
.subscribe-btn:hover {
  animation: pulse 2s infinite;
}

/* Newsletter Section */

header .container {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 576px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .social-icons {
    gap: 1rem;
  }
}
