/*
* TYTANGRANIT – Frontend styling
* Refined typography, colors, and component polish
*/
:root {
  --color-bg: #f8fafc;
  --color-bg-alt: #ffffff;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-text: #334155;
  --color-text-muted: #64748b;
  --color-heading: #0f172a;
  --color-primary: #0f172a;
  --color-accent: #ea580c;
  --color-accent-hover: #c2410c;
  --color-nav: #0f172a;
  --color-nav-text: rgba(255,255,255,0.85);
  --color-nav-text-hover: #fff;
  --color-border: #e2e8f0;
  --color-border-focus: #0f172a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  position: relative;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  font-size: 16px;
  background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-heading);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

a {
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
  color: var(--color-heading);
}
a:hover {
  color: var(--color-accent);
}
a.more {
  font-weight: 600;
}

/* Header: restyled, list button always visible on mobile */
.custom-navbar {
  background: var(--color-nav) !important;
  padding: 0.65rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
@media (min-width: 768px) {
  .custom-navbar { padding: 0.75rem 0; }
}
.custom-navbar.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  left: 0;
  right: 0;
}
.custom-navbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.custom-navbar .navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: auto;
}
.custom-navbar .navbar-brand > span { opacity: .5; }

/* Lista ofertă button: always visible (mobile + desktop), between brand and toggler on mobile */
.custom-navbar-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.custom-navbar-list-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.custom-navbar-list-btn:focus {
  box-shadow: 0 0 0 2px rgba(234,88,12,0.4);
  outline: none;
}
.custom-navbar-list-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.custom-navbar-list-label {
  white-space: nowrap;
}
.custom-navbar-list-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
  line-height: 1;
}

