/* Collection Page Specific Styles */
:root {
  --primary-color: #3a6ea5;
  --secondary-color: #c0392b;
  --light-color: #f8f9fa;
  --dark-color: #000000;
  --red-color: #e62e2d;
  
  /* Typography variables */
  --heading-font: 'Cabinet Grotesk', sans-serif;
  --body-font: 'Roboto', sans-serif;
  --accent-font: 'Montserrat', sans-serif;
}

/* Cabinet Grotesk Font Faces */
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/CabinetGrotesk/CabinetGrotesk-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/CabinetGrotesk/CabinetGrotesk-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/CabinetGrotesk/CabinetGrotesk-Extrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/CabinetGrotesk/CabinetGrotesk-Extralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/CabinetGrotesk/CabinetGrotesk-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/CabinetGrotesk/CabinetGrotesk-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/CabinetGrotesk/CabinetGrotesk-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/CabinetGrotesk/CabinetGrotesk-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

body {
  font-family: var(--body-font);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #dfdfdf;
  color: #333;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
}

p {
  font-family: var(--body-font);
}

/* Navbar styling */
.navbar {
  background-color: var(--dark-color);
  padding: 10px 0;
  position: relative;
  z-index: 100;
}

.navbar-brand img {
  height: 40px;
}

.navbar-nav .nav-link {
  color: white !important;
  margin: 0 15px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  font-family: var(--accent-font);
}

.navbar-nav .nav-link:hover {
  color: var(--red-color) !important;
}

.navbar-nav .nav-link.active {
  color: var(--red-color) !important;
  font-weight: 500;
}

/* Sidenav styling */
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1002;
  top: 0;
  left: 0;
  background-color: var(--dark-color);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenav a {
  padding: 15px 25px;
  text-decoration: none;
  font-size: 16px;
  color: white;
  display: block;
  transition: 0.3s;
  text-transform: uppercase;
  font-family: var(--accent-font);
}

.sidenav a:hover {
  color: var(--red-color);
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

.sidenav-logo {
  padding: 15px 25px;
  margin-bottom: 20px;
}

.sidenav-logo img {
  height: 40px;
}

/* Toggle button for mobile */
.navbar-toggler {
  border: none;
  color: white;
  font-size: 24px;
}

/* Hide desktop nav on mobile/tablet */
@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }
}

/* Hide mobile toggle on desktop */
@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

/* Screen visibility classes */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 576px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
}

/* Main content section */
.main-content {
  width: 100%;
  position: relative;
}

/* Collection Hero Section Styles */
.collection-hero-section {
  position: relative;
  max-height: 800px;
  background-color: #000;
}

.collection-hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}

.collection-black-box {
  flex: 1;
  background-color: var(--dark-color);
}

.collection-image-box {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.collection-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.collection-title {
  font-family: var(--heading-font);
  font-size: 8rem;
  font-weight: 700;
  color: white;
  text-align: center;
  line-height: 1;
}

/* Products Section Styles */
.products-section {
  padding: 80px 0;
  position: relative;
}

.collection-products-section {
  background-color: #dfdfdf;
  padding: 80px 0 80px;
  padding-top: 100px; /* Default padding for desktop */
  position: relative;
}

.section-title {
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  margin-top: 40px; /* Added margin to match index page */
  color: #000;
}

.product-card {
  margin-bottom: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: white;
  border: 1px solid #999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: none;
}

.product-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card .product-image-container {
  height: 200px;
  border-bottom: 1px solid #999;
  overflow: hidden;
}

.product-card .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card .product-image-container:hover .product-image {
  transform: scale3d(1.1, 1.1, 1.1);
}

.product-category {
  font-size: 0.8rem;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-family: var(--body-font);
}

.product-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #000;
  font-family: var(--heading-font);
}

.product-description {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.4;
  flex-grow: 1;
  font-family: var(--body-font);
}

.product-button {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 8px 20px;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  align-self: flex-start;
  margin-top: auto;
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
  font-family: var(--accent-font);
}

.product-button:hover {
  background-color: #333;
  color: #fff;
  text-decoration: none;
}

/* Contact Form Styling - UPDATED to match index page */
.contact-form {
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  z-index: 50;
}

.form-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  background-color: rgba(0, 0, 0, 0.9);
}

.form-text {
  color: white;
  font-size: 1.2rem;
  margin-right: 20px;
  flex: 0 0 30%;
}

.form-text p {
  font-family: var(--body-font);
  margin-bottom: 0;
}

.form-inputs {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 70%;
  gap: 10px;
}

.form-inputs input,
.form-inputs button {
  height: 40px;
  border-radius: 0;
  border: none;
  font-family: var(--body-font);
}

.form-inputs input {
  flex: 1;
  min-width: 150px;
  padding: 0 15px;
  background-color: #333;
  color: white;
}

.form-inputs button {
  background-color: white;
  color: #000;
  padding: 0 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
  min-width: 120px;
  font-family: var(--accent-font);
}

.form-inputs button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Categories Section */
.categories-section {
  background-color: #f5f5f5;
  padding: 60px 0;
}

.categories-title {
  text-align: center;
  margin-bottom: 40px;
  color: #333;
  font-size: 32px;
  font-family: var(--heading-font);
}

.category-title {
  font-size: 22px;
  color: #333;
  margin-bottom: 12px;
  font-family: var(--heading-font);
}

.category-description {
  font-family: var(--body-font);
}

.view-collection {
  font-family: var(--accent-font);
}

/* Best Sellers Section */
.best-sellers-section {
  background-color: #dfdfdf;
  padding: 80px 0;
}

.best-sellers-section .container {
  max-width: 1200px;
}

.best-sellers-section .row {
  justify-content: center;
}

.best-sellers-section .product-image-container {
  height: 180px;
}

