/* =========================================
   EMS AUTO PARTS
   COMPLETE WEBSITE STYLESHEET
========================================= */


/* =========================================
   1. GLOBAL SETTINGS
========================================= */

:root {
  --black: #111111;
  --dark: #191919;
  --dark-grey: #252525;
  --orange: #ff5a1f;
  --orange-hover: #e84912;
  --white: #ffffff;
  --light-grey: #f5f5f5;
  --medium-grey: #888888;
  --border: #e5e5e5;
  --text: #222222;

  --page-width: 1400px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--white);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================
   2. HEADER
========================================= */

.header {
  position: relative;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  width: 100%;
  min-height: 88px;

  padding: 15px 5%;

  background: var(--black);
  border-bottom: 4px solid var(--orange);
}


/* Logo */

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  flex-shrink: 0;

  color: var(--white);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -1px;
}

.logo-ems {
  color: var(--white);

  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -2px;
}

.logo-auto {
  margin-top: 5px;

  color: var(--orange);

  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 900;
  letter-spacing: 4px;
}


/* Header tagline */

.header-tagline {
  color: var(--white);

  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: right;
}


/* =========================================
   3. HERO SECTION
========================================= */

.hero {
  width: 100%;

  padding: 28px 5% 35px;

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(255, 90, 31, 0.10),
      transparent 65%
    ),
    var(--black);

  border-bottom: 4px solid var(--orange);
}

.hero-content {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;
}


/* =========================================
   4. EMS BANNER
========================================= */

/*
  The banner replaces the large hero heading
  and subtitle.

  Keep emsbanner.png in the same folder as
  index.html and styles.css.
*/

.hero-banner {
  width: 100%;
  max-width: 1000px;

  margin: 0 auto 22px;

  overflow: hidden;

  background: var(--black);

  line-height: 0;
}

.hero-banner img {
  display: block;

  width: 100%;
  height: auto;

  max-height: 280px;

  margin: 0 auto;

  object-fit: contain;
  object-position: center;
}


/* =========================================
   5. HERO DESCRIPTION
========================================= */

.hero-description {
  max-width: 760px;

  margin: 0 auto 20px;

  color: #dddddd;

  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}


/* =========================================
   6. SEARCH BAR
========================================= */

.search-wrapper {
  display: flex;
  align-items: center;

  width: 100%;
  max-width: 760px;

  min-height: 58px;

  margin: 0 auto;

  background: var(--white);

  border: 2px solid transparent;
  border-radius: 7px;

  overflow: hidden;

  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-wrapper:focus-within {
  border-color: var(--orange);

  box-shadow:
    0 0 0 3px rgba(255, 90, 31, 0.18),
    0 6px 22px rgba(0, 0, 0, 0.18);
}


/* Search icon */

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  padding-left: 17px;

  color: #666666;

  font-size: 19px;
}


/* Search input */

#search {
  display: block;

  width: 100%;
  min-width: 0;
  min-height: 54px;

  padding: 14px 17px;

  color: var(--black);
  background: transparent;

  border: none;
  outline: none;

  font-size: 15px;
}

#search::placeholder {
  color: #888888;
  opacity: 1;
}

#search::-webkit-search-cancel-button {
  cursor: pointer;
}


/* =========================================
   7. PRODUCT CATALOGUE
========================================= */

.catalogue {
  width: 100%;
  max-width: var(--page-width);

  margin: 0 auto;

  padding: 65px 5% 85px;
}


/* =========================================
   8. CATALOGUE HEADING
========================================= */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 28px;
}


/* Eyebrow text */

.eyebrow {
  margin-bottom: 8px;

  color: var(--orange);

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2.5px;
  line-height: 1.5;
}


/* Main catalogue heading */

.section-heading h2 {
  color: var(--black);

  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
}


/* Catalogue description */

.section-description {
  margin-top: 12px;

  color: #777777;

  font-size: 14px;
  line-height: 1.7;
}


