/*
Theme Name: Caesarstone
Theme URI: https://example.com/caesarstone
Author: Caesarstone Team
Author URI: https://example.com
Description: A PSR-4-compliant WordPress theme with custom post types, taxonomies, and ACF-based templates.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: caesarstone
Tags: custom-post-types, acf, psr-4
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

@font-face {
  font-family: 'Frutiger';
  src: url('./assets/fonts/Frutiger-Light.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Frutiger';
  src: url('./assets/fonts/Frutiger-Roman.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PublicoBannerLight';
  src: url('./assets/fonts/publico-banner-light-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Base styles */
:root {
  --white: #fff;
  --black: #000;
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #ffb93b;
  --light-gray: #f9f9f9;
  --medium-gray: #e1dede;
  --gray: #a09d9d;
  --dark-gray: #333;
  --text-color: #5b5757;
  --secondary-text-color: #7a7474;
  --heading-color: #161413;
  --link-color: #3498db;
  --link-hover-color: #2980b9;
  --border-radius: 5px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --font-family: 'Frutiger', sans-serif;
  --font-family-accent: 'PublicoBannerLight', sans-serif;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-color);
  background-color: var(--light-gray);
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-accent);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

h1 {
  font-size: 2rem;
}
@media (min-width: 1200px) {
  h1 {
    font-size: 3.5555rem;
  }
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--link-hover-color);
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.container {
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.container {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1350px;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  padding: 0 15px;
  margin-bottom: 30px;
  width: 100%;
}

.col-md-3 {
  width: 25%;
}

.col-md-4 {
  width: 33.333%;
}

.col-md-6 {
  width: 50%;
}

.col-md-8 {
  width: 66.667%;
}

.col-md-12 {
  width: 100%;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

.site-content {
  flex-grow: 1;
}

/* Header */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid var(--medium-gray);
  padding: 20px 0;
  position: relative;
  z-index: 100;
}

.site-content > *:not(.breadcrumbs) {
  margin-top: 40px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media (max-width: 1199px) {
  .site-header .container {
    max-width: 100%;
  }
}

.site-header .logo img {
  display: block;
}

.site-branding {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.site-title {
  font-size: 1.8rem;
  margin: 0;
}

.site-description {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

/* Header Search */
.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 30px;
}

.header-search {
  position: relative;
  max-width: 620px;
  margin-bottom: 16px;
}

.header-right .header-search {
  display: none;
}
@media (min-width: 1200px) {
  .header-right .header-search {
    display: block;
  }
}

.search-form {
  display: flex;
  align-items: center;
}

.search-field {
  padding: 12px 40px 12px 12px;
  border: 1px solid var(--medium-gray);
  font-size: 0.9rem;
  width: 100%;
  transition: var(--transition);
  border-radius: 2px;
}

.search-field:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-submit {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background: transparent;
  border: none;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--dark-gray);
  transition: var(--transition);
}

.search-submit:hover {
  color: var(--secondary-color);
}

.search-submit svg {
  width: 16px;
  height: 16px;
}

body.no-scroll,
html.no-scroll {
  overflow: hidden;
}

/* Navigation */
.main-navigation {
  width: 300px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 80px 20px;
  height: 100vh;
  right: -100%;
  opacity: 0;
  top: 0;
  z-index: 3;
  background-color: #fff;
  position: absolute;
  box-shadow: var(--box-shadow);
  transition: right 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.main-navigation.active {
  right: 0;
  opacity: 1;
}

@media (min-width: 1200px) {
  .main-navigation {
    flex-direction: row;
    margin-top: 0;
    width: auto !important;
    position: relative;
    right: auto;
    top: auto;
    background-color: transparent;
    z-index: 0;
    height: auto;
    opacity: 1;
    padding: 0;
    box-shadow: none;
  }
  .main-navigation .header-search {
    display: none;
  }
}

.main-navigation ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
}

@media (min-width: 1200px) {
  .main-navigation ul {
    align-items: center;
    flex-direction: row;
    gap: 30px;
  }
}

.main-navigation a {
  position: relative;
  display: block;
  padding: 4px 0;
  color: var(--heading-color);
  font-weight: 400;
  font-size: 0.9rem;
}

.main-navigation a:hover {
  color: var(--heading-color);
}

.main-navigation a:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  opacity: 0;
  background-color: var(--heading-color);
  transition: var(--transition);
}

.main-navigation a:hover:before {
  width: 100%;
  opacity: 1;
}

.current-menu-item > a {
  color: var(--heading-color);
  font-weight: 400;
}
.current-menu-item > a:before {
  width: 100%;
  opacity: 1;
}

/* BERGER */
.menu-toggle {
  position: relative;
  width: 34px;
  height: 34px;
  z-index: 15;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 0 0 auto;
  padding: 0;
  background-color: transparent;
  border: none;
}

@media (min-width: 1200px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 34px;
  height: 2px;
  background-color: #000;
  border-radius: 5px;
  position: relative;
  transition: all 0.3s ease;
}

.menu-toggle span:before,
.menu-toggle span:after {
  content: '';
  position: absolute;
  width: 34px;
  height: 2px;
  background: #000;
  border-radius: 5px;
  transition: all 0.3s ease;
  left: 0;
}

.menu-toggle span:before {
  transform: translate(0, -8px);
}

.menu-toggle span:after {
  z-index: 1;
  transform: translate(0, 8px);
}

.menu-toggle.active span {
  background-color: transparent;
  transition: none;
}
.menu-toggle.active span:before {
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu-toggle.active span:after {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Content area */
.content-area {
  padding: 40px 0;
}

.page-title {
  margin-bottom: 40px;
}

.archive-description {
  margin-bottom: 32px;
}
.archive-description p {
  margin-bottom: 0;
}
.archive-description p + p {
  margin-top: 1em;
}

/* Card layout styles */
.category-card,
.card,
.entry-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover,
.entry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.entry-card-inner {
  display: flex;
  flex-direction: column;
}

.product-label {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.product-label .tag-item {
  font-size: 12px;
  font-weight: 400;
  padding: 3px 8px;
  text-align: center;
  width: max-content;
  max-width: 100%;
  background-color: var(--accent-color);
  border-radius: 12px;
  text-transform: uppercase;
}

.card .card-image-link .product-label,
.entry-card .card-image-link ~ .product-label,
.category-card .product-label,
.home-button-card .product-label {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
  justify-content: flex-end;
}

.home-button-card .product-label{
  z-index: 100;
  right: 15px;
  top: 15px;
}

.category-card .product-label{
  top: 15px;
  right: 15px;
  color: black;
}

.card .product-label,
.entry-card .product-label {
  width: 100%;
  padding: 30px 24px 0;
  z-index: 1;
}

.card-image-link {
  display: block;
  color: black;
}
.card-image-link:hover {
  color: black;
}

.card-image,
.entry-card-image {
  display: block;
  position: relative;
  overflow: hidden;
}

.card-image,
.entry-card-image,
.card-image img,
.entry-card-image img {
  height: 380px;
  width: 100%;
  object-fit: cover;
  transition: var(--transition);
}

@media (min-width: 1200px) {
  .card-image,
  .entry-card-image {
    height: 460px;
  }
}

.card:hover .card-image img,
.entry-card:hover .entry-card-image img {
  transform: scale(1.05);
}

.card-content,
.entry-card-content {
  margin-top: 25px;
  padding: 15px;
  text-align: center;
}

.card-content .card-description table{
  margin: 0 auto;
}

.card-title,
.entry-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 400;
}

.card-title a,
.entry-title a {
  color: var(--heading-color);
}

.card-title a:hover,
.entry-title a:hover {
  color: var(--accent-color);
}

.card-subtitle {
  margin-top: 0;
  font-size: 1rem;
}
.read-more-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 400;
  transition: var(--transition);
}

.read-more-link:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Nav links */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.nav-links .page-numbers {
  color: #a09d9d;
  min-width: 16px;
  text-align: center;
  transition: var(--transition);
}

.nav-links .page-numbers:hover {
  color: var(--accent-color);
}

.nav-links .page-numbers.current {
  pointer-events: none;
  font-weight: 400;
  color: var(--heading-color);
}

.nav-links .prev,
.nav-links .next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-links .prev svg,
.nav-links .next svg {
  fill: var(--heading-color);
  display: block;
  line-height: 1;
  transition: var(--transition);
}
.nav-links .prev:hover,
.nav-links .next:hover {
  background-color: var(--accent-color);
}
.nav-links .prev:hover svg,
.nav-links .next:hover svg {
  fill: var(--white);
}

/* Gallery styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 15px;
  margin-bottom: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  padding: 50px 0;
}

.modal-content {
  display: block;
  margin: 0 auto;
  max-width: 80%;
  max-height: 80vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  padding: 16px;
  user-select: none;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

/* Category Grid */

.category-card:not(.show-all) {
  transition: var(--transition);
  overflow: hidden;
}

.category-card:not(.show-all):hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card:not(.show-all) a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 15px;
}

.category-image {
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--medium-gray);
  margin: -15px -15px 40px;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .category-image {
    height: 460px;
  }
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  color: white;
  margin: 0 auto 15px;
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  text-align: center;
}

