/* Base styles for Protest Shop */
/* Import a modern sans‑serif font reminiscent of fashion retailers.
   Montserrat provides a clean, geometric feel similar to the typography
   used on AJIO.  If Google Fonts is unavailable, the browser will
   gracefully fall back to system fonts. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');
:root {
  /* Monochrome palette for PROTEST KARO.  The site uses only black
     and white tones to create a stark, modern aesthetic inspired by
     minimalist fashion sites.  Primary elements are solid black
     while secondary backgrounds and cards use light greys for
     subtle separation. */
  --primary-color: #000000;       /* pure black */
  --accent-color: #111111;        /* near black for buttons and highlights */
  --highlight-color: #444444;     /* dark grey for hover effects */
  --background-color: #ffffff;    /* white background */
  --card-background: #f7f7f7;     /* very light grey for cards */
  --text-color: #000000;          /* black text */
  --secondary-text: #555555;      /* mid‑grey for secondary text */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  /* Use a larger padding and invert the colour scheme for the header */
  background-color: var(--primary-color);
  color: var(--background-color);
  padding: 1.5rem 0;
}

/* Hero / banner section.  This section uses the uploaded backdrop (hero.jpg)
   as a full-width background at the top of the page.  It ensures the image
   covers its container and positions any content centrally. */
.hero-section {
  width: 100%;
  height: 400px;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Apply grayscale and slight brightness adjustment for monochrome feel */
  filter: grayscale(1) brightness(0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
}

/* Slideshow styles */
.slideshow {
  width: 100%;
  height: 380px;
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
  border-radius: 8px;
}

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Elevate the site title with a larger font size and heavier weight */
.site-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Logo styles */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  height: 40px;
  width: auto;
}

.category-nav {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-nav button {
  background-color: var(--background-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.45rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* When a category button is active or hovered, invert colours */
.category-nav button.active,
.category-nav button:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
  border-color: var(--primary-color);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.product-card {
  background-color: var(--card-background);
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 260px;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--secondary-text);
  text-align: center;
  padding: 0.5rem;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
}

.product-info {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  margin: 0 0 0.4rem 0;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-color);
}

/* Price text for products */
.product-price {
  margin: 0.1rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Contact information shown in the custom prints form */
.contact-info {
  margin: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--secondary-text);
}

.shop-button {
  margin-top: auto;
  display: block;
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: var(--background-color);
  text-align: center;
  padding: 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.shop-button:hover {
  background-color: var(--background-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Custom Print form styles */
.custom-form {
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-form h2 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.custom-form p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.custom-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.custom-form label {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
}

.custom-form input[type="text"],
.custom-form input[type="file"],
.custom-form select {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.custom-form .color-options {
  display: flex;
  gap: 1rem;
}

.custom-form .color-options label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-color);
}

.custom-form button {
  align-self: flex-start;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.custom-form button:hover {
  background-color: var(--accent-color);
}

/* Featured products section styles */
.featured-section {
  width: 100%;
  margin: 3rem 0;
}

.featured-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
}

.featured-subtitle {
  margin: 0.5rem 0 1.5rem 0;
  font-size: 0.95rem;
  color: var(--secondary-text);
  text-align: center;
}

.featured-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

/* Hide default scrollbar in WebKit browsers */
.featured-carousel::-webkit-scrollbar {
  display: none;
}

.featured-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background-color: var(--card-background);
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.featured-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  filter: grayscale(0.2);
}

.featured-caption {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.featured-name {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-color);
  text-align: center;
}

.featured-price {
  margin: 0;
  font-size: 0.95rem;
  color: var(--primary-color);
  text-align: center;
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Dashboard styles */
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.dashboard-section h2 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
}

.form-inline {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.form-inline input[type="text"],
.form-inline input[type="url"],
.form-inline input[type="file"],
.form-inline button {
  padding: 0.5rem;
  font-size: 1rem;
}

.form-inline button {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.form-inline button:hover {
  background-color: var(--accent-color);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

.form-grid label {
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.form-grid input,
.form-grid select {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
}

.form-grid button.full-width {
  grid-column: 1 / -1;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.form-grid button.full-width:hover {
  background-color: var(--accent-color);
}

.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.import-status {
  margin-top: 0.5rem;
  font-style: italic;
  font-size: 0.9rem;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-nav .nav-link {
  color: #ffffff;
  text-decoration: none;
  background-color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.dashboard-nav .nav-link:hover {
  background-color: #d23238;
}