
/* =====================================
   AZ MARKETING - PROFESSIONAL STORE
   ===================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #102b50;
  --primary-dark: #091c35;
  --blue: #2463eb;
  --blue-light: #edf4ff;
  --white: #ffffff;
  --background: #f6f8fc;
  --text: #17243a;
  --muted: #738096;
  --border: #e5eaf2;
  --success: #168653;
  --radius: 18px;
  --shadow: 0 10px 35px rgba(16, 43, 80, 0.07);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Cairo', Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

body,
button,
input,
select {
  font-family: 'Cairo', Arial, sans-serif;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
select {
  cursor: pointer;
}

button {
  font-size: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

section {
  padding: 90px 0;
}

/* =====================================
   HEADER
   ===================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 234, 242, 0.9);
  backdrop-filter: blur(16px);
}

.header-content {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2463eb, #102b50);
  color: white;
  border-radius: 13px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: 0 6px 16px rgba(36, 99, 235, 0.2);
}

.logo-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  direction: ltr;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 700;
  color: #59677c;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--blue);
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  background: var(--primary);
  color: white;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.25s ease;
  white-space: nowrap;
}

.cart-button:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

#cart-count {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 5px;
  background: white;
  color: var(--primary);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

/* =====================================
   HERO
   ===================================== */

.hero {
  padding: 65px 0 75px;
  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(36, 99, 235, 0.12),
      transparent 32%
    ),
    linear-gradient(135deg, #f5f8ff 0%, #ffffff 60%, #edf3ff 100%);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 65px;
}

.hero-text {
  max-width: 580px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.hero-text .eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 5px;
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--primary-dark);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -1.5px;
}

.hero-text > p:not(.eyebrow) {
  max-width: 460px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2.1;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 27px;
  border: 1px solid var(--blue);
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(36, 99, 235, 0.2);
  transition: 0.25s ease;
}

.primary-button::after {
  content: "←";
  font-size: 19px;
}

.primary-button:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.hero-image {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 25px 65px rgba(16, 43, 80, 0.1);
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: #e5edff;
  border-radius: 50%;
  z-index: 0;
}

.hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 330px;
  object-fit: contain;
  border-radius: 18px;
}

.hero-image img:not([src]),
.hero-image img[src=""] {
  visibility: hidden;
}

/* =====================================
   SECTION HEADINGS
   ===================================== */

.section-heading {
  margin-bottom: 35px;
}

.section-heading .eyebrow {
  margin-bottom: 5px;
}

.section-heading h2 {
  margin-bottom: 7px;
  color: var(--primary);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.5;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 14px;
}

/* =====================================
   CATEGORIES
   ===================================== */

.categories-section {
  background: white;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  position: relative;
  min-height: 155px;
  padding: 23px 18px;
  overflow: hidden;
  text-align: right;
  background: #f7f9fd;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--primary);
  transition: 0.25s ease;
}

.category-card span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 11px;
  background: white;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 12px rgba(16, 43, 80, 0.05);
}

.category-card h3 {
  font-size: 15px;
  font-weight: 800;
}

.category-card:hover,
.category-card:focus-visible {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card:hover span,
.category-card:focus-visible span {
  background: var(--blue);
  color: white;
}

/* =====================================
   PRODUCTS
   ===================================== */

.products-section {
  background: var(--background);
}

.products-section .section-heading {
  margin-bottom: 30px;
}

.products-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 0.8fr) minmax(200px, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 32px;
  padding: 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 5px 22px rgba(16, 43, 80, 0.035);
}

.search-box,
.filter-box,
.sort-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.products-toolbar label {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.products-toolbar input,
.products-toolbar select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  outline: none;
  border-radius: 10px;
  background: #fbfcff;
  color: var(--text);
  font-size: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.products-toolbar input::placeholder {
  color: #9aa5b6;
}

.products-toolbar input:focus,
.products-toolbar select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 99, 235, 0.1);
}

