/* Ghaseel Care storefront update — load AFTER the existing site stylesheets.
   Arial is Amazon's declared system fallback. No Amazon font files are bundled. */
:root { --gc-store-font: Arial, "Helvetica Neue", sans-serif; font-family: var(--gc-store-font); }
body { font-family: var(--gc-store-font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
/* Operational connection status belongs only in the admin portal, in every state. */
#cloudStatus:not([data-gc-admin-status="true"]) { display: none !important; }

#productGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 24px; }
#productGrid .gc-product-card {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid #e3e5e7; border-radius: 18px; background: #fff;
  color: #17202a; box-shadow: 0 5px 20px rgba(20, 24, 28, .045);
  overflow: hidden; isolation: isolate;
}
#productGrid .gc-product-card::before { display: none; }
#productGrid .gc-product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20, 24, 28, .09); }
#productGrid .gc-product-media {
  position: relative; display: block; flex: none; width: 100%;
  height: auto; min-height: 0; aspect-ratio: 1 / 1; overflow: hidden;
  background: #fff; border-bottom: 1px solid #f0f1f2;
  transform: none; transition: none;
}
#productGrid .gc-product-media::after { display: none; }
#productGrid .gc-product-card:hover .gc-product-media { transform: none; }
.gc-product-media .gc-product-photo,
.gc-product-image-button .gc-product-photo {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  min-width: 0; min-height: 0; padding: 24px; object-fit: contain;
  object-position: center; background: #fff;
}
.gc-product-photo[hidden], .gc-image-placeholder[hidden] { display: none !important; }
.gc-image-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 24px; color: #6d747b; background: #f8f9fa;
  text-align: center; font-size: 14px; font-weight: 400;
}
#productGrid .gc-product-media .gc-product-type {
  position: absolute; top: 12px; right: auto; left: auto;
  inset-block-start: 12px; inset-inline-start: 12px; inset-inline-end: auto;
  background: #f5f5f2; color: #4b4b40; border: 1px solid #e8e8e2;
  border-radius: 7px; padding: 4px 9px; font-size: 11px; line-height: 1.5;
}
#productGrid .product-info {
  display: flex; flex-direction: column; flex: 1; min-width: 0;
  position: relative; padding: 19px; gap: 10px; background: #fff;
}
#productGrid .product-info h3 {
  margin: 0; min-height: 2.9em; font-size: 18px; line-height: 1.5;
  font-weight: 700; letter-spacing: normal; overflow-wrap: anywhere;
}
.gc-product-link { color: #17202a; }
.gc-product-link:hover { color: #8b6111; text-decoration: underline; text-underline-offset: 4px; }
.gc-product-meta { display: grid; gap: 4px; margin: 0; font-size: 13px; line-height: 1.6; }
.gc-product-meta > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.gc-product-meta dt { font-weight: 400; color: #687078; }
.gc-product-meta dd { margin: 0; color: #303840; overflow-wrap: anywhere; max-width: 100%; }
.gc-product-availability { font-size: 12px; color: #16733c; }
.gc-product-availability.is-unavailable, .gc-detail-stock.is-unavailable { color: #9c3c30; }
#productGrid .reward-mini { margin: 0; font-size: 11px; }
#productGrid .product-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: auto; padding-top: 12px; }
#productGrid .product-bottom strong { white-space: nowrap; font-size: 23px; font-weight: 700; line-height: 1.3; }
#productGrid .product-bottom button { min-height: 44px; padding: 10px 17px; font-size: 14px; font-weight: 700; }
#productGrid .product-bottom button:disabled, .gc-product-purchase button:disabled {
  background: #eceeef; color: #7a8086; cursor: not-allowed;
  box-shadow: none; transform: none; opacity: 1;
}
.gc-store-empty { grid-column: 1 / -1; padding: 35px 15px; text-align: center; color: #66717a; }

#product { max-width: 1280px; padding: 35px clamp(20px, 5vw, 60px) 90px; margin: auto; color: #17202a; }
.gc-product-breadcrumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; font-size: 13px; line-height: 1.6; color: #646d75; }
.gc-product-breadcrumb a { color: #836012; text-decoration: underline; text-underline-offset: 3px; }
.gc-product-breadcrumb > span:last-child { overflow-wrap: anywhere; }
.gc-product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.gc-product-gallery, .gc-product-summary { min-width: 0; }
.gc-product-gallery { position: sticky; top: 108px; }
.gc-product-image-button {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1;
  padding: 0; overflow: hidden; border: 1px solid #e7e9eb; border-radius: 16px;
  background: #fff; cursor: zoom-in; box-shadow: 0 8px 30px rgba(20, 24, 28, .035);
}
.gc-product-image-button:disabled { cursor: default; }
.gc-product-image-button .gc-product-photo { padding: 30px; }
.gc-image-hint { margin: 12px 0 0; text-align: center; color: #6b737a; font-size: 12px; }
.gc-detail-type { display: inline-block; font-size: 12px; color: #817047; margin-bottom: 10px; }
#gcProductHeading { margin: 0 0 18px; font-size: clamp(25px, 3.1vw, 36px); line-height: 1.5; font-weight: 700; letter-spacing: normal; overflow-wrap: anywhere; }
#gcProductHeading:focus { outline: none; }
.gc-detail-meta { padding: 14px 0 18px; border-block: 1px solid #eaebed; margin-bottom: 18px; font-size: 15px; gap: 8px; }
.gc-detail-price { font-size: 32px; line-height: 1.3; font-weight: 700; }
.gc-detail-stock { margin: 10px 0 22px; font-size: 14px; color: #16733c; }
.gc-product-description { margin-bottom: 24px; }
.gc-product-description h2 { font-size: 18px; line-height: 1.5; margin-bottom: 9px; letter-spacing: normal; }
.gc-product-description p { margin: 0; color: #4d5964; font-size: 15px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.gc-product-purchase { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; align-items: end; padding: 22px; border: 1px solid #e2e5e7; background: #fff; border-radius: 15px; }
.gc-product-purchase label { display: block; font-size: 14px; font-weight: 700; }
.gc-product-purchase input { margin-top: 7px; border-radius: 8px; min-height: 44px; font-size: 16px; width: 100%; }
.gc-product-purchase small { grid-column: 1 / -1; grid-row: 2; font-size: 12px; line-height: 1.7; color: #66717a; }
.gc-detail-add { grid-column: 2; grid-row: 1; min-height: 49px; border-radius: 9px; padding: 12px 16px; font-size: 15px; }
.gc-continue-shopping { grid-column: 1 / -1; justify-self: center; color: #84601b; margin-top: 6px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.gc-product-missing { max-width: 650px; margin: 55px auto; padding: 30px; text-align: center; background: #fff; border: 1px solid #e7e9eb; border-radius: 16px; }
.gc-product-missing p { color: #65717b; }
.gc-product-missing .primary-btn { display: inline-flex; margin-top: 12px; }

.gc-cart-meta { margin: 7px 0; font-size: 12px; }
#cartItems .cart-item > div { min-width: 0; overflow-wrap: anywhere; }
#cartItems .cart-item > strong { white-space: nowrap; font-size: 14px; }
#cartItems .cart-item > button { min-width: 32px; min-height: 40px; font-size: 23px; }

.gc-image-dialog { width: min(1000px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 16px; background: #fff; color: #17202a; box-shadow: 0 20px 80px rgba(0, 0, 0, .25); }
.gc-image-dialog::backdrop { background: rgba(14, 20, 25, .78); }
.gc-image-dialog-content { padding: 18px; }
.gc-image-dialog-heading { display: flex; align-items: center; gap: 15px; justify-content: space-between; margin-bottom: 15px; }
.gc-image-dialog-heading h2 { font-size: 18px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.gc-image-close { flex: none; border: 1px solid #dde1e4; border-radius: 50%; background: #f7f8f9; width: 44px; height: 44px; font-size: 26px; line-height: 1; color: #26323a; }
.gc-image-dialog img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 190px); object-fit: contain; background: #fff; }
.gc-image-dialog p { margin: 12px 0 0; font-size: 12px; color: #6a747c; text-align: center; }
body.gc-zoom-open { overflow: hidden; }
.gc-product-media:focus-visible, .gc-product-link:focus-visible, .gc-product-image-button:focus-visible,
.gc-product-purchase a:focus-visible, .gc-product-purchase button:focus-visible,
#productGrid button:focus-visible, .gc-image-close:focus-visible {
  outline: 3px solid #147f91; outline-offset: -4px;
}

@media (max-width: 960px) {
  #productGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .gc-product-detail-layout { gap: 28px; }
  .gc-product-purchase { padding: 16px; grid-template-columns: 95px minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 720px) {
  #product { padding: 24px 20px 65px; }
  .gc-product-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .gc-product-gallery { position: static; }
  .gc-product-image-button { max-width: 520px; margin-inline: auto; }
  .gc-product-breadcrumb { margin-bottom: 20px; }
  #gcProductHeading { font-size: 27px; }
  .gc-product-purchase { grid-template-columns: 100px minmax(0, 1fr); padding: 18px; }
}
@media (max-width: 560px) {
  #productGrid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #productGrid .product-info { padding: 18px; }
  #productGrid .product-info h3 { min-height: 0; font-size: 18px; }
  .gc-product-media .gc-product-photo { padding: 22px; }
  #gcProductHeading { font-size: 25px; }
  .gc-detail-price { font-size: 29px; }
  .gc-product-purchase { grid-template-columns: 86px minmax(0, 1fr); padding: 15px; }
  .gc-detail-add { padding-inline: 12px; }
  .gc-image-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .gc-image-dialog-content { padding: 13px; }
  .gc-image-dialog-heading h2 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  #productGrid .gc-product-card, #productGrid .gc-product-card:hover { transition: none; transform: none; }
}

/* GC delivery location: optional store checkout and private order details only. */
.gc-delivery-picker { margin: 20px 0; padding: 16px; border: 1px solid #ddd7c8; border-radius: 16px; background: #faf9f5; color: #20241f; min-width: 0; }
.gc-delivery-picker h3 { margin: 0 0 8px; font-size: 17px; }
.gc-delivery-picker h3 small { font-size: 12px; font-weight: 400; color: #62665e; }
.gc-delivery-picker p { font-size: 13px; line-height: 1.7; margin: 8px 0; }
.gc-delivery-actions, .gc-delivery-selection { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gc-delivery-picker button { padding: 9px 12px; border: 1px solid #b6b9ad; border-radius: 9px; background: #fff; color: #173c31; font: inherit; font-size: 13px; line-height: 1.5; min-height: 44px; max-width: 100%; white-space: normal; cursor: pointer; }
.gc-delivery-picker button:disabled { opacity: .65; cursor: default; }
.gc-delivery-picker button:focus-visible, .gc-delivery-link:focus-visible { outline: 3px solid #c79b35; outline-offset: 2px; }
.gc-delivery-picker [hidden] { display: none !important; }
.gc-delivery-map { height: 280px; width: 100%; min-width: 0; border: 1px solid #cbcdbf; border-radius: 10px; margin: 12px 0 8px; z-index: 0; direction: ltr; }
.gc-delivery-picker .leaflet-control-attribution { font-size: 10px; line-height: 1.5; }
.gc-delivery-marker { background: transparent; border: 0; }
.gc-delivery-marker span { display: block; width: 28px; height: 28px; background: #0d6958; border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 7px #0006; }
.gc-delivery-marker span::after { content: ''; display: block; width: 8px; height: 8px; background: #fff; border-radius: 50%; margin: 7px; }
.gc-delivery-selection { font-size: 13px; margin-top: 10px; }
.gc-delivery-link { color: #006454; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.gc-delivery-notice { color: #665329; }
.gc-order-delivery { display: grid; gap: 5px; margin-top: 5px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.gc-order-delivery small { white-space: normal; }
@media (max-width: 420px) { .gc-delivery-picker { padding: 12px; } .gc-delivery-actions > button { flex: 1 1 130px; } .gc-delivery-map { height: 250px; } }
