/* assets/css/common.css */

:root {
  /* Colors based on requirements */
  --primary-red: #D32F2F; /* Deep red for accents/CTA */
  --primary-black: #212121; /* Dark grey/black for text/headers */
  --primary-green: #388E3C; /* Green for grass/nature elements */
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
  /* Layout */
  --max-width: 1600px;
  --header-height: 80px;
  --section-spacing: 50px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', 'Arial', sans-serif; /* Industrial feel */
  color: --text-color;
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  display: block;
}
.fixedbg{
    position: relative;
}
.fixedbg>*{
    position: relative;
    z-index: 5;
}
.fixedbg .section-title{
  color: white;
}
.fixedbg::before{
  content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}
/* Breadcrums */
.page-banner nav,
.detail-banner nav,
.news-detail-banner nav,
.search-banner nav{
    margin-bottom: 20px;
}
.breadcrumbs {
  font-size: 0.9rem;
  opacity: 0.9;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
  color: var(--white);
  text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:not(.active):hover a{
      color: var(--primary-red);
      text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 5px;
}
/* Layout */
.layout-sidebar-products {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.sidebar {
  flex: 0 0 300px;
  background: var(--white);
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  position: sticky;
  top: 140px;
  overflow: hidden;
  box-shadow: 0 5px 5px rgba(0,0,0,0.1);
}

.sidebar-widget {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-widget:last-child {
    border-bottom: none;
}
.sidebar-widget .sidebar-text{
  padding: 12px 25px;
  margin-bottom: 20px; 
  font-size: 0.95rem; 
  line-height: 1.6; 
  color: #666;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  padding: 20px 25px;
  background: #fcfcfc;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-title::after {
    display: none;
}

.sidebar-links {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-links li {
  margin-bottom: 0;
}

.sidebar-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
  font-size: 0.95rem;
  padding: 12px 25px;
  transition: all 0.3s ease;
  border-bottom: none;
  font-weight: 500;
}

.sidebar-links a:hover,
.sidebar-links a.active {
  color: var(--primary-red);
  background: rgba(211, 47, 47, 0.05);
  padding-left: 30px;
}

.sidebar-links a i {
  font-size: 0.7rem;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.sidebar-links a:hover i {
    opacity: 1;
    color: var(--primary-red);
    transform: translateX(5px);
}
/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.page-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #e0e0e0;
  color: var(--text-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}
/* Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: var(--section-spacing) 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-black);
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-tag {
  display: block;
  text-align: center;
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-red);
  margin: 15px auto 0;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-red);
  color: var(--white);
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid var(--primary-red);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn:hover {
  background-color: transparent;
  color: var(--primary-red);
}

.btn-green {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-green:hover {
  color: var(--primary-green);
}

/* Modal Styles Common */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  padding: 40px;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}
/* Video Modal Specific */
.video-modal-content {
    max-width: 1000px !important;
    width: 95% !important;
    padding: 0 !important;
    background: #000 !important;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.video-modal-content .modal-close {
    color: #fff;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -50px;
    right: 0;
    transition: all 0.3s ease;
}

.video-modal-content .modal-close:hover {
    background: var(--primary-red);
    transform: rotate(90deg);
}

.video-wrapper video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.form-group button {
  width: 100%;
}

/* Swiper Customizations */
.swiper-button-next,
.swiper-button-prev {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  color: var(--primary-red);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: var(--transition);
}
.swiper-button-next:after, .swiper-button-prev:after{
  font-size: 1rem;
}
.swiper-button-next:hover,
.swiper-button-prev:hover{
  background-color: var(--primary-red);
  color: white;
}
.swiper-pagination-bullet-active {
  background: var(--primary-red);
}
.swiper{
    padding-left: 5px;
    padding-right: 5px;
}
.swiper-wrapper{
  padding: 10px 0px;
}



