@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --primary: #ff4b2b; /* Primary color from frontend */
  --primary-dark: #e63e20;
  --primary-light: #ff7a3c; /* Light variant from frontend */
  --secondary: #111827; /* Secondary color from frontend */
  --accent: #ff7a3c; /* Using primary-light as accent */
  --text: #111827; /* Using secondary as text color */
  --text-light: #6b7280;
  --background: rgb(245, 247, 251); /* From frontend globals.css */
  --background-alt: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.10); /* From frontend boxShadow */
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-style: normal;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem; /* px-4 = 1rem */
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

/* Header styles */
.site-header {
  background-color: #ffffff;
  padding: 1rem 0; /* py-4 */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
  margin-bottom: 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left .logo {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700; /* font-bold */
  color: #1f2937; /* text-gray-800 */
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem; /* space-x-4 */
}

.icon-button {
  background: none;
  border: none;
  color: #4b5563; /* text-gray-600 */
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-button i {
  font-size: 1.5rem; /* size={24} */
}

.icon-button:hover {
  color: var(--primary); /* hover:text-primary */
}

.cart-button-icon {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -0.5rem; /* -top-2 */
  right: -0.5rem; /* -right-2 */
  background-color: var(--primary); /* bg-primary */
  color: white;
  font-size: 0.75rem; /* text-xs */
  border-radius: 9999px; /* rounded-full */
  height: 1.25rem; /* h-5 */
  width: 1.25rem; /* w-5 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-only {
  display: none;
}

@media (min-width: 640px) { /* sm breakpoint */
  .desktop-only {
    display: block;
  }
}

.mobile-only {
  display: block;
}

@media (min-width: 768px) { /* md breakpoint */
  .mobile-only {
    display: none;
  }
}

/* Hero Banner */
.hero-banner {
  position: relative;
  width: 100%;
  height: 400px; /* h-[400px] */
  border-radius: 0.75rem; /* rounded-xl */
  overflow: hidden;
  margin-bottom: 2rem; /* mb-8 */
}

@media (min-width: 768px) {
  .hero-banner {
    height: 500px; /* md:h-[500px] */
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #e5e7eb; /* Light gray base color */
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent); /* from-black/70 to-transparent */
}

.hero-overlay {
  display: none; /* Gradient is now handled by hero-bg */
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem; /* p-8 */
  max-width: 28rem; /* max-w-md */
}

@media (min-width: 768px) {
  .hero-content {
    padding: 3rem; /* md:p-12 */
  }
}

.hero-badge {
  display: inline-block;
  background-color: var(--primary); /* bg-primary */
  color: white;
  padding: 0.25rem 1rem; /* px-4 py-1 */
  border-radius: 9999px; /* rounded-full */
  font-size: 0.875rem; /* text-sm */
  font-weight: 500; /* font-medium */
  margin-bottom: 1rem; /* mb-4 */
  width: fit-content;
}

.hero-title {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 700; /* font-bold */
  color: white;
  margin-bottom: 1rem; /* mb-4 */
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.25rem; /* md:text-4xl */
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem; /* lg:text-5xl */
  }
}

.hero-description {
  color: rgba(255, 255, 255, 0.9); /* text-white/90 */
  margin-bottom: 1.5rem; /* mb-6 */
  font-size: 1rem; /* text-base */
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.125rem; /* md:text-lg */
  }
}

.hero-button {
  display: inline-block;
  background-color: white;
  color: #111827; /* text-gray-900 */
  padding: 0.75rem 1.5rem; /* px-6 py-3 */
  border-radius: 9999px; /* rounded-full */
  font-weight: 500; /* font-medium */
  transition: background-color 0.2s;
  text-decoration: none;
  width: fit-content;
  border: none;
}

.hero-button:hover {
  background-color: #f3f4f6; /* hover:bg-gray-100 */
}

/* Categories Section */
.categories-section {
  margin-bottom: 2rem; /* mb-8 */
}

.section-title {
  font-size: 1.25rem; /* text-xl */
  font-weight: 700; /* font-bold */
  margin-bottom: 1rem; /* mb-4 */
  color: #111827;
  text-align: left;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* gap-2 */
}

.category-button {
  padding: 0.5rem 1rem; /* px-4 py-2 */
  border-radius: 9999px; /* rounded-full */
  font-size: 0.875rem; /* text-sm */
  font-weight: 500; /* font-medium */
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  background-color: #f3f4f6; /* bg-gray-100 */
  color: #374151; /* text-gray-700 */
}

.category-button:hover {
  background-color: #e5e7eb; /* hover:bg-gray-200 */
}

.category-button.active {
  background-color: var(--primary); /* bg-primary */
  color: white;
}