@media (min-width: 768px) {
  .custom-navbar .navbar-brand { margin-right: 0; }
  .custom-navbar-list-btn { order: 3; margin-left: auto; padding: 0.5rem 1rem; }
  .custom-navbar-toggler { order: 4; }
  .custom-navbar-collapse { order: 2; flex-grow: 1; }
}
.custom-navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.5rem;
}
.custom-navbar-toggler:active,
.custom-navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}
@media (min-width: 992px) {
  .custom-navbar .custom-navbar-nav li {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}
.custom-navbar .custom-navbar-nav li a {
  font-weight: 500;
  color: var(--color-nav-text) !important;
  opacity: 0.9;
  transition: opacity var(--transition), color var(--transition);
  position: relative;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
}
.custom-navbar .custom-navbar-nav li a:hover {
  opacity: 1;
  color: var(--color-nav-text-hover) !important;
  background: rgba(255,255,255,0.08);
}
@media (min-width: 768px) {
  .custom-navbar .custom-navbar-nav li a:before {
    content: "";
    position: absolute;
    bottom: 0.25rem;
    left: 0.5rem;
    right: 0.5rem;
    background: var(--color-accent);
    height: 3px;
    border-radius: 2px;
    width: 0;
    transition: width var(--transition);
  }
  .custom-navbar .custom-navbar-nav li a:hover:before,
  .custom-navbar .custom-navbar-nav li.active a:before {
    width: calc(100% - 1rem);
  }
}
.custom-navbar .custom-navbar-nav li.active a {
  opacity: 1;
  color: var(--color-nav-text-hover) !important;
}
.custom-navbar .custom-navbar-cta {
  margin-left: 0 !important;
  flex-direction: row;
}
@media (min-width: 768px) {
  .custom-navbar .custom-navbar-cta { margin-left: 2rem !important; }
}
.custom-navbar .custom-navbar-cta li {
  margin-left: 0;
  margin-right: 0;
}
.custom-navbar .custom-navbar-cta li:first-child { margin-right: 1rem; }

.hero {
  background: linear-gradient(135deg, var(--color-nav) 0%, #1e293b 50%, #0f172a 100%);
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 70% 50%, rgba(234,88,12,0.08) 0%, transparent 60%);
  pointer-events: none;
}
@media (min-width: 768px) {
  .hero { padding: 4rem 0 5rem; }
}
@media (min-width: 992px) {
  .hero { padding: 5rem 0 6rem; }
}
.hero .intro-excerpt {
  position: relative;
  z-index: 2;
}
@media (min-width: 992px) {
  .hero .intro-excerpt { max-width: 480px; }
}
.hero h1 {
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.hero p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.75rem;
  font-size: 1.0625rem;
}
.hero .btn {
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.hero .hero-img-wrap {
  position: relative;
  z-index: 1;
}
.hero .hero-img-wrap img {
  position: relative;
  z-index: 2;
  max-width: 780px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}
@media (min-width: 768px) {
  .hero .hero-img-wrap img { left: -2rem; }
}
@media (min-width: 992px) {
  .hero .hero-img-wrap img {
    position: absolute;
    left: 0;
    top: -4rem;
    right: -2rem;
  }
}
@media (min-width: 1200px) {
  .hero .hero-img-wrap img { right: -4rem; }
}
.hero .hero-img-wrap:after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: url("../images/dots-light.svg");
  background-size: contain;
  background-repeat: no-repeat;
  right: -2rem;
  top: 0;
  opacity: 0.6;
}
@media (min-width: 1200px) {
  .hero .hero-img-wrap:after { top: -1rem; }
}

/* Hero image – responsive fit */
.hero .hero-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
@media (min-width: 768px) {
  .hero .hero-img-wrap { min-height: 320px; }
}
@media (min-width: 992px) {
  .hero .hero-img-wrap { min-height: 400px; }
}
.hero .hero-img-wrap img.hero-image {
  position: static;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  top: auto;
  left: auto;
  right: auto;
}

.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover {
  color: #fff;
  background: var(--color-nav);
  border-color: var(--color-nav);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active, .btn:focus {
  outline: none !important;
  box-shadow: none;
}
.btn.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.btn.btn-primary:hover {
  background: var(--color-nav);
  border-color: var(--color-nav);
}
.btn.btn-secondary {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.btn.btn-secondary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}
.btn.btn-white-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn.btn-white-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.btn.btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.btn.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
.btn-sm.btn-white-outline {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  border-width: 1px;
}
.btn-sm.btn-white-outline:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.section-title {
  color: var(--color-heading);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

.product-section {
  padding: 4rem 0 5rem;
  background: var(--color-bg-alt);
}
.product-section .product-item {
  text-align: center;
  text-decoration: none;
  display: block;
  position: relative;
  padding: 1.5rem;
  padding-bottom: 3rem;
  cursor: pointer;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.product-section .product-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-section .product-item .product-thumbnail {
  margin-bottom: 1.25rem;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  transition: transform var(--transition);
}
.product-section .product-item .product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-section .product-item:hover .product-thumbnail img {
  transform: scale(1.04);
}
.product-section .product-item h3 {
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.35rem;
  color: var(--color-heading);
  text-decoration: none;
}
.product-section .product-item strong {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-accent);
  text-decoration: none;
}
.product-section .product-item .icon-cross {
  position: absolute;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: -22px;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow-md);
}
.product-section .product-item:hover .icon-cross {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}
.product-section .product-item .icon-cross img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}
.product-section .product-item:before {
  display: none;
}

.why-choose-section {
  padding: 4rem 0 5rem;
  background: var(--color-bg);
}
.why-choose-section .section-title { margin-bottom: 1rem; }
.why-choose-section .section-title::after { bottom: -0.5rem; }
.why-choose-section > .container > .row > .col-lg-6:first-child p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.why-choose-section .img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why-choose-section .img-wrap:before {
  position: absolute;
  content: "";
  width: 180px;
  height: 180px;
  background-image: url("../images/dots-yellow.svg");
  background-repeat: no-repeat;
  background-size: contain;
  transform: translate(-30%, -30%);
  z-index: 0;
  opacity: 0.7;
}
.why-choose-section .img-wrap img {
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 1;
}

.feature {
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.feature:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(234,88,12,0.1);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.feature .icon img {
  width: 28px;
  height: 28px;
}
.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 0.35rem;
}
.feature p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}