.category-count {
  color: var(--medium-gray);
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
}

.back-to-categories .category-icon,
.show-all .category-icon {
  background-color: var(--secondary-color);
}

.category-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
}

.category-description {
  margin-top: 10px;
  color: var(--dark-gray);
}

.category-card.show-all {
  display: flex;
  justify-content: center;
}

.category-card.show-all .button {
}

/* Product and Sample Info Grids */
.category-grid,
.product-grid,
.sample-info-grid {
  margin-bottom: 40px;
}

/* Home Page Buttons */
.home-buttons-grid {
  margin: 30px 0;
}

.home-button-card {
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.home-button-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.home-button-card a {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  background-color: #f5f5f5;
}

.button-image {
  height: 380px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .button-image {
    height: 310px;
  }
}

@media (min-width: 1200px) {
  .button-image {
    height: 380px;
  }
}

.button-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-button-card:hover .button-image img {
  transform: scale(1.05);
}

#miniorange-saml-sp-sso-login-form{
  text-align: center;
}

.button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
}

.button-icon svg {
  width: 48px;
  height: 48px;
}

.home-button-card h3 {
  padding: 10px 24px;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  border-radius: 2px;
  text-align: center;
  position: absolute;
  bottom: 32px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 30px);
  transform: translateX(-50%);
  z-index: 1;
}