/* =========================================
   9. PRODUCT RESULT COUNT
========================================= */

#result-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  min-height: 34px;

  padding: 7px 13px;

  color: #333333;
  background: var(--light-grey);

  border: 1px solid var(--border);
  border-radius: 5px;

  font-size: 12px;
  font-weight: 800;
}


/* =========================================
   10. CATEGORY FILTERS
========================================= */

.categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 30px;
  padding-bottom: 22px;

  border-bottom: 1px solid var(--border);
}


/* Individual category buttons */

.category {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  padding: 9px 17px;

  color: #444444;
  background: var(--white);

  border: 1px solid #dddddd;
  border-radius: 5px;

  font-size: 13px;
  font-weight: 800;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}


/* Category hover */

.category:hover {
  color: var(--orange-hover);
  border-color: var(--orange);
}


/* Selected category */

.category.active {
  color: var(--white);
  background: var(--orange);

  border-color: var(--orange);
}

.category.active:hover {
  color: var(--white);
  background: var(--orange-hover);

  border-color: var(--orange-hover);
}


/* Keyboard accessibility */

.category:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.35);
  outline-offset: 3px;
}


/* =========================================
   11. PRODUCT GRID
========================================= */

.product-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  align-items: stretch;

  gap: 22px;
}


/* =========================================
   12. PRODUCT CARDS
========================================= */

/*
  These styles support common product card
  class names. Your app.js determines the
  actual product HTML and functionality.
*/

.product-card,
.product {
  display: flex;
  flex-direction: column;

  min-width: 0;

  overflow: hidden;

  color: var(--text);
  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 7px;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.035);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}


/* Product card hover */

.product-card:hover,
.product:hover {
  transform: translateY(-3px);

  border-color: #cccccc;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}


/* Product images */

.product-card img,
.product img {
  display: block;

  width: 100%;
  height: 205px;

  padding: 14px;

  background: var(--white);

  object-fit: contain;
  object-position: center;
}


/* Product information */

.product-info,
.product-details,
.product-content {
  display: flex;
  flex-direction: column;

  flex: 1;

  padding: 17px;
}


/* Product titles */

.product-card h3,
.product h3,
.product-name {
  margin-bottom: 8px;

  color: var(--black);

  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;

  overflow-wrap: anywhere;
}


/* Product descriptions */

.product-card p,
.product p {
  color: #666666;

  font-size: 13px;
  line-height: 1.65;
}


/* Product prices */

.product-price,
.price {
  display: block;

  margin-top: 10px;

  color: var(--orange-hover);

  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
}


/* Product links */

.product-card a,
.product a {
  overflow-wrap: anywhere;
}


/* Product buttons */

.product-card button,
.product button {
  max-width: 100%;
}


/* =========================================
   13. GENERAL BUTTON STYLES
========================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline-color: var(--orange);
  outline-offset: 3px;
}


/* =========================================
   14. FOOTER
========================================= */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;

  padding: 38px 5%;

  color: #cccccc;
  background: var(--black);

  border-top: 4px solid var(--orange);

  text-align: center;
}


/* Footer logo */

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-bottom: 10px;

  font-weight: 900;
  line-height: 1;
}

.footer-ems {
  color: var(--white);

  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
}

.footer-auto {
  margin-top: 5px;

  color: var(--orange);

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 4px;
}


/* Footer tagline */

.footer-tagline {
  margin-bottom: 18px;

  color: var(--white);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}


/* Footer copyright */

.footer-copyright {
  width: 100%;
  max-width: 600px;

  padding-top: 18px;

  color: #999999;

  border-top: 1px solid #333333;

  font-size: 11px;
}


/* =========================================
   15. TABLET LAYOUT
========================================= */

@media (max-width: 1100px) {

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .catalogue {
    padding-top: 55px;
    padding-bottom: 70px;
  }

}


/* =========================================
   16. MOBILE LAYOUT
========================================= */