.we-help-section {
  padding: 4rem 0 5rem;
  background: var(--color-bg-alt);
}
.we-help-section .section-title { margin-bottom: 1rem; }
.we-help-section .section-title::after { bottom: -0.5rem; }
.we-help-section .col-lg-5 p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.we-help-section .imgs-grid {
  display: grid;
  grid-template-columns: repeat(27, 1fr);
  position: relative;
  gap: 0.75rem;
}
.we-help-section .imgs-grid:before {
  position: absolute;
  content: "";
  width: 180px;
  height: 180px;
  background-image: url("../images/dots-green.svg");
  background-size: contain;
  background-repeat: no-repeat;
  transform: translate(-30%, -30%);
  z-index: 0;
  opacity: 0.6;
}
.we-help-section .imgs-grid .grid {
  position: relative;
  z-index: 1;
}
.we-help-section .imgs-grid .grid img {
  border-radius: var(--radius-xl);
  max-width: 100%;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}
.we-help-section .imgs-grid .grid img:hover {
  transform: scale(1.02);
}
.we-help-section .imgs-grid .grid.grid-1 {
  grid-column: 1 / span 18;
  grid-row: 1 / span 27;
}
.we-help-section .imgs-grid .grid.grid-2 {
  grid-column: 19 / span 27;
  grid-row: 1 / span 5;
  padding-left: 20px;
}
.we-help-section .imgs-grid .grid.grid-3 {
  grid-column: 14 / span 16;
  grid-row: 6 / span 27;
  padding-top: 20px;
}