/* Buttons */
.btn,
.button,
a[onclick="submitSamlForm()"] {
  color: var(--heading-color);
  background-color: transparent;
  border: 2px solid var(--heading-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 400;
  height: 54px;
  padding-left: 32px;
  padding-right: 32px;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-family);
  transition: var(--transition);
}

.btn span,
.button span {
  overflow: hidden;
}

.btn svg,
.button svg {
  display: block;
}

.btn svg path,
.button svg path {
  stroke: var(--heading-color);
  transition: var(--transition);
}

.btn:hover,
.button:hover {
  color: var(--white);
  background-color: var(--heading-color);
}

.btn:hover svg path,
.button:hover svg path {
  stroke: var(--white);
}

.btn:hover svg,
.button:hover svg {
  animation: link-arrow 0.6s ease-in-out 0.3s 1 forwards;
}

.btn:active,
.button:active {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes link-arrow {
  0% {
    transform: translate(0);
  }

  50% {
    transform: translate(100%);
  }
  51% {
    transform: translate(100%, -200%);
  }
  52% {
    transform: translate(-100%, -200%);
  }
  53% {
    transform: translate(-100%);
  }
  100% {
    transform: translate(0);
  }
}

.btn-invert {
  color: var(--white);
  background-color: var(--heading-color);
  border-color: var(--heading-color);
}

.btn.btn-invert svg path,
.button.btn-invert svg path {
  stroke: var(--white);
}

.btn.btn-invert:hover svg path,
.button.btn-invert:hover svg path {
  stroke: var(--heading-color);
}

.btn-invert:hover {
  color: var(--heading-color);
  background-color: transparent;
}

/* Row and Column Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .col-md-3,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* Footer */
.site-footer {
  background-color: var(--dark-gray);
  color: #fff;
  padding: 50px 0 20px;
  margin-top: 40px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 30px;
  margin-bottom: 30px;
}

.footer-widget {
  margin-bottom: 20px;
}

.widget-title {
  color: #fff;
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-content p {
  margin-bottom: 10px;
}

.site-info {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Footer menu */
#footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer-menu li {
  margin-bottom: 10px;
}

#footer-menu a {
  color: #fff;
  opacity: 0.8;
  position: relative;
  display: inline-flex;
  gap: 10px;
}

#footer-menu a:before {
  content: '';
  position: relative;
  width: 16px;
  height: 16px;
  background-image: url('./assets/img/footer-link-arrow.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateY(7px);
}

#footer-menu a:hover {
  opacity: 1;
  color: var(--accent-color);
}