/* Products Section */
.products-section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background-color: #111827; /* bg-gray-900 */
  color: white;
  padding: 3rem 0 1.5rem; /* pt-12 pb-6 */
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem; /* gap-8 */
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr); /* md:grid-cols-2 */
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr); /* lg:grid-cols-4 */
  }
}

.footer-title {
  font-size: 1.125rem; /* text-lg (for h3) / text-xl (for company name) */
  font-weight: 600; /* font-semibold / font-bold */
  margin-bottom: 1rem; /* mb-4 */
  color: white;
}

.footer-column:first-child .footer-title {
  font-size: 1.25rem; /* text-xl */
  font-weight: 700; /* font-bold */
}

.footer-description {
  color: #9ca3af; /* text-gray-400 */
  margin-bottom: 1rem; /* mb-4 */
  font-size: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem; /* space-x-4 */
}

.social-icon {
  background: none;
  border-radius: 0;
  width: auto;
  height: auto;
  color: #9ca3af; /* text-gray-400 */
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem; /* size={20} approx */
}

.social-icon:hover {
  color: white; /* hover:text-white */
  background: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* space-y-2 */
}

.footer-links a {
  color: #9ca3af; /* text-gray-400 */
  transition: color 0.2s;
  font-size: 1rem;
}

.footer-links a:hover {
  color: white; /* hover:text-white */
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* space-y-3 */
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  color: #9ca3af; /* text-gray-400 */
  font-size: 1rem;
  gap: 0.75rem;
}

.contact-info i {
  color: #9ca3af; /* text-gray-400 */
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid #1f2937; /* border-t border-gray-800 */
  margin-top: 2rem; /* mt-8 */
  padding-top: 1.5rem; /* pt-6 */
  text-align: center;
  color: #6b7280; /* text-gray-500 */
  font-size: 0.875rem; /* text-sm */
}

.sort-select {
  appearance: none;
  background-color: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/** Product card style **/
.product-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.product-card {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1em;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card__container {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  box-sizing: border-box;
}

.product-card__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.product-card__main-image img {
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-card__details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.product-card__price {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.product-card__view-button {
  background-color: #e63e20;
  color: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #e63e20;
  cursor: pointer;
  margin-top: 10px;
}

.product-card__view-button:hover {
  background: #ff4b2b;
  color: #ffffff;
  border: 2px solid #ffffff;
}

/** Modal styles **/
.product-modal {
  padding: 0;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 0;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
}

.product-modal::backdrop {
  background-color: rgba(156, 163, 175, 0.5);
}

.product-modal__container {
  position: relative;
  overflow-x: hidden;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .product-modal__container {
    padding: 2rem;
  }
}

.product-modal__close-container {
  display: grid;
  justify-items: end;
  justify-content: end;
  margin-left: 0;
  padding-bottom: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.product-modal__close {
  border-radius: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  cursor: pointer;
  background-color: #f1f1f1;
  transition: background-color 0.3s ease;
}

.product-modal__close:hover {
  background-color: #e0e0e0;
}

.product-modal__content {
  width: 100%;
  background-color: #ffffff;
  border-radius: 0.75rem;
  max-width: 54rem;
  min-width: auto;
}

.product-modal__layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .product-modal__layout {
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
  }
}

.product-modal__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
}

shopify-media {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.product-modal__media img {
  border-radius: 0.25rem;
  width: 100%;
}

.product-modal__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  flex: 1;
}

.product-modal__header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-modal__vendor {
  opacity: 0.5;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.product-modal__title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
}

.product-modal__price-container {
  display: flex;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 1.25rem;
}

.product-modal__compare-price {
  text-decoration: line-through;
  opacity: 0.5;
}

.product-modal__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-modal__buttons button {
  font-size: 0.875rem;
  font-weight: 800;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  border: 2px solid black;
  text-transform: uppercase;
}

.product-modal__add-button {
  background-color: #000000;
  color: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 18px;
  font-weight: 500;
  width: 100%;
}

.product-modal__add-button:hover {
  background: #ffffff;
  color: #000000;
  border: 2px solid black;
}

.product-modal__add-button:disabled {
  opacity: 0.3;
}

.product-modal__buy-button {
  background-color: #ffffff;
  color: #000000;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 18px;
  font-weight: 500;
  width: 100%;
}

.product-modal__buy-button:disabled {
  opacity: 0.3;
}

.product-modal__buy-button:hover {
  opacity: 0.3;
}

.product-modal__description-text {
  font-weight: 400;
  color: #717171;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.product-modal__description-text p {
  margin: 0;
}

/* Features Section */
.features-section {
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--background-alt);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 9999px;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-description {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  background-color: var(--background-alt);
  padding: 4rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.footer-description {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 9999px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary);
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.contact-info i {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Media Queries */
@media (min-width: 768px) {
  .header-center {
    display: block;
  }
  
  .search-container {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .category-filter {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .product-modal__title {
    font-size: 1.75rem;
  }
}