.custom-list {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}
.custom-list li {
  display: inline-block;
  width: calc(50% - 0.5rem);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text);
}
.custom-list li:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.popular-product {
  padding: 0 0 7rem 0; }
  .popular-product .product-item-sm h3 {
    font-size: 14px;
    font-weight: 700;
    color: #2f2f2f; }
  .popular-product .product-item-sm a {
    text-decoration: none;
    color: #2f2f2f;
    -webkit-transition: .3s all ease;
    -o-transition: .3s all ease;
    transition: .3s all ease; }
    .popular-product .product-item-sm a:hover {
      color: rgba(47, 47, 47, 0.5); }
  .popular-product .product-item-sm p {
    line-height: 1.4;
    margin-bottom: 10px;
    font-size: 14px; }
  .popular-product .product-item-sm .thumbnail {
    margin-right: 10px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 120px;
    flex: 0 0 120px;
    position: relative; }
    .popular-product .product-item-sm .thumbnail:before {
      content: "";
      position: absolute;
      border-radius: 20px;
    background: #e5e7eb;
      width: 98px;
      height: 98px;
      top: 50%;
      left: 50%;
      -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
      z-index: -1; }

.testimonial-section {
  padding: 3rem 0 7rem 0; }

.testimonial-slider-wrap {
  position: relative; }
  .testimonial-slider-wrap .tns-inner {
    padding-top: 30px; }
  .testimonial-slider-wrap .item .testimonial-block blockquote {
    font-size: 16px; }
    @media (min-width: 768px) {
      .testimonial-slider-wrap .item .testimonial-block blockquote {
        line-height: 32px;
        font-size: 18px; } }
  .testimonial-slider-wrap .item .testimonial-block .author-info .author-pic {
    margin-bottom: 20px; }
    .testimonial-slider-wrap .item .testimonial-block .author-info .author-pic img {
      max-width: 80px;
      border-radius: 50%; }
  .testimonial-slider-wrap .item .testimonial-block .author-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: #2f2f2f;
    margin-bottom: 0; }
  .testimonial-slider-wrap #testimonial-nav {
    position: absolute;
    top: 50%;
    z-index: 99;
    width: 100%;
    display: none; }
    @media (min-width: 768px) {
      .testimonial-slider-wrap #testimonial-nav {
        display: block; } }
    .testimonial-slider-wrap #testimonial-nav > span {
      cursor: pointer;
      position: absolute;
      width: 58px;
      height: 58px;
      line-height: 58px;
      border-radius: 50%;
    background: rgba(31, 41, 55, 0.1);
      color: #2f2f2f;
      -webkit-transition: .3s all ease;
      -o-transition: .3s all ease;
      transition: .3s all ease; }
      .testimonial-slider-wrap #testimonial-nav > span:hover {
      background: #1f2937;
        color: #ffffff; }
    .testimonial-slider-wrap #testimonial-nav .prev {
      left: -10px; }
    .testimonial-slider-wrap #testimonial-nav .next {
      right: 0; }
  .testimonial-slider-wrap .tns-nav {
    position: absolute;
    bottom: -50px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%); }
    .testimonial-slider-wrap .tns-nav button {
      background: none;
      border: none;
      display: inline-block;
      position: relative;
      width: 0 !important;
      height: 7px !important;
      margin: 2px; }
      .testimonial-slider-wrap .tns-nav button:active, .testimonial-slider-wrap .tns-nav button:focus, .testimonial-slider-wrap .tns-nav button:hover {
        outline: none;
        -webkit-box-shadow: none;
        box-shadow: none;
        background: none; }
      .testimonial-slider-wrap .tns-nav button:before {
        display: block;
        width: 7px;
        height: 7px;
        left: 0;
        top: 0;
        position: absolute;
        content: "";
        border-radius: 50%;
        -webkit-transition: .3s all ease;
        -o-transition: .3s all ease;
        transition: .3s all ease;
        background-color: #d6d6d6; }
      .testimonial-slider-wrap .tns-nav button:hover:before, .testimonial-slider-wrap .tns-nav button.tns-nav-active:before {
        background-color: #1f2937; }

/* Brand logo sizing */
.custom-navbar .navbar-brand img.brand-logo {
  height: 44px;
  width: auto;
}
@media (min-width: 992px) {
  .custom-navbar .navbar-brand img.brand-logo { height: 52px; }
}

/* Product section – category group spacing */
.product-section .col-12.mb-5:empty {
  margin-bottom: 2rem !important;
}
.product-section .col-12 .section-title {
  margin-bottom: 1.5rem;
}

.before-footer-section {
  padding: 7rem 0 12rem 0 !important; }

.blog-section {
  padding: 7rem 0 12rem 0; }
  .blog-section .post-entry a {
    text-decoration: none; }
  .blog-section .post-entry .post-thumbnail {
    display: block;
    margin-bottom: 20px; }
    .blog-section .post-entry .post-thumbnail img {
      border-radius: 20px;
      -webkit-transition: .3s all ease;
      -o-transition: .3s all ease;
      transition: .3s all ease; }
  .blog-section .post-entry .post-content-entry {
    padding-left: 15px;
    padding-right: 15px; }
    .blog-section .post-entry .post-content-entry h3 {
      font-size: 16px;
      margin-bottom: 0;
      font-weight: 600;
      margin-bottom: 7px; }
    .blog-section .post-entry .post-content-entry .meta {
      font-size: 14px; }
      .blog-section .post-entry .post-content-entry .meta a {
        font-weight: 600; }
  .blog-section .post-entry:hover .post-thumbnail img, .blog-section .post-entry:focus .post-thumbnail img {
    opacity: .7; }

.footer-section {
  padding: 3rem 0 2rem;
  background: var(--color-nav);
  color: rgba(255,255,255,0.85);
}
.footer-section .relative { position: relative; }
.footer-section a {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition), opacity var(--transition);
}
.footer-section a:hover {
  color: #fff;
  opacity: 1;
}
.footer-section .subscription-form {
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}
@media (min-width: 992px) {
  .footer-section .subscription-form {
    margin-top: 0;
    margin-bottom: 3rem;
  }
}
.footer-section .subscription-form h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-section .subscription-form .form-control {
  height: 50px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: "DM Sans", sans-serif;
}
.footer-section .subscription-form .form-control::placeholder {
  color: rgba(255,255,255,0.5);
}
.footer-section .subscription-form .form-control:focus {
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.2);
}
.footer-section .subscription-form .btn {
  border-radius: var(--radius-md);
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.footer-section .subscription-form .btn:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}
.footer-section .sofa-img {
  position: absolute;
  top: -200px;
  z-index: 1;
  right: 0;
}
.footer-section .sofa-img img { max-width: 380px; }
.footer-section .links-wrap {
  margin-top: 0;
}
@media (min-width: 992px) {
  .footer-section .links-wrap { margin-top: 2rem; }
}
.footer-section .links-wrap ul li { margin-bottom: 0.5rem; }
.footer-section .footer-logo-wrap .footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}
.footer-section .footer-logo-wrap .footer-logo span { opacity: 0.7; }
.footer-section p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}
.footer-section .custom-social li {
  margin: 0.25rem;
  display: inline-block;
}
.footer-section .custom-social li a {
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 50%;
  transition: background var(--transition);
}
.footer-section .custom-social li a:hover {
  background: var(--color-accent);
  color: #fff;
}
.footer-section .border-top {
  border-color: rgba(255,255,255,0.15);
}
.footer-section .border-top.copyright {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.footer-section .border-top.copyright a {
  color: rgba(255,255,255,0.7);
}
.footer-section .border-top.copyright a:hover {
  color: #fff;
}
.footer-section .list-inline-item a {
  color: rgba(255,255,255,0.85);
}
.footer-section .list-inline-item a:hover {
  color: #fff;
}

.untree_co-section {
  padding: 4rem 0 5rem;
  background: var(--color-bg);
}
.untree_co-section .block {
  max-width: 100%;
}
.untree_co-section .form-group label.text-black {
  color: var(--color-heading) !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control {
  height: 52px;
  border-radius: var(--radius-md);
  font-family: "DM Sans", sans-serif;
  border: 1px solid var(--color-border);
  padding: 0 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:active,
.form-control:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}
.form-control::placeholder {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.service {
  line-height: 1.5;
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.service:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.service .service-icon {
  border-radius: var(--radius-md);
  flex: 0 0 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: var(--color-accent);
  margin-right: 1rem;
  color: #fff;
}
.service .service-contents p,
.service .service-contents a {
  color: var(--color-text);
  margin: 0;
}
.service .service-contents a:hover {
  color: var(--color-accent);
}

textarea {
  height: auto !important; }

.site-blocks-table {
  overflow: auto; }
  .site-blocks-table .product-thumbnail {
    width: 200px; }
  .site-blocks-table .btn {
    padding: 2px 10px; }
  .site-blocks-table thead th {
    padding: 30px;
    text-align: center;
    border-width: 0px !important;
    vertical-align: middle;
    color: rgba(0, 0, 0, 0.8);
    font-size: 18px; }
  .site-blocks-table td {
    padding: 20px;
    text-align: center;
    vertical-align: middle;
    color: rgba(0, 0, 0, 0.8); }
  .site-blocks-table tbody tr:first-child td {
    border-top: 1px solid #1f2937 !important; }
  .site-blocks-table .btn {
    background: none !important;
    color: #000000;
    border: none;
    height: auto !important; }

.site-block-order-table th {
  border-top: none !important;
  border-bottom-width: 1px !important; }

.site-block-order-table td, .site-block-order-table th {
  color: #000000; }

.couponcode-wrap input {
  border-radius: 10px !important; }

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

/* Alerts on frontend */
.alert-light.border {
  border-radius: var(--radius-md);
  border-color: var(--color-border) !important;
  background: var(--color-surface);
  color: var(--color-text);
}

.thankyou-icon {
  position: relative;
  color: #1f2937; }
  .thankyou-icon:before {
    position: absolute;
    content: "";
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(31, 41, 55, 0.2); }

/* ========== Mobile & tablet styling ========== */
@media (max-width: 991px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  body { font-size: 15px; }

  /* Nav: list button always visible next to toggler; collapse = menu only */
  .custom-navbar { padding-top: 0.65rem; padding-bottom: 0.65rem; }
  .custom-navbar-list-btn {
    min-height: 44px;
    padding: 0.5rem 0.65rem;
  }
  .custom-navbar-list-icon { width: 20px; height: 20px; }
  .custom-navbar .navbar-collapse {
    margin-top: 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .custom-navbar .custom-navbar-nav {
    padding-left: 0;
    padding-right: 0;
  }
  .custom-navbar .custom-navbar-nav li a {
    display: block;
    padding: 0.75rem 1rem;
    min-height: 44px;
    line-height: 1.4;
    border-radius: var(--radius-sm);
  }
  .custom-navbar .custom-navbar-nav li a:before { display: none; }
  .custom-navbar .navbar-brand img.brand-logo { height: 40px; }

  /* Hero: stack, reduce padding, buttons full-width on small */
  .hero { padding: 2rem 0 2.5rem; }
  .hero .row { flex-direction: column; }
  .hero .col-lg-5 { order: 1; margin-bottom: 1.5rem; }
  .hero .col-lg-7 { order: 2; }
  .hero .intro-excerpt { max-width: 100%; }
  .hero h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); margin-bottom: 1rem; }
  .hero p { margin-bottom: 1.25rem; font-size: 1rem; }
  .hero .hero-img-wrap { min-height: 200px; margin-top: 0.5rem; }
  .hero .hero-img-wrap:after { display: none; }
  .hero .btn { min-height: 48px; padding: 0.875rem 1.25rem; }

  /* Products: 2 cols on tablet, card spacing */
  .product-section { padding: 2.5rem 0 3rem; }
  .product-section .col-12 .section-title { margin-bottom: 1.25rem; font-size: 1.35rem; }
  .product-section .col-12.col-md-4.col-lg-3 { margin-bottom: 1.5rem; }
  .product-section .product-item {
    padding: 1.25rem;
    padding-bottom: 2.75rem;
    min-height: auto;
  }
  .product-section .product-item .product-thumbnail { margin-bottom: 1rem; }
  .product-section .product-item .icon-cross {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    margin-bottom: -24px;
  }
  .product-section .product-item:active .icon-cross,
  .product-section .product-item:focus .icon-cross {
    opacity: 1;
    visibility: visible;
  }

  /* Why choose: stack image below, feature grid */
  .why-choose-section { padding: 2.5rem 0 3rem; }
  .why-choose-section .row { flex-direction: column; }
  .why-choose-section .col-lg-5 { order: 2; margin-top: 1.5rem; }
  .why-choose-section .img-wrap:before { display: none; }
  .why-choose-section .row.my-5 .col-6 { margin-bottom: 1rem; }
  .feature { margin-bottom: 1.25rem; padding: 1rem; }

  /* We help: simplify grid to stacked layout on tablet */
  .we-help-section { padding: 2.5rem 0 3rem; }
  .we-help-section .row { flex-direction: column; }
  .we-help-section .col-lg-7 { order: 1; margin-bottom: 1.5rem; }
  .we-help-section .col-lg-5 { order: 2; }
  .we-help-section .imgs-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .we-help-section .imgs-grid .grid.grid-1,
  .we-help-section .imgs-grid .grid.grid-2,
  .we-help-section .imgs-grid .grid.grid-3 {
    grid-column: unset;
    grid-row: unset;
    padding: 0;
  }
  .we-help-section .imgs-grid .grid img { width: 100%; }

  /* Contact: stack service blocks, form spacing */
  .untree_co-section { padding: 2.5rem 0 3rem; }
  .untree_co-section .row.mb-5 .col-lg-4 { margin-bottom: 1rem; }
  .untree_co-section .form-group { margin-bottom: 1.25rem; }
  .service { padding: 1rem; min-height: auto; }
  .service .service-icon { flex: 0 0 44px; height: 44px; line-height: 44px; }

  /* Footer: stack newsletter form */
  .footer-section { padding: 2rem 0 1.5rem; }
  .footer-section .subscription-form { margin-top: 1.5rem; margin-bottom: 2rem; }
  .footer-section .subscription-form .row.g-3 { flex-direction: column; }
  .footer-section .subscription-form .col-auto { width: 100%; max-width: 100%; }
  .footer-section .subscription-form .form-control { width: 100%; min-height: 48px; }
  .footer-section .subscription-form .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  .footer-section .row.g-5.mb-5 { margin-bottom: 2rem !important; }
  .footer-section .footer-logo-wrap { margin-bottom: 1rem; }
  .footer-section .links-wrap ul { text-align: left; }
  .footer-section .border-top.copyright .row { flex-direction: column; gap: 0.5rem; }
  .footer-section .border-top.copyright .text-lg-end { text-align: center !important; }
  .footer-section .border-top.copyright .text-lg-start { text-align: center !important; }
}

@media (max-width: 767px) {
  .container { padding-left: 1rem; padding-right: 1rem; }

  .hero .btn-group .btn,
  .hero p .btn { width: 100%; display: block; text-align: center; }
  .hero p .me-2 { margin-right: 0 !important; margin-bottom: 0.75rem; }
  .hero p .btn:last-child { margin-bottom: 0; }

  .product-section .col-12.col-md-4.col-lg-3 { flex: 0 0 100%; max-width: 100%; }
  .product-section .product-item { padding: 1rem; padding-bottom: 2.5rem; }

  .why-choose-section .row.my-5 .col-6 { flex: 0 0 100%; max-width: 100%; }
  .custom-list li { width: 100%; }
}

@media (max-width: 575px) {
  :root {
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 14px;
  }
  .container { padding-left: 0.875rem; padding-right: 0.875rem; }
  body { font-size: 15px; line-height: 1.6; }

  .custom-navbar .custom-navbar-nav li a { padding: 0.875rem 1rem; }
  .hero { padding: 1.5rem 0 2rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero .hero-img-wrap { min-height: 180px; }

  .section-title { font-size: 1.25rem; }
  .section-title::after { width: 2rem; }

  .product-section { padding: 2rem 0 2.5rem; }
  .product-section .col-12 .section-title { font-size: 1.2rem; margin-bottom: 1rem; }
  .product-section .product-item h3 { font-size: 1rem; }

  .why-choose-section .img-wrap img { border-radius: var(--radius-lg); }
  .feature .icon { width: 44px; height: 44px; }
  .feature .icon img { width: 24px; height: 24px; }

  .we-help-section .imgs-grid .grid img { border-radius: var(--radius-lg); }

  /* Contact form: full-width name fields on small */
  .untree_co-section .row .col-6 { flex: 0 0 100%; max-width: 100%; }
  .form-control { min-height: 48px; font-size: 16px; }
  textarea.form-control { min-height: 120px; padding: 1rem; }
  .untree_co-section .btn { width: 100%; min-height: 48px; justify-content: center; }

  .footer-section .subscription-form h3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .footer-section .list-inline-item { display: block; margin-bottom: 0.5rem; }
}

/* Product modal: mobile-friendly */
@media (max-width: 991px) {
  .product-modal .modal-dialog { margin: 0.5rem; max-width: calc(100% - 1rem); }
  .product-modal .modal-body { max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .pm-container { min-height: auto; }
  .pm-gallery { padding: 1.25rem; }
  .pm-hero { aspect-ratio: 1; margin-bottom: 1rem; }
  .pm-thumbs {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .pm-thumbs img { flex: 0 0 auto; height: 64px; }
  .pm-content { padding: 1.25rem; max-height: none; }
  .pm-actions { flex-direction: column; margin-top: 1.5rem; padding-top: 1.5rem; }
  .pm-actions .btn { width: 100%; min-height: 48px; justify-content: center; }
}
@media (max-width: 575px) {
  .product-modal .modal-header { padding: 1rem 1.25rem; }
  .product-modal .modal-title { font-size: 1.25rem; }
  .product-modal .btn-close { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  .pm-gallery { padding: 1rem; }
  .pm-content { padding: 1rem; }
  .pm-price { font-size: 1.5rem; }
  .pm-desc, .pm-specs { font-size: 0.9375rem; margin: 1rem 0; }
}

/* Touch: show product “details” on tap (no hover on touch devices) */
@media (hover: none) {
  .product-section .product-item .icon-cross {
    opacity: 1;
    visibility: visible;
    bottom: 0.5rem;
  }
  .product-section .product-item:not(:hover) .icon-cross {
    opacity: 0.85;
  }
}
