/****************************** 
Home page css starts
******************************/

h3{
  font-size: 1.2em !important;
}

/* --- HERO HEADING STYLING --- */
.hero-heading {
  text-transform: uppercase;
  letter-spacing: 3px; /* wider tracking — tweak between 5–8px for your exact Figma */
  color: #f3f0f1 !important;
  font-size: 32px; /* adjust based on screen / Figma */
  line-height: 1.6; /* adds breathing space vertically */
  text-align: center;
  position: relative;
  display: inline-block;
}

/* --- Optional: Add blue dotted underline accent like your Figma --- */
.hero-heading::after {
  content: "";
  display: block;
  width: 100%;
}


/* base section */
.main-section {
  position: relative;
  background: transparent;
  margin-bottom: 60px; /* gap between sections; adjust as needed */
  overflow: visible;   /* image is in flow so no clipping needed */
}

/* content wrapper - reserve top spacing and let image push flow */
.main-section .home-box1 {
  position: relative;
  /* padding-top: 40px; */
  padding-bottom: 0; /* image will provide the vertical size */
}

/* image wrapper - image participates in document flow (not absolute) */
.main-section .image-wrapper {
  width: 100%;
  display: block;
  text-align: center; /* centers image if smaller than container */
  background: transparent;

}

.main-section .image-wrapper img.feature-image {
  display: block;
  width: 100%;   /* scale to container width */
  height: auto;  /* preserve aspect ratio — no cropping */
  max-width: 1400px; /* optional: prevents extreme stretching on ultra wide screens; tune as needed */
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
}

.main-section .text-card1 {
  position: absolute;
  top: 10px;
  left: 8px;
  z-index: 5;
  background: transparent; /* white card */
  padding: 1px 2px;
  max-width: 550px;
  text-align: left;
  /*box-shadow: 0 8px 30px rgba(0,0,0,0.06);*/
}

.main-section .text-card1 p{
  margin:5px !important;
}
/* text card overlay */
.main-section .text-card {
  position: absolute;
  top: 40px;
  right: 48px;
  z-index: 5;
  background: transparent; /* white card */
  padding: 16px 24px;
  max-width: 360px;
  text-align: right;
  /*box-shadow: 0 8px 30px rgba(0,0,0,0.06);*/
}
/* Align text of second section to left */
.main-section:nth-of-type(2) .text-card {
  right: auto;
  left: 48px;
  text-align: left;
}

