@import "../blueimp/css/blueimp-gallery.css";
/* Custom CSS for PlametCo Website */

:root {
  --primary-color: #0d6efd;
  --primary-dark: #0a58ca;
  --primary-light: #cfe2ff;
  --secondary-color: #6c757d;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

#content {
  flex: 1;
}

/* Navbar customization */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: white;

  strong {
    display: block;
    font-size: 10px;
    font-weight: normal;
    margin-top: -10px;
    margin-left: 10px;
    text-decoration: none;
    font-style: italic;
  }

  &:hover {
    color: white !important;
    text-decoration: none !important;
  }
}

.navbar-brand img {
  height: 40px;
  width: auto;
  @media (max-width: 767.98px) {
    height: 30px;
  }
}

.navbar-nav .nav-link {
  white-space: nowrap;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #ffffff;
}

.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

/* Hero section */
.hero-section {
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
  height: 70vh;
  display: flex;
  align-items: center;
  @media screen and (max-width: 767.98px) {
    height: 100vh;
  }
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(33, 37, 41, 0.6);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-trust-badges {
  color: rgba(255, 255, 255, 0.9);

  .text-primary {
    color: #fff !important;
    background: var(--primary-color);
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
  }
}

/* Card customization */
.card {
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
  a {
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }
}

.card-img-top {
  height: 350px;
  object-fit: contain;

  &.no-height {
    width: 100%;
    height: auto;
  }
}

.product-card,
.event-card {
  .card-img-top {
    object-fit: cover;
  }
}

/* Buttons */
.btn {
  border-radius: 0.25rem;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

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

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

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Footer */
footer {
  margin-top: auto;
  background-color: var(--dark-color);
}

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

footer a:hover {
  color: var(--primary-light) !important;
  text-decoration: underline;
}

.footer-links {
  a {
    white-space: nowrap;
  }
}

.footer-logos {
  img {
    max-width: 100%;
  }
}

/* Product catalog page */
.filter-sidebar {
  background-color: var(--light-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.filter-sidebar .form-check {
  margin-bottom: 0.5rem;
}

.price-range-slider {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/* Product page */
.product-image {
  max-height: 400px;
  object-fit: contain;
}

.product-details h1 {
  font-size: 2rem;
  font-weight: 600;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;

  small {
    font-weight: 400;
  }
}

.quantity-selector {
  width: 200px;
}

/* Shopping cart */
.cart-item {
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 0;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.cart-summary {
  background-color: var(--light-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

/* Login/Register forms */
.auth-form {
  margin: 0 auto;
  border-radius: 0.5rem;
}

/* Language selector */
.language-option img {
  width: 20px;
  height: auto;
  margin-right: 5px;
  vertical-align: middle;
}

.dropdown-item.language-option {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

.current-language {
  margin-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  header.bg-dark {
    padding: 4rem 0;
  }

  .card-img-top {
    height: 300px;

    &.no-height {
      width: 100%;
      height: auto;
    }
  }

  .cart-item-image {
    width: 60px;
    height: 60px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

.page-header {
  padding-top: 80px;
  padding-bottom: 80px;
}

#backoffice-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}

html.logged-in {
  [data-tpl] {
    position: relative;

    &:before {
      content: '';
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: 1px dashed;
      position: absolute;
      z-index: -1;
      border-radius: inherit;
    }

    &:after {
      position: absolute;
      left: 0;
      top: 0;
      content: attr(data-tpl);
      background: black;
      color: white;
      padding: 0 10px;
      font-size: 12px;
      z-index: 2;
    }
  }
}

html.hide-helpers {
  [data-tpl] {
    &:before,
    &:after {
      display: none;
    }
  }
}

.catalog-list-view {
  background: #fff;

  .btn {
    white-space: nowrap;
  }
}

.product-list-item {
  transition: background-color 0.2s ease;
  padding: 1rem 0;
}

.product-list-item:hover {
  background-color: #f8f9fa;
}

.product-list-item:last-child {
  border-bottom: none !important;
}

.product-list-item .badge {
  font-size: 0.75rem;
  border-radius: 0.25rem;
}

.product-list-item img {
  transition: transform 0.2s ease;
}

.product-list-item:hover img {
  transform: scale(1.05);
}

.product-list-item h5 {
  color: #212529;
  font-weight: 600;
}

.product-list-item .text-primary {
  color: var(--primary-color) !important;
}

.product-list-item .btn {
  min-width: 100px;
}

@media (max-width: 768px) {
  .product-list-item .col-md-3:first-child {
    margin-bottom: 1rem;
  }

  .product-list-item .text-md-end {
    text-align: left !important;
    margin-top: 1rem;
  }

  .product-list-item .d-flex.flex-column.flex-md-row {
    flex-direction: row !important;
    gap: 0.5rem;
  }

  .product-list-item .btn {
    flex: 1;
    min-width: auto;
  }
}

/* Category Filter Links - Custom Active State */
.category-filter {
  position: relative;
  padding-right: 2.5rem !important;
  background: white !important;
  border: none !important;
  color: var(--dark-color) !important;
}

.category-filter.active {
  font-weight: bold;
}

.category-filter.active::after {
  content: '✓';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--success-color);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.photo-grid-item {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Creates 1:1 aspect ratio */
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-grid-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.photo-grid-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-footer {
  background: none;
  border: none;
}

.left-0 {
  left: 0 !important;
}

.auth-form {
  .form-check {
    padding-left: 0;

    input {
      margin-right: 5px;
    }
  }
}

.badge {
  &.badge-new {
    background-color: #007bff;
    color: white;
  }

  &.badge-pending {
    background-color: #ffc107;
    color: black;
  }

  &.badge-delivered {
    background-color: #28a745;
    color: white;
  }

  &.badge-completed {
    background-color: #198754;
    color: white;
  }

  &.badge-canceled {
    background-color: #dc3545;
    color: white;
  }
}

.help-block {
  font-size: smaller;
  color: var(--primary-color);
}

.has-error {
  color: var(--danger-color);

  .help-block {
    color: var(--danger-color);
  }
}

.page-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.page-photos a[data-gallery] {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  overflow: hidden;
}

.page-photos a[data-gallery] img {
  opacity: 0;
  max-width: 100%;
  max-height: 500px;
  height: auto;
}

.page-photos.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media all and (max-width: 1024px) {
  .page-photos.grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.filter-group {
  width: 100%;
  margin-bottom: 30px;

  .filter-group-title {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-align: left;
  }

  .filter-group-items {
    font-size: 16px;

    .filter {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid #eee;
      padding: 10px 0;
      text-decoration: none;
      color: var(--dark-color);

      span {
        font-size: 12px;
      }

      &.active {
        font-weight: 700;
        color: var(--primary-color);
      }
    }
  }

  &.boxed {
    .filter-group-items {
      display: flex;
      flex-wrap: wrap;

      .filter {
        border: 1px solid #ccc;
        padding: 0 10px;
        margin-bottom: 5px;
        margin-right: 5px;
        line-height: 2;

        &.active {
          color: #fff;
          background: var(--primary-color);
          border: 1px solid var(--primary-color);
          font-weight: 400;
        }
      }
    }

    &.color {
      .filter {
        width: 30px;
        height: 30px;
        color: transparent;
        overflow: hidden;

        &.active {
          color: transparent;
          background: transparent;
        }
      }
    }
  }
}

.active-filters {
  a {
    text-decoration: none;
  }
}

.wysiwyg {
  img {
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
  }
}

.form-group {
  &.one-option {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;

    input {
      margin-right: 5px;
    }

    label {
      span {
        display: none;
      }
    }
  }
}

/* Stats Section Styles */
.stats-section {
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.stat-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  background: #fff;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-number, .stat-suffix, .stat-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-text {
  font-size: 0.95rem;
  color: var(--secondary-color);
  line-height: 1.4;
}

.text-left {
  text-align: left;
}

.thank-you-page{
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