/* Taxonomy filters */
.taxonomy-filter {
  margin-bottom: 30px;
  padding: 15px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.taxonomy-filter ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.taxonomy-filter li {
  margin: 0 10px 10px 0;
}

.taxonomy-filter a {
  display: block;
  padding: 8px 16px;
  background-color: var(--medium-gray);
  color: var(--dark-gray);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.taxonomy-filter a:hover,
.taxonomy-filter .active a {
  background-color: var(--secondary-color);
  color: #fff;
}

/* Single post navigation */
.post-navigation {
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid var(--medium-gray);
  border-bottom: 1px solid var(--medium-gray);
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  max-width: 48%;
}

.post-navigation a {
  display: block;
  padding: 10px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.post-navigation a:hover {
  background-color: var(--light-gray);
}

/* Responsive styles */
@media (max-width: 992px) {
  .col-md-3 {
    width: 33.333%;
  }
}

@media (max-width: 768px) {
  .col-md-3 {
    width: 50%;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .header-search {
    width: 100%;
  }

  .search-form {
    justify-content: center;
  }

  .post-navigation .nav-links {
    flex-direction: column;
  }

  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    max-width: 100%;
    margin-bottom: 10px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 576px) {
  .col-md-3,
  .col-md-4,
  .col-md-6 {
    width: 100%;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom styles for specific post types */
/* Sample Info */
.single-sample_info .technical-info {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

.single-sample_info .last-updated {
  font-style: italic;
  color: #666;
  margin-top: 20px;
}

/* Product */
.single-product .sizes-text {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  white-space: pre-line;
}

.single-product .vendor-contact {
  margin-top: 30px;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: var(--border-radius);
}

.single-product .vendor-contact-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--accent-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 400;
  margin-top: 10px;
  transition: var(--transition);
}

.single-product .vendor-contact-button:hover {
  background-color: #c0392b;
  color: white;
}

/* Login Page Styles */
.login-page-wrapper {
  padding: 60px 0;
}

.justify-content-center {
  justify-content: center;
}

.login-form-container {
  background-color: #fff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.login-form-container h2 {
  margin-bottom: 30px;
  text-align: center;
}

.login-form-container .form-group {
  margin-bottom: 20px;
}

.login-form-container .btn-primary {
  width: 100%;
  padding: 12px;
  font-weight: 400;
  margin-top: 10px;
}

.login-info-text {
  text-align: center;
  margin-top: 20px;
  color: #666;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group input[type='date'],
.form-group input[type='password'],
.form-group textarea,
.form-group select {
  font-size: 16px;
  display: block;
  height: 48px;
  width: 100%;
  padding: 0 20px;
  font-family: inherit;
  font-size: 1em;
  outline: none;
  border-radius: 2px;
  border: 1px solid var(--secondary-text-color);
  transition: var(--transition);
  color: var(--heading-color);
}

.form-group textarea {
  min-height: 146px;
  resize: vertical;
  padding-top: 10px;
  padding-bottom: 10px;
}

.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group input[type='date']:focus,
.form-group input[type='password']:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--heading-color);
}