.best-sellers-section .product-title {
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.best-sellers-section .product-category {
  font-size: 0.7rem;
}

.best-sellers-section .product-description {
  font-size: 0.8rem;
  color: #666;
  height: 85px;
  overflow: hidden;
}

/* Contact/Footer Section Styles */
.contact-section {
  background-color: #000;
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.contact-title {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1;
  font-family: var(--heading-font);
}

.contact-subtitle {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-family: var(--body-font);
}

.contact-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-family: var(--body-font);
}

.footer-form {
  max-width: 500px;
  margin: 0 auto 60px;
}

.contact-input {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 10px 0;
  margin-bottom: 30px;
  font-size: 1rem;
  text-align: center;
  font-family: var(--body-font);
}

.contact-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-family: var(--accent-font);
}

.contact-input:focus {
  outline: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.subscribe-button {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 10px 30px;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--accent-font);
}

.subscribe-button:hover {
  background-color: #fff;
  color: #000;
}

.contact-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 100px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--accent-font);
}

.contact-info-item {
  flex: 1;
  text-align: center;
}

/* Alert Container */
.alert-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  width: 90%;
  max-width: 600px;
  font-family: var(--body-font);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  body {
    font-size: 15px;
  }
  
  .best-sellers-section .col-lg {
    max-width: 220px;
  }

  .contact-title {
    font-size: 4.5rem;
  }
}

@media (max-width: 991px) {
  body {
    font-size: 14px;
  }
  
  .collection-hero-container {
    flex-direction: column;
  }

  .collection-black-box,
  .collection-image-box {
    width: 100%;
    height: 300px;
  }

  .collection-title {
    font-size: 5rem;
  }
  
  .collection-products-section {
    padding-top: 270px; /* INCREASED padding for tablet to fix form overlap */
  }
  
  .section-title {
    margin-top: 30px; /* Adjusted to work with the increased padding */
    font-size: 2.5rem;
    margin-bottom: 30px;
  }
  
  /* Form responsive styles to match index page */
  .form-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .form-text {
    margin-bottom: 15px;
    flex: 0 0 100%;
    font-size: 1.1rem;
    width: 100%;
  }

  .form-inputs {
    flex: 0 0 100%;
    width: 100%;
  }
  
  .form-inputs button {
    min-width: 100px;
    font-size: 0.85rem;
  }
  
  .product-card {
    margin-bottom: 20px;
  }

  /* Product cards for tablet - 2 per row */
  .collection-products-section .col-md-6,
  .best-sellers-section .col-md-6 {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }

  .best-sellers-section .col-lg {
    max-width: none;
  }

  .best-sellers-section .product-description {
    height: auto;
    max-height: 85px;
  }

  .product-card .product-image-container {
    height: 180px;
  }
  
  .product-button {
    min-width: 110px;
    font-size: 0.75rem;
    padding: 8px 15px;
  }

  .contact-title {
    font-size: 3.5rem;
  }
  
  .contact-subtitle, 
  .contact-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 13px;
  }
  
  .collection-title {
    font-size: 4rem;
  }
  
  /* Form styles for mobile/tablet - match index page */
  .form-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }
  
  .form-text {
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
  }
  
  .form-inputs {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .form-inputs input, 
  .form-inputs button {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .collection-products-section {
    padding-top: 280px; /* Slightly increased for smaller tablets */
  }
  
  .contact-info {
    flex-direction: column;
    gap: 20px;
  }
  
  .contact-title {
    font-size: 3.2rem;
  }
  
  .contact-subtitle, 
  .contact-description {
    font-size: 1rem;
  }
  
  .categories-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .category-title {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .category-description {
    font-size: 13px;
    margin-bottom: 12px;
  }
}

/* Mobile view (stack to single column) */
@media (max-width: 576px) {
  body {
    font-size: 12px;
  }
  
  .collection-title {
    font-size: 3.2rem;
  }
  
  .collection-black-box {
    height: 200px;
  }
  
  .collection-image-box {
    height: 300px;
  }
  
  .collection-products-section {
    padding-top: 300px; /* Further increased padding for mobile */
  }
  
  .section-title {
    margin-top: 20px; /* Adjusted margin-top since we have more padding */
    font-size: 2.4rem;
  }
  
  /* Product cards for mobile - 1 per row */
  .collection-products-section .col-sm-6,
  .best-sellers-section .col-sm-6 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .collection-products-section .product-image-container,
  .best-sellers-section .product-image-container {
    height: 220px;
  }

  .collection-products-section .product-title {
    font-size: 1.1rem;
  }

  .best-sellers-section .product-title {
    font-size: 1rem;
  }

  .collection-products-section .product-description {
    font-size: 0.85rem;
  }

  .best-sellers-section .product-description {
    font-size: 0.85rem;
    height: auto;
    max-height: none;
  }

  .product-button {
    font-size: 0.7rem;
    padding: 6px 10px;
    min-width: 100px;
  }
  
  /* Form mobile adjustments to match index */
  .form-container {
    padding: 15px;
  }
  
  .form-text p {
    margin-bottom: 0;
  }
  
  .form-inputs input, 
  .form-inputs button {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .categories-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .category-item {
    flex-direction: column;
  }
  
  .category-image, .category-no-image {
    width: 100%;
    height: 180px;
  }
  
  .category-content {
    padding: 16px;
  }
  
  .view-collection {
    width: 100%;
    text-align: center;
    padding: 10px;
  }
  
  /* Footer adjustments */
  .contact-title {
    font-size: 2.6rem;
  }

  .contact-subtitle,
  .contact-description {
    font-size: 0.9rem;
  }
}

/* Very small mobile devices */
@media (max-width: 400px) {
  .collection-products-section {
    padding-top: 320px; /* Extra padding for very small devices */
  }
}