@media (max-width: 768px) {

  /* Header */

  .header {
    min-height: 76px;

    padding: 13px 5%;

    gap: 14px;
  }

  .logo-ems {
    font-size: 34px;
  }

  .logo-auto {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .header-tagline {
    max-width: 155px;

    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1.5;
  }


  /* Hero */

  .hero {
    padding: 22px 4% 28px;
  }


  /* Banner */

  .hero-banner {
    width: 100%;
    max-width: 100%;

    margin-bottom: 17px;
  }

  .hero-banner img {
    width: 100%;
    height: auto;

    max-height: none;

    object-fit: contain;
  }


  /* Description */

  .hero-description {
    margin-bottom: 17px;

    font-size: 13px;
  }


  /* Search */

  .search-wrapper {
    min-height: 52px;
  }

  .search-icon {
    padding-left: 13px;

    font-size: 17px;
  }

  #search {
    min-height: 48px;

    padding: 11px 12px;

    font-size: 13px;
  }


  /* Catalogue */

  .catalogue {
    padding: 45px 5% 60px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;

    gap: 13px;

    margin-bottom: 23px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .section-description {
    font-size: 13px;
  }


  /* Categories */

  .categories {
    gap: 8px;

    margin-bottom: 23px;
    padding-bottom: 18px;
  }

  .category {
    min-height: 38px;

    padding: 8px 12px;

    font-size: 12px;
  }


  /* Product grid */

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card img,
  .product img {
    height: 165px;

    padding: 10px;
  }

  .product-info,
  .product-details,
  .product-content {
    padding: 12px;
  }

  .product-card h3,
  .product h3,
  .product-name {
    font-size: 13px;
  }

  .product-price,
  .price {
    font-size: 19px;
  }


  /* Footer */

  .footer {
    padding: 32px 5%;
  }

}


/* =========================================
   17. SMALL MOBILE LAYOUT
========================================= */

@media (max-width: 420px) {

  .header {
    gap: 10px;
  }

  .logo-ems {
    font-size: 30px;
  }

  .logo-auto {
    font-size: 11px;
    letter-spacing: 2.5px;
  }

  .header-tagline {
    max-width: 125px;

    font-size: 9px;
    letter-spacing: 0.5px;
  }

  .hero {
    padding: 17px 3% 22px;
  }

  .hero-banner {
    margin-bottom: 13px;
  }

  .hero-description {
    font-size: 12px;
  }

  .catalogue {
    padding: 38px 4% 50px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .categories {
    gap: 7px;
  }

  .category {
    padding: 7px 9px;

    font-size: 11px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card img,
  .product img {
    height: 145px;
  }

  .product-info,
  .product-details,
  .product-content {
    padding: 10px;
  }

  .product-price,
  .price {
    font-size: 17px;
  }

}


/* =========================================
   18. EXTRA SMALL DEVICES
========================================= */

@media (max-width: 340px) {

  .header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-tagline {
    max-width: none;

    text-align: left;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card img,
  .product img {
    height: 200px;
  }

}


/* =========================================
   19. REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}

/* ========================================
   HEADER NAVIGATION — ABOUT US
======================================== */

.header {
  position: relative;
}

/* Keep the About Us link on the far right */
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.header-nav-link {
  display: inline-block;
  padding: 10px 18px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #ff6a00;
  border-radius: 5px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.header-nav-link:hover,
.header-nav-link:focus-visible {
  background-color: #ff6a00;
  border-color: #ff6a00;
  color: #111111;
}

/* Keep the header usable on smaller screens */
@media (max-width: 600px) {
  .header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-tagline {
    display: none;
  }

  .header-nav {
    margin-left: auto;
  }

  .header-nav-link {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ========================================
   ABOUT US PAGE
======================================== */

.about-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 70px;
  color: #ffffff;
}

.about-hero {
  padding: 90px 20px 75px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-hero h1 {
  margin: 12px 0 20px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
  font-weight: 800;
}

.about-hero h1 span {
  color: #ff6a00;
}

.about-intro {
  max-width: 650px;
  margin: 0 auto;
  color: #c5c5c5;
  font-size: 18px;
  line-height: 1.8;
}

.about-section {
  padding: 65px 0;
}

.about-content {
  max-width: 850px;
  margin: 0 auto;
}

.about-content h2,
.about-section-heading h2,
.about-cta h2 {
  margin: 10px 0 22px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.25;
  font-weight: 800;
}

.about-content p:not(.eyebrow) {
  color: #c5c5c5;
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 18px;
}

.about-page .eyebrow {
  color: #ff6a00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-mission {
  padding: 55px 35px;
  background: #191919;
  border-left: 4px solid #ff6a00;
  border-radius: 6px;
}

.about-features {
  padding: 75px 0;
}

.about-section-heading {
  margin-bottom: 32px;
  text-align: center;
}

.about-section-heading h2 {
  margin-bottom: 0;
}

.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.about-feature-card {
  padding: 30px 25px;
  background: #191919;
  border: 1px solid #303030;
  border-radius: 8px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.about-feature-card:hover {
  transform: translateY(-4px);
  border-color: #ff6a00;
}

.about-feature-number {
  margin-bottom: 22px;
  color: #ff6a00;
  font-size: 30px;
  font-weight: 900;
}

.about-feature-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
}

.about-feature-card p {
  margin: 0;
  color: #c5c5c5;
  font-size: 15px;
  line-height: 1.8;
}

.about-cta {
  padding: 65px 25px;
  text-align: center;
  background: #191919;
  border: 1px solid #303030;
  border-radius: 8px;
}

.about-cta h2 {
  margin-bottom: 15px;
}

.about-cta p:not(.eyebrow) {
  margin-bottom: 28px;
  color: #c5c5c5;
  line-height: 1.8;
}

.about-cta-button {
  display: inline-block;
  padding: 14px 28px;
  color: #111111;
  background: #ff6a00;
  border: 2px solid #ff6a00;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 800;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.about-cta-button:hover,
.about-cta-button:focus-visible {
  color: #ffffff;
  background: transparent;
}

@media (max-width: 760px) {
  .about-hero {
    padding: 60px 10px 50px;
  }

  .about-section {
    padding: 45px 0;
  }

  .about-mission {
    padding: 30px 22px;
  }

  .about-feature-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    padding: 50px 0;
  }

  .about-cta {
    padding: 45px 20px;
  }
}

.about-hero h1 .about-title-black {
  color: #000000;
}

/* ========================================
   FOOTER LEGAL INFORMATION
======================================== */

.footer-legal {
  max-width: 850px;
  margin: 20px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-legal p {
  margin: 0 auto 10px;
  color: #999999;
  font-size: 12px;
  line-height: 1.7;
}

.footer-legal .footer-business-details {
  margin-top: 16px;
  color: #cccccc;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}

.footer-legal-links a {
  color: #ff6a00;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .footer-legal {
    padding-right: 10px;
    padding-left: 10px;
  }

  .footer-legal p {
    font-size: 11px;
  }
}

/* LEGAL PAGE FOOTER LINK */

.footer-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

.footer-legal-links a {
  color: #ff6a00;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ========================================
   LEGAL & INFORMATION PAGE
======================================== */

.legal-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 70px;
  color: #000000;
}

.legal-hero {
  padding: 75px 20px 55px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-hero .eyebrow {
  color: #ff6a00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.legal-hero h1 {
  margin: 15px 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
}

.legal-hero h1 span {
  color: #ff6a00;
}

.legal-hero > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: #c5c5c5;
  line-height: 1.8;
}

.legal-section {
  padding: 35px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: 23px;
  font-weight: 800;
}

.legal-section p {
  color: #c5c5c5;
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 15px;
}

.legal-details {
  margin: 20px 0;
  padding: 20px;
  background: #191919;
  border-left: 4px solid #ff6a00;
  border-radius: 5px;
}

.legal-details p {
  margin-bottom: 8px;
}

.legal-details p:last-child {
  margin-bottom: 0;
}

.legal-details strong {
  color: #ffffff;
}

.legal-section .legal-note {
  font-size: 13px;
  color: #999999;
}

.legal-cta {
  margin-top: 45px;
  padding: 45px 20px;
  text-align: center;
  background: #191919;
  border: 1px solid #303030;
  border-radius: 8px;
}

.legal-cta h2 {
  margin-top: 0;
  font-size: 26px;
}

.legal-cta p {
  margin-bottom: 25px;
  color: #c5c5c5;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .legal-page {
    padding-right: 18px;
    padding-left: 18px;
  }

  .legal-hero {
    padding: 50px 10px 40px;
  }

  .legal-section {
    padding: 28px 0;
  }

  .legal-section h2 {
    font-size: 21px;
  }
}

.legal-hero h1 .legal-title-black {
  color: #000000;
}

/* ========================================
   LEGAL PAGE — TEXT COLOURS
======================================== */

/* Keep the legal page's main text black */
.legal-hero > p:last-child,
.legal-section p {
    color: #000000;
}

/* Keep business details readable on the dark panel */
.legal-details,
.legal-details p,
.legal-details strong {
    color: #ffffff !important;
}

/* Keep the return section text white */
.legal-page .legal-cta h2,
.legal-page .legal-cta p,
.legal-page .legal-cta a,
.legal-page .legal-cta a:visited,
.legal-page .legal-cta a:hover,
.legal-page .legal-cta a:focus,
.legal-page .legal-cta a:active {
    color: #ffffff !important;
}

/* Keep the Browse Products button orange with white text */
.legal-page .legal-cta .legal-cta-button {
    color: #ffffff !important;
    background-color: #ff6a00;
    border-color: #ff6a00;
}
/* Black buttons with white text */
button,
button:hover,
button:focus,
button:active,
.add-to-cart-btn {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

/* Slightly lighter black when hovering */
button:hover,
.add-to-cart-btn:hover {
  background-color: #222;
  color: #fff;
  border-color: #222;
}

/* Keep button text readable */
button,
.add-to-cart-btn {
  cursor: pointer;
}

/* Product page Add to Cart button */
.detail-add-to-cart-button {
display: inline-block;
padding: 13px 22px;
background-color: #000;
color: #fff;
border: 2px solid #000;
border-radius: 6px;
font-size: 16px;
font-weight: 700;
cursor: pointer;
transition: background-color 0.2s ease;
}

.detail-add-to-cart-button:hover {
background-color: #222;
color: #fff;
}

.detail-add-to-cart-button:disabled {
opacity: 0.75;
cursor: default;
}

/* Larger, rounded View Product Details button */
.details-button {
display: block;
width: 100%;
box-sizing: border-box;
padding: 14px 18px;
margin: 12px 0;
background-color: #000;
color: #fff;
border: 2px solid #000;
border-radius: 8px;
font-size: 16px;
font-weight: 700;
text-align: center;
text-decoration: none;
line-height: 1.4;
transition: background-color 0.2s ease, transform 0.2s ease;
}

.details-button:hover {
background-color: #222;
color: #fff;
border-color: #222;
}

.details-button:focus-visible {
outline: 3px solid #777;
outline-offset: 3px;
}
.detail-price {
  display: block;
  visibility: visible;
  opacity: 1;
  color: #ff6b00;
  font-size: 2rem;
  font-weight: 800;
  margin: 18px 0;
}

.detail-price-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 18px 0;
}

.detail-discount-badge {
  display: inline-block;
  background: #ff6b00;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.detail-original-price {
  margin: 0;
  color: #999999;
  font-size: 1.05rem;
  text-decoration: line-through;
}

.detail-price-section .detail-price {
  display: block;
  margin: 0;
  color: #ff6b00;
  font-size: 2rem;
  font-weight: 800;
}

.detail-savings {
  margin: 0;
  color: #22a06b;
  font-size: 0.95rem;
  font-weight: 700;
}