.product-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 13px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: 0 3px 12px rgba(16, 43, 80, 0.025);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(16, 43, 80, 0.09);
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 210px;
  margin-bottom: 17px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, #f3f6fc, #eaf0fa);
  color: #8b9db8;
  font-size: 14px;
  font-weight: 800;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-card h3 {
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
}

.product-category {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}

.product-price {
  margin-top: auto;
  margin-bottom: 15px;
  color: var(--blue);
  font-size: 19px;
  font-weight: 900;
}

.add-to-cart {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 800;
  transition: 0.2s ease;
}

.add-to-cart:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.products-count {
  margin-top: 25px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.loading-message,
.empty-products {
  grid-column: 1 / -1;
  padding: 50px 15px;
  text-align: center;
  color: var(--muted);
  background: white;
  border: 1px dashed #ccd6e5;
  border-radius: var(--radius);
}

/* =====================================
   PAYMENT
   ===================================== */

.payment-section {
  background: white;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.payment-card {
  padding: 28px 24px;
  background: #fbfcff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: 0.25s ease;
}

.payment-card:hover {
  border-color: #c6d7fb;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.payment-icon {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: var(--blue-light);
  font-size: 25px;
}

.payment-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
}

.payment-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.payment-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

/* =====================================
   ABOUT
   ===================================== */

.about-section {
  background: var(--primary);
  color: white;
}

.about-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 65px;
}

.about-content .eyebrow {
  color: #9ebeff;
}

.about-content h2 {
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.6;
}

.about-content > p {
  color: #d1dbea;
  font-size: 14px;
  line-height: 2.3;
}

/* =====================================
   CONTACT
   ===================================== */

.contact-section {
  background: #f5f8ff;
}

.contact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.contact-content h2 {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
}

.contact-content p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 23px;
  border-radius: 12px;
  background: var(--success);
  color: white;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: 0.25s ease;
}

.whatsapp-button::before {
  content: "◉";
  margin-left: 9px;
  font-size: 17px;
}

.whatsapp-button:hover {
  background: #106d44;
  transform: translateY(-3px);
}

/* =====================================
   CART MODAL
   ===================================== */

.cart-modal[hidden] {
  display: none !important;
}

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 18, 37, 0.65);
  backdrop-filter: blur(5px);
}

.cart-content {
  position: relative;
  width: min(540px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
  animation: cartEnter 0.25s ease;
}

@keyframes cartEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cart-content h2 {
  margin-bottom: 24px;
  padding-left: 35px;
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
}

.close-cart {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: #f0f3f9;
  color: var(--primary);
  font-size: 26px;
  transition: 0.2s;
}

.close-cart:hover {
  background: #e3eaf7;
}

#cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.cart-summary {
  margin: 22px 0;
  padding: 18px;
  border-radius: 12px;
  background: #f3f7ff;
  color: var(--primary);
}

#cart-total {
  color: var(--blue);
  font-weight: 900;
}

#checkout-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 11px;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s;
}

#checkout-button:hover {
  background: var(--blue);
}

/* =====================================
   TOAST NOTIFICATION
   ===================================== */

