.customer-products-page {
    min-height: 70vh;
    background: #ffffff;
}

.products-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


.products-page-heading {
    padding: 16px 0 4px;
}

.products-page-heading h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.1;
}

.products-content {
    padding: 10px 0 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 22px;
}

.product-card {
    min-width: 0;
    border: 1px solid #e5e1da;
    background: #ffffff;
}

.product-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f5f1;
}

.product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.product-image:hover img {
    transform: scale(1.03);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #77736d;
    font-size: 13px;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    background: #111111;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.product-card-body {
    padding: 18px;
}

.product-card-body h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.product-card-body h2 a:hover {
    color: #b69a68;
}

.product-description {
    margin: 9px 0 16px;
    color: #77736d;
    font-size: 13px;
    line-height: 1.6;
}

.product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
}

.product-price strong {
    font-size: 16px;
}

.product-price del {
    color: #77736d;
    font-size: 12px;
}

.product-view-link {
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-view-link:hover {
    color: #b69a68;
}

.products-empty {
    max-width: 650px;
    margin: 20px auto;
    padding: 70px 30px;
    text-align: center;
    border: 1px solid #e5e1da;
}

.products-empty h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.products-empty p {
    margin: 0 auto 28px;
    color: #77736d;
    line-height: 1.7;
}

.products-button {
    display: inline-flex;
    padding: 13px 24px;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.products-button:hover {
    background: #b69a68;
}

@media (max-width: 1000px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .products-container {
        width: min(100% - 24px, 1180px);
    }

    .products-page-heading {
        padding: 12px 0 2px;
    }

    .products-page-heading h1 {
        font-size: 32px;
    }

    .products-content {
        padding: 8px 0 40px;
    }

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

    .product-card-body {
        padding: 14px;
    }
}

@media (max-width: 430px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.customer-product-detail-page {
    min-height: 70vh;
    background: #ffffff;
}

.product-detail-content {
    padding: 70px 0 90px;
}

.product-detail-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 60px;
    align-items: start;
}

.product-detail-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f5f1;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.product-detail-main-image {
    cursor: zoom-in;
}

.product-detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.product-detail-thumbnail {
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #f7f5f1;
    cursor: pointer;
    transition: border-color 0.18s ease, opacity 0.18s ease;
}

.product-detail-thumbnail:hover {
    opacity: 0.86;
}

.product-detail-thumbnail.is-active {
    border-color: #111111;
}

.product-detail-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.product-detail-image-tools {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-detail-icon-button {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #77736d;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

.product-detail-icon-button:hover {
    transform: scale(1.06);
    border-color: #b69a68;
}

.product-detail-wishlist.is-wished {
    background: #fff1f3;
    border-color: #f0c4ca;
    color: #d6334c;
}

.product-detail-share {
    font-size: 21px;
}

.product-detail-share.is-shared {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.product-detail-icon-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.product-detail-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #77736d;
}

.product-detail-info {
    padding-top: 8px;
}

.product-detail-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 9px;
    background: #111111;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.product-detail-info h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
}

.product-detail-sku {
    margin: 12px 0 0;
    color: #77736d;
    font-size: 12px;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 25px;
}

.product-detail-price strong {
    font-size: 26px;
}

.product-detail-price del {
    color: #77736d;
    font-size: 15px;
}

.product-detail-rating {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    color: #77736d;
    font-size: 13px;
}

.product-detail-rating span:first-child {
    color: #b69a68;
    font-weight: 700;
}

.product-detail-short {
    margin: 25px 0 0;
    color: #444444;
    line-height: 1.75;
}

.product-detail-description {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e1da;
    color: #555555;
    line-height: 1.8;
}

.product-detail-stock {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
    color: #77736d;
    font-size: 13px;
}

.in-stock {
    color: #216b3a;
    font-weight: 700;
}

.out-of-stock {
    color: #a12626;
    font-weight: 700;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.product-detail-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid #111111;
    font-size: 14px;
    font-weight: 700;
}

.product-detail-button.primary {
    background: #111111;
    color: #ffffff;
}

.product-detail-button.primary:hover {
    background: #b69a68;
    border-color: #b69a68;
}

.product-detail-button.secondary {
    background: #ffffff;
    color: #111111;
}

.product-detail-button.secondary:hover {
    border-color: #b69a68;
    color: #b69a68;
}

.product-detail-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-back-link {
    display: inline-block;
    margin-top: 28px;
    color: #77736d;
    font-size: 13px;
}

.product-back-link:hover {
    color: #b69a68;
}

@media (max-width: 850px) {
    .product-detail-content {
        padding: 45px 0 65px;
    }

    .product-detail-container {
        width: min(100% - 24px, 1180px);
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .product-detail-image {
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
    }

    .product-detail-info {
        padding-top: 0;
    }

    .product-detail-info h1 {
        font-size: clamp(30px, 8vw, 42px);
    }

    .product-detail-price {
        margin-top: 20px;
    }

    .product-detail-short,
    .product-detail-description {
        margin-top: 20px;
    }

    .product-detail-actions {
        width: 100%;
    }

    .product-detail-cart-form {
        flex: 1 1 220px;
    }

    .product-detail-button {
        width: 100%;
        box-sizing: border-box;
    }

    .product-detail-actions > .product-detail-button.secondary {
        flex: 1 1 180px;
    }
}

@media (max-width: 480px) {
    .product-detail-content {
        padding: 28px 0 48px;
    }

    .product-detail-container {
        width: calc(100% - 20px);
    }

    .product-detail-grid {
        gap: 25px;
    }

    .product-detail-image {
        aspect-ratio: 1 / 1;
    }

    .product-detail-badge {
        margin-bottom: 10px;
    }

    .product-detail-info h1 {
        font-size: 29px;
        line-height: 1.12;
    }

    .product-detail-sku {
        margin-top: 9px;
    }

    .product-detail-price strong {
        font-size: 23px;
    }

    .product-detail-price del {
        font-size: 13px;
    }

    .product-detail-rating {
        margin-top: 11px;
        gap: 9px;
        flex-wrap: wrap;
    }

    .product-detail-short {
        line-height: 1.65;
    }

    .product-detail-description {
        line-height: 1.7;
    }

    .product-detail-stock {
        margin-top: 20px;
    }

    .product-detail-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 22px;
    }

    .product-detail-cart-form,
    .product-detail-actions > .product-detail-button.secondary {
        width: 100%;
        min-width: 0;
    }

    .product-detail-button {
        min-height: 48px;
        padding: 12px 16px;
    }

    .product-back-link {
        margin-top: 22px;
    }
}

/* HOME-STYLE COMPACT PRODUCT GRID - 20260923 */
.products-grid {
    gap: 18px;
}

.products-grid .product-card {
    border-radius: 14px;
    overflow: hidden;
}

.products-grid .product-image {
    aspect-ratio: 1 / 1;
}

.products-grid .product-image img {
    padding: 8px;
    object-fit: contain;
}

.products-grid .product-card-body {
    padding: 11px 12px 12px;
}

.products-grid .product-card-body h2 {
    min-height: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.products-grid .product-card-body h2 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-grid .product-description {
    display: none;
}

.products-grid .product-card-bottom {
    margin-top: 9px;
    gap: 8px;
}

.products-grid .product-price strong {
    font-size: 15px;
    line-height: 1.2;
}

.products-grid .product-view-link {
    font-size: 0;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e1da;
    border-radius: 50%;
}

.products-grid .product-view-link::after {
    content: '→';
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 700px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .products-grid .product-card-body {
        padding: 9px 10px 10px;
    }

    .products-grid .product-card-body h2 {
        font-size: 13px;
    }

    .products-grid .product-card-bottom {
        margin-top: 7px;
    }

    .products-grid .product-price strong {
        font-size: 14px;
    }

    .products-grid .product-view-link {
        width: 31px;
        height: 31px;
    }

    .products-grid .product-view-link::after {
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .products-grid {
        gap: 9px;
    }

    .products-grid .product-card-body {
        padding: 8px 9px 9px;
    }

    .products-grid .product-card-body h2 {
        font-size: 12.5px;
    }

    .products-grid .product-view-link {
        width: 29px;
        height: 29px;
    }
}

/* ============================================================
   PRODUCTS PAGE SEARCH
   ============================================================ */

.products-page-search {
    width: min(820px, 100%);
    margin: 0 auto 28px;
    padding: 22px;
    border: 1px solid #e3ded5;
    border-radius: 18px;
    background: #faf9f6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.products-search-heading {
    margin-bottom: 16px;
}

.products-search-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #b69a68;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.products-search-heading h2 {
    margin: 0;
    color: #111111;
    font-size: 24px;
    line-height: 1.2;
}

.products-search-heading p {
    margin: 5px 0 0;
    color: #77736d;
    font-size: 13px;
    line-height: 1.5;
}

.products-page-search .customer-search-form {
    min-height: 48px;
    border-color: #d8d2c8;
    border-radius: 12px;
    background: #ffffff;
}

.products-page-search .customer-search-input {
    height: 46px;
    font-size: 14px;
}

.products-page-search .customer-search-submit {
    min-height: 38px;
    margin-right: 4px;
    padding: 8px 15px;
    border-radius: 9px;
}

.products-page-search .customer-search-clear {
    min-height: 38px;
    margin-right: 4px;
    padding: 8px 12px;
    border-radius: 9px;
}

.products-page-search .customer-search-results {
    max-height: 560px;
    margin-top: 8px;
}

@media (max-width: 700px) {
    .products-page-search {
        width: 100%;
        margin-bottom: 22px;
        padding: 16px;
        border-radius: 15px;
    }

    .products-search-heading {
        margin-bottom: 12px;
    }

    .products-search-heading h2 {
        font-size: 21px;
    }

    .products-search-heading p {
        font-size: 12px;
    }

    .products-page-search .customer-search-input {
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    .products-page-search {
        margin-bottom: 18px;
        padding: 13px;
    }

    .products-search-heading h2 {
        font-size: 20px;
    }

    .products-search-heading p {
        font-size: 11px;
    }

    .products-page-search .customer-search-submit {
        padding-left: 10px;
        padding-right: 10px;
    }

    .products-page-search .customer-search-clear {
        padding-left: 9px;
        padding-right: 9px;
    }
}


/* === STICKY BOTTOM ACTION BAR (PRODUCT DETAIL) === */
body:has(.alshifa-sticky-bar) {
  padding-bottom: 82px;
}

/* Lift floating WhatsApp widget above the sticky bar */
body:has(.alshifa-sticky-bar) .whatsapp-float,
body:has(.alshifa-sticky-bar) .whatsapp-chat-btn,
body:has(.alshifa-sticky-bar) #whatsapp-widget {
  bottom: 84px !important;
}

.alshifa-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 9998;
  box-sizing: border-box;
  gap: 12px;
}

.alshifa-sticky-price-box {
  display: flex;
  flex-direction: column;
  min-width: 76px;
}

.alshifa-sticky-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.alshifa-sticky-price {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.alshifa-sticky-actions {
  display: flex;
  flex: 1;
  gap: 10px;
  max-width: 440px;
}

.alshifa-sticky-actions button {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease;
}

.alshifa-sticky-actions button:active {
  transform: scale(0.97);
}

.alshifa-btn-cart {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #d1d5db;
}

.alshifa-btn-cart:hover {
  background: #e5e7eb;
}

.alshifa-btn-buy {
  background: #111827;
  color: #ffffff;
  border: none;
}

.alshifa-btn-buy:hover {
  background: #1f2937;
}

@media (min-width: 768px) {
  .alshifa-sticky-bar {
    padding: 12px 12%;
  }
}

/* Compared Price Styling in Sticky Bar (Forced Vertical Stack + Bulletproof Cut Line) */
.alshifa-sticky-price-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  min-width: 82px;
}

.alshifa-sticky-price-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
}

.alshifa-sticky-price {
  display: block !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.15 !important;
}

del.alshifa-sticky-compare-price,
.alshifa-sticky-compare-price {
  position: relative !important;
  display: inline-block !important;
  width: fit-content !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  text-decoration: line-through !important;
  line-height: 1.15 !important;
  margin-top: 2px !important;
}

/* Guaranteed visible cut line across all mobile browsers */
del.alshifa-sticky-compare-price::after,
.alshifa-sticky-compare-price::after {
  content: "" !important;
  position: absolute !important;
  left: -2px !important;
  right: -2px !important;
  top: 50% !important;
  height: 1.5px !important;
  background-color: #ef4444 !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
}

/* === RESPONSIVE VISIBILITY: MOBILE STICKY VS DESKTOP INLINE === */

/* 1. MOBILE & SMALL SCREENS (up to 767px): Show sticky bar, hide old inline buttons */
@media (max-width: 767px) {
  .alshifa-sticky-bar {
    display: flex !important;
  }

  body:has(.alshifa-sticky-bar) {
    padding-bottom: 82px !important;
  }

  /* Hide old inline Add to Cart / Buy Now buttons on mobile */
  .alshifa-inline-action,
  form[action*="cart"] button[type="submit"],
  form[action*="cart"] .btn-add-to-cart,
  form[action*="cart"] .btn-buy-now,
  .product-actions .btn-add-to-cart,
  .product-actions .btn-buy-now,
  .detail-actions button {
    display: none !important;
  }
}

/* 2. DESKTOP, LAPTOP & BIG SCREENS (768px and above): Hide sticky bar, keep old inline buttons */
@media (min-width: 768px) {
  .alshifa-sticky-bar {
    display: none !important;
  }

  body:has(.alshifa-sticky-bar) {
    padding-bottom: 0 !important;
  }

  /* Keep WhatsApp widget in its normal desktop position */
  body:has(.alshifa-sticky-bar) .whatsapp-float,
  body:has(.alshifa-sticky-bar) .whatsapp-chat-btn,
  body:has(.alshifa-sticky-bar) #whatsapp-widget {
    bottom: 24px !important;
  }
}


/* Style <a> Buy Now link identically to sticky button & hide .product-detail-actions on mobile */
.alshifa-sticky-actions a.alshifa-btn-buy,
.alshifa-sticky-actions button {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  cursor: pointer;
  box-sizing: border-box;
}

.alshifa-btn-disabled {
  width: 100%;
  background: #e5e7eb;
  color: #6b7280;
  border: none;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .product-detail-actions {
    display: none !important;
  }
}


/* === AL-SHIFA PERFUMES ROYAL MAHOGANY & GOLD THEME (PRODUCT STICKY BAR) === */
.alshifa-sticky-bar {
  background: #FBF7EE !important;
  border-top: 1.5px solid #D4AF37 !important;
  box-shadow: 0 -4px 16px rgba(42, 8, 8, 0.14) !important;
}

.alshifa-sticky-label {
  color: #7A5C38 !important;
}

.alshifa-sticky-price {
  color: #2A0808 !important;
}

.alshifa-btn-cart {
  background: #FFFDF9 !important;
  color: #2A0808 !important;
  border: 1.5px solid #C59B27 !important;
}

.alshifa-btn-cart:hover,
.alshifa-btn-cart:active {
  background: #F4EAD2 !important;
}

.alshifa-btn-buy,
.alshifa-sticky-actions a.alshifa-btn-buy {
  background: linear-gradient(135deg, #2A0808 0%, #4A1010 100%) !important;
  color: #F3D06B !important;
  border: 1.5px solid #D4AF37 !important;
}

/* === UNCROPPED PRODUCT IMAGES (FULL BOTTLE VISIBILITY) === */
.product-detail-media img,
.product-detail-image img,
.product-gallery img,
.product-main-image img,
.detail-image img,
.product-card-media img,
.product-card img,
.product-image img,
.order-item-image img,
.order-detail-item img,
.checkout-item-image img,
.cart-item-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background-color: #FFFDF9 !important;
}

/* Give Product Detail main image container a clean, responsive, non-cropping frame */
.product-detail-media,
.product-detail-image,
.product-gallery,
.product-main-image,
.detail-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #FFFDF9 !important;
  border: 1px solid #E6D5B8 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  aspect-ratio: 1 / 1 !important;
  max-height: 440px !important;
  width: 100% !important;
}

@media (max-width: 767px) {
  .product-detail-media,
  .product-detail-image,
  .product-gallery,
  .product-main-image,
  .detail-image {
    max-height: 360px !important;
    padding: 8px !important;
  }
}