/* small styles */
.main-section .text-card h3 { margin: 0 0 6px 0; font-weight: 300; }
.main-section .text-card p { margin: 0; font-size: 13px; color: #222; opacity: .9; }

/* spacing control between repeated sections */
.main-section + .main-section { margin-top: 40px; }

/* responsive: hide overlay card on small screens and stack naturally */
@media (max-width: 991px) {
  .main-section .text-card {
    position: static;
    background: transparent;
    box-shadow: none;
    text-align: center;
    padding: 0;
    margin-bottom: 12px;
  }
  .main-section .image-wrapper img.feature-image {
    width: 100%;
    max-width: 100%;
  }
}
/* Image hover swap: PNG → GIF */
.main-section .image-wrapper {
  position: relative;
  width: 100%;
  text-align: center;
  overflow: hidden;
}

/* PNG (default visible) */
.main-section .image-wrapper .image-static {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.4s ease;
}

/* GIF (hidden initially) */
.main-section .image-wrapper .image-animated {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* On hover — hide PNG, show GIF */
.main-section .image-wrapper:hover .image-static {
  opacity: 0;
}
.main-section .image-wrapper:hover .image-animated {
  opacity: 1;
}
/****************************** 
Home page css ends
******************************/
/****************************** 
About us page css starts
******************************/
/* Minor refinements for About section */
/* About Grid Layout */
.feature-card {
  background: transparent;
  padding: 0;
  /* border-radius: 8px; */
  overflow: hidden;
  display: block;
  box-shadow: none !important; /* remove any shadow around the whole card */
}

/* ✅ Image styling — no shadow, minimal spacing below */
.feature-card .card-media {
  width: 100%;
  height: auto;
  display: block;
  /* border-radius: 6px; */
  box-shadow: none !important; /* remove inner shadow completely */
  margin-bottom: 8px; /* tighter gap between image and title */
}

/* Headings and text */
.feature-card .card-body {
  padding-top: 0; /* remove extra top padding */
  text-align: left;
}

.feature-card .card-title {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: -6px; /* reduced gap between title and text */
  color: #222;
}

.feature-card .card-text {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0;
}

/* remove vertical spacing between card rows */
.row.about-grid > [class*="col-"] {
  margin-bottom: 20px;
}
/* 1️⃣ Reduce spacing between main heading and image section */
.about-heading {
  margin-bottom: 10px !important; /* tighter gap between heading and image row */
}

/* 2️⃣ Align the text (below each image) more to the left */
.feature-card .card-body {
  padding-left: 0 !important;   /* removes extra indent */
  padding-right: 0 !important;
  text-align: left;
}

/* optional: fine-tune margins between image and caption */
.feature-card .card-media {
  margin-bottom: 6px !important; /* small neat gap between image and title */
}

/* Keep clean consistent spacing between all rows */
.row.about-grid {
  margin-top: 15px !important;
}
/* About Us CSS Ends */

/* Catalog section wrapper */
.section-catalog {
  background-color: #fff !important;
  padding: 40px 0 40px 0 !important; /* Balanced top & bottom, total ~120px */
  margin: 0 !important;
}

/* Heading styling - smaller space below */
.catalog-heading {
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 12px; /* reduced from 25px */
  color: #3a2c1b;
  text-transform: uppercase;
}

/* Buttons */
.btn-catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 24px;
  border: 1.5px solid #3a2c1b;
  border-radius: 50px;
  color: #3a2c1b;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-catalog:hover {
  background-color: #3a2c1b;
  color: #fff;
}

/* Button gap */
.d-inline-flex.gap-3 {
  gap: 14px !important; /* tighter horizontal gap */
}

/* Remove unwanted extra space below catalog section */
.section.section-catalog {
  margin-bottom: 0 !important;
  padding: 30px !important; /* maintain symmetry */
  background-color: white !Important;
  border-top:none !important;
}

/* Also ensure no gap from footer */
footer {
  margin-top: 0 !important;
}


/* Catalog Section Buttons Ends */

/*cover plates product css starts */
/* === GLOBAL PAGE CLEANUP === */
    .section {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* === TOP NAVIGATION === */
    .product-top-nav .nav-link {
        margin-top: 10px;
        font-size: 13px;
        text-transform: uppercase;
        color: #777;
        padding: 8px 14px;
        letter-spacing: 1px;
    }

    .product-top-nav .nav-link.active {
        color: #000;
        border-bottom: 2px solid rgba(0, 0, 0, 0.12);
    }

    /* === SUBNAV === */
    .subnav-style {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .subnav-style .nav-link {
        font-size: 12px;
        text-transform: uppercase;
        color: #777;
        letter-spacing: 1px;
    }

    .subnav-style .nav-link.active {
        color: #311D0F;
        /* font-weight: 600; */
        position: relative;
    }

    .subnav-style .nav-link.active::after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -10px;
        width: 36px;
        height: 2px;
        background: rgba(0, 0, 0, 0.15);
    }

    /* === AVAILABLE COLORS === */
    .available-colors-title {
        font-size: 12px;
        letter-spacing: 2px;
        color: #2b2b2b;
        margin-bottom: 20px;
    }

    /* === SWATCH GRID (5 in 1st row, 4 in 2nd row) === */
    .swatch-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 40px 30px;
        justify-items: center;
        margin: 0 auto;
        /* padding: 20px 0; */
        max-width: 1200px;
    }

    /* Center the last row automatically */
    .swatch-grid>*:nth-last-child(-n+4) {
        justify-self: center;
    }

    /* === SWATCH CARD === */
    .swatch-card {
        background: transparent;
        border: none;
        box-shadow: none;
        width: 150px;
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }

    .swatch-card:hover {
        transform: scale(1.03);
    }

    /* === SWATCH IMAGE === */
    .swatch-img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    /* === LABEL BELOW IMAGE === */
    .color-label {
        margin-top: 10px;
        font-size: 11px;
        letter-spacing: 1px;
        color: #4b423f;
        text-transform: uppercase;
        text-align: center;
    }

    /* === RESPONSIVE BEHAVIOR === */
    @media (max-width: 1199.98px) {
        .swatch-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    @media (max-width: 991.98px) {
        .swatch-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .swatch-card {
            width: 160px;
            height: 160px;
        }
    }

    @media (max-width: 575.98px) {
        .swatch-grid {
            grid-template-columns: repeat(1, 1fr);
        }

        .swatch-card {
            width: 140px;
            height: 140px;
        }
    }
/* Cover plates products page css ends  */

/* Sockets and Switches Product page css starts */

/* SOCKETS GRID - minimal spacing version */
.swatch-grid-sockets {
  display: grid;
  grid-template-columns: repeat(6, 120px); /* 6 items per row on desktop */
  gap: 1fr; /* no spacing between items */
  justify-items: left;
  margin: 0 auto;
  padding: 20px 0;
  max-width: 1200px;
}

/* Center the last row automatically (like your screenshot) */
.swatch-grid-sockets > *:nth-last-child(-n+4) {
  justify-self: left;
}

/* Responsive breakpoints (same as .swatch-grid) */
@media (max-width: 1199.98px) {
  .swatch-grid-sockets {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 991.98px) {
  .swatch-grid-sockets {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575.98px) {
  .swatch-grid-sockets {
    grid-template-columns: repeat(3, 1fr);
  }
}


.section-colors { background: #f4efed; }

.section-white{
  background-color: white !important;
  padding-left: 15px; 
}

/* SOCKET CARD STYLING */
.swatch-card-sockets {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px; /* fixed height for uniform alignment */
  padding: 8px;
}

.swatch-card-sockets:hover {
  transform: translateY(-4px);
}

/* SOCKET IMAGES INSIDE THE CARD */
.swatch-card-sockets img {
  max-height: 120px; /* makes all product heights consistent */
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* PRODUCT LABEL TEXT */
.color-label {
  font-size: 70%;
  color: #777;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

/* left swatches */
.swatch-grid { gap: 1rem; }
.swatch { width: 65px; }
.swatch-img_ok {
  width: 50px;
  height: 96px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  background: transparent;
}
.swatch .small { color: #9c9c9c; }

/* right scene - no decorative background */
.right-art { min-height: 260px; display:flex; align-items:center; justify-content:flex-end; }
.art-scene { max-width: 100%; display:block; }

/* spacing tweaks for smaller md */
@media (min-width: 768px) and (max-width: 991px) {
  .swatch { width: 100px; }
  .swatch-img { width: 84px; height:84px; }
  .right-art { min-height: 200px; }
}

/* mobile: right column removed; left column fills width */
@media (max-width: 767.98px) {
  .swatch { width: 86px; }
  .swatch-img { width: 72px; height:72px; }
}
/* Sockets and Switches Product page css ends*/
/* ===== FINAL OVERRIDE: prevent any zoom/scale/movement on product images ===== */
/* Place this at the bottom of your CSS file (after all other rules) */

.main-section.tech-left .image-wrapper,
.main-section .image-wrapper,
.image-wrapper {
  /* ensure wrapper doesn't cause unexpected transforms */
  transform: none !important;
  will-change: auto !important;
}

/* Force no transform & no transition on any image inside the wrapper */
.main-section.tech-left .image-wrapper img,
.main-section .image-wrapper img,
.image-wrapper img {
  transform: none !important;          /* cancel rotations/scales */
  transition: opacity 0s ease !important; /* only allow opacity crossfade */
  transition-property: opacity !important;   /* make sure transform is NOT transitioned */
  will-change: opacity !important;
  backface-visibility: hidden !important; /* minor GPU help to stabilize rendering */
  -webkit-transform: none !important;
  -webkit-transition-property: opacity !important;
}

/* Prevent any hover selector elsewhere from scaling the wrapper or img */
.main-section.tech-left .image-wrapper:hover,
.main-section .image-wrapper:hover,
.image-wrapper:hover {
  transform: none !important;
}

/* Remove transform on possible ancestor selectors (swatch-card etc.) */
.swatch-card:hover,
.feature-card:hover,
.swatch-card:hover * ,
.feature-card:hover * {
  transform: none !important;
}

/* Safety: disable any CSS animation keyframes on these images */
.main-section.tech-left .image-wrapper img,
.main-section .image-wrapper img,
.image-wrapper img {
  animation: none !important;
  -webkit-animation: none !important;
}

/* keep the intended hover opacity crossfade only */
.image-wrapper .base-image { opacity: 1; }
.image-wrapper .hover-image { opacity: 0; }
.image-wrapper:hover .base-image { opacity: 0; }
.image-wrapper:hover .hover-image { opacity: 1; }