.toast {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 3000;
  max-width: calc(100% - 48px);
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 35px rgba(16, 43, 80, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =====================================
   FOOTER
   ===================================== */

.site-footer {
  padding: 35px 0;
  background: var(--primary-dark);
  color: white;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo {
  font-size: 17px;
  font-weight: 900;
  direction: ltr;
}

.footer-content p,
.footer-content > a:not(.footer-logo) {
  color: #b6c4d8;
  font-size: 12px;
}

.footer-content > a:not(.footer-logo):hover {
  color: white;
}

.copyright {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

/* =====================================
   ACCESSIBILITY
   ===================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(36, 99, 235, 0.5);
  outline-offset: 3px;
}

/* =====================================
   TABLET
   ===================================== */

@media (max-width: 1000px) {
  .header-content {
    gap: 16px;
  }

  .main-nav {
    gap: 14px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .hero-content {
    gap: 35px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .search-box {
    grid-column: 1 / -1;
  }
}

/* =====================================
   MOBILE
   ===================================== */

@media (max-width: 680px) {
  .container {
    width: calc(100% - 28px);
  }

  section {
    padding: 58px 0;
  }

  .header-content {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo {
    gap: 8px;
  }

  .logo-mark {
    width: 39px;
    height: 39px;
    border-radius: 11px;
    font-size: 16px;
  }

  .logo-name {
    font-size: 16px;
  }

  .cart-button {
    padding: 8px 11px;
    font-size: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 21px;
    overflow-x: auto;
    padding: 7px 0 4px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex-shrink: 0;
    font-size: 12px;
  }

  .hero {
    padding: 42px 0 48px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(31px, 8vw, 43px);
    letter-spacing: -0.8px;
  }

  .hero-text > p:not(.eyebrow) {
    font-size: 13px;
  }

  .hero-image {
    min-height: 240px;
    padding: 14px;
    border-radius: 22px;
  }

  .hero-image img {
    height: 240px;
  }

  .hero-image::before {
    width: 155px;
    height: 155px;
  }

  .section-heading {
    margin-bottom: 25px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .section-heading > p:last-child {
    font-size: 13px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-card {
    min-height: 130px;
    padding: 17px 14px;
    border-radius: 14px;
  }

  .category-card span {
    width: 33px;
    height: 33px;
    margin-bottom: 14px;
  }

  .category-card h3 {
    font-size: 13px;
  }

  .products-toolbar {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    margin-bottom: 23px;
  }

  .search-box {
    grid-column: auto;
  }

  .products-toolbar input,
  .products-toolbar select {
    min-height: 46px;
  }

  .product-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    padding: 9px;
    border-radius: 14px;
  }

  .product-image {
    height: 155px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 12px;
  }

  .product-card h3 {
    font-size: 13px;
  }

  .product-category {
    font-size: 11px;
  }

  .product-price {
    font-size: 16px;
  }

  .add-to-cart {
    min-height: 42px;
    padding: 8px 5px;
    font-size: 11px;
  }

  .payment-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .payment-card {
    padding: 21px;
  }

  .payment-icon {
    width: 47px;
    height: 47px;
    margin-bottom: 12px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-content h2 {
    font-size: 28px;
  }

  .contact-content {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  .whatsapp-button {
    width: 100%;
  }

  .cart-modal {
    padding: 12px;
  }

  .cart-content {
    padding: 24px 17px;
    border-radius: 17px;
  }

  .cart-content h2 {
    font-size: 21px;
  }

  .toast {
    top: 15px;
    right: 12px;
    max-width: calc(100% - 24px);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* =====================================
   SMALL MOBILE
   ===================================== */

@media (max-width: 360px) {
  .container {
    width: calc(100% - 22px);
  }

  .product-container {
    gap: 9px;
  }

  .product-image {
    height: 130px;
  }

  .product-card h3 {
    font-size: 12px;
  }

  .product-price {
    font-size: 14px;
  }
}



/* ضبط صورة المنتج داخل الكارت */
.product-image {
  height: 220px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f9fd;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

/* اسم المنتج قابل للضغط */
.product-name-link {
  color: inherit;
  text-decoration: none;
}

.product-name-link:hover {
  color: #2463eb;
}

.product-image-link {
  display: block;
  text-decoration: none;
}

@media (max-width: 680px) {
  .product-image {
    height: 160px;
    padding: 12px;
  }
}



.product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.detail-image {
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: 25px;
  background: #f7f9fd;
  border: 1px solid #e5eaf2;
  border-radius: 20px;
}

.detail-image img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  object-position: center;
}

.detail-info h1 {
  color: #102b50;
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 12px;
}

.detail-price {
  color: #2463eb;
  font-size: 25px;
  font-weight: 900;
  margin: 15px 0;
}

.detail-description {
  color: #738096;
  line-height: 2;
  margin-bottom: 22px;
}

.detail-info h2 {
  font-size: 18px;
  color: #102b50;
  margin-bottom: 12px;
}

.detail-features {
  padding-right: 22px;
  margin-bottom: 25px;
  line-height: 2.2;
  color: #52627a;
}

.detail-add {
  max-width: 300px;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.cart-controls button {
  border: 0;
  border-radius: 8px;
  background: #edf4ff;
  color: #102b50;
  padding: 7px 12px;
  font-weight: 700;
}

@media (max-width: 680px) {
  .product-details {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .detail-image {
    min-height: 260px;
  }

  .detail-image img {
    height: 240px;
  }

  .detail-info h1 {
    font-size: 25px;
  }

  .detail-add {
    max-width: none;
    width: 100%;
  }
}


.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.payment-card {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
}

.payment-card p {
    margin: 0;
    line-height: 1.8;
}

.payment-card button {
    cursor: pointer;
}


.payment-card button {
    background: linear-gradient(135deg, #3157d5, #2443a8);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(49, 87, 213, 0.2);
    transition: all 0.25s ease;
}

.payment-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(49, 87, 213, 0.3);
}

.payment-card button:active {
    transform: scale(0.97);
}

.payment-card button::before {
    content: "▣";
    margin-left: 8px;
    font-size: 16px;
}


.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 20px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    background: #fff;
    color: #243b78;
    border: 1px solid #e1e8ff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(20, 40, 90, 0.16);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease,
                transform 0.25s ease,
                visibility 0.25s ease;
    z-index: 9999;
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.toast-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #e5f8ed;
    color: #16834a;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .copy-toast {
        bottom: 20px;
        width: max-content;
        max-width: calc(100% - 32px);
    }
}



.detail-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#main-product-image {
    width: 100%;
    max-width: 450px;
    height: 380px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
}

.product-gallery-thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.product-gallery-thumbnails img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    border: 2px solid #e1e6f0;
    border-radius: 10px;
    padding: 4px;
    cursor: pointer;
    background: #fff;
    transition: 0.2s ease;
}

.product-gallery-thumbnails img:hover,
.product-gallery-thumbnails img.active {
    border-color: #3157d5;
    transform: translateY(-2px);
}



.order-modal[hidden] {
    display: none !important;
}

.order-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 25, 50, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.order-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    color: #243451;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.order-box h2 {
    color: #2443a8;
    margin: 0 0 12px;
}

.close-order {
    position: absolute;
    top: 12px;
    left: 14px;
    border: 0;
    background: #edf2ff;
    color: #2443a8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 25px;
    cursor: pointer;
}

#order-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#order-form > input,
#order-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d9e1f0;
    border-radius: 10px;
    padding: 12px;
    font: inherit;
    outline: none;
}

#order-form > input:focus,
#order-form textarea:focus {
    border-color: #3157d5;
    box-shadow: 0 0 0 3px rgba(49, 87, 213, 0.1);
}

.order-total {
    font-weight: 700;
    color: #2443a8;
    font-size: 18px;
}

#order-form fieldset {
    border: 1px solid #d9e1f0;
    border-radius: 12px;
    padding: 14px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    cursor: pointer;
}

.confirm-order-btn,
.order-now-btn {
    border: 0;
    border-radius: 10px;
    padding: 13px 20px;
    color: #fff;
    background: linear-gradient(135deg, #3157d5, #2443a8);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.confirm-order-btn:hover,
.order-now-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .order-box {
        padding: 22px 16px;
    }
}



.product-card-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
}

.product-card-actions button {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 12px 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
}

.product-card-actions .add-to-cart {
    background: #263f91;
    color: white;
    border: 1px solid #263f91;
}

.product-card-actions .order-now-btn {
    background: white;
    color: #263f91;
    border: 1px solid #263f91;
}

.product-card-actions .order-now-btn:hover {
    background: #263f91;
    color: white;
}

@media (max-width: 400px) {
    .product-card-actions button {
        font-size: 12px;
        padding: 10px 4px;
    }
}
