/* Arta Jewellery custom theme */

/* 1) Global theme colors – dark navy + soft gold */
:root{
  --primary: #0b1a33;
  --hov-primary: #12264a;
  --soft-primary: rgba(11, 26, 51, 0.08);

  --secondary-base: #e0b15a;
  --hov-secondary-base: #c59537;
  --soft-secondary-base: rgba(224, 177, 90, 0.15);
}

/* 2) Product page card layout */
.product-page-section {
  background-color: #f5f7fb;
}

.product-page-card {
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  padding: 24px;
}

@media (max-width: 991.98px) {
  .product-page-card {
    padding: 18px;
  }
}

/* 3) Product details modern typography */
.product-details-modern h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.product-details-modern .rating {
  display: inline-flex;
  align-items: center;
}

.product-details-modern .rating-count {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Price area */
.product-details-modern .fs-16.fw-700.text-primary {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary) !important;
}

.product-details-modern del {
  text-decoration: line-through;
  color: #9ca3af;
  margin-left: 0.5rem;
}

.product-details-modern .bg-secondary-base {
  border-radius: 999px;
}

/* Meta info (SKU, stock, etc.) */
.product-details-modern .product-meta-row,
.product-details-modern .row.no-gutters.mb-3 {
  font-size: 0.9rem;
  color: #4b5563;
}

.product-details-modern .product-meta-label,
.product-details-modern .text-secondary {
  color: #6b7280 !important;
}

/* Quantity row */
.product-details-modern .product-qty-row,
.product-details-modern .row.no-gutters.align-items-center {
  align-items: center;
  gap: 12px;
}

.product-details-modern .aiz-plus-minus {
  border-radius: 999px;
  overflow: hidden;
}

/* Primary action buttons */
.product-details-modern .btn-primary,
.product-details-modern .btn-secondary-base {
  border-radius: 999px;
  padding: 0.65rem 1.7rem;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.22);
  border-width: 0;
}

.product-details-modern .btn-primary:hover,
.product-details-modern .btn-secondary-base:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}

.product-details-modern .btn-primary:active,
.product-details-modern .btn-secondary-base:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}

/* Wishlist + small links row */
.product-details-modern .wishlist-compare-row a,
.product-details-modern .fs-14.text-dark.opacity-60 {
  font-size: 0.9rem;
}

/* Share row icons */
.product-details-modern .aiz-share {
  display: flex;
  gap: 8px;
}

/* Spacing tweaks for mobile */
@media (max-width: 767.98px) {
  .product-details-modern {
    margin-top: 1.5rem;
  }

  .product-details-modern h2 {
    font-size: 1.25rem;
  }

  .product-details-modern .btn-primary,
  .product-details-modern .btn-secondary-base {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }
}

/* 4) Square 1:1 product image gallery */
.product-gallery-main {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-main .carousel-box {
  width: 100%;
  height: 100%;
}

.product-gallery-main img,
.product-gallery-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback for very old browsers without aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
  .product-gallery-main {
    padding-top: 100%;
  }
  .product-gallery-main .carousel-box {
    position: absolute;
    top: 0;
    left: 0;
  }
}

/* Thumbnails */
.product-gallery-thumb .carousel-box img {
  border-radius: 8px;
}

/* Disable sticky behaviour of gallery on small screens */
@media (max-width: 991.98px) {
  .sticky-top.z-3.row.gutters-10 {
    position: static;
  }
}

.aiz-whatsapp-chat-button{
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  left: auto !important;
  top: auto !important;
  z-index: 2147483002 !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: #25d366 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.22) !important;
  margin: 0 !important;
}

.aiz-whatsapp-chat-button:hover{
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
}

.aiz-whatsapp-chat-button img{
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.aiz-whatsapp-chat-button i{
  font-size: 34px;
  color: #fff;
  line-height: 1;
}

@media (max-width: 767.98px) {
  .aiz-whatsapp-chat-button{
    bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.arta-category-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 768px) {
  .arta-category-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .arta-category-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .arta-category-grid{
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.arta-category-card{
  display: block;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.arta-category-card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,.14);
  box-shadow: 0 14px 32px rgba(0,0,0,.10);
}

.arta-category-thumb{
  position: relative;
  width: 100%;
  padding-top: 78%;
  background: #f6f6f6;
}

.arta-category-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arta-category-name{
  padding: 12px 12px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #111;
}

.arta-offer-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.arta-offer-tabs{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.arta-offer-tab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.arta-offer-tab:hover{
  border-color: rgba(0,0,0,.16);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  text-decoration: none;
  color: #111;
}

.arta-offer-tab.active{
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.arta-offer-tabs{
  scrollbar-width: none;
}

.arta-offer-tabs::-webkit-scrollbar{
  width: 0;
  height: 0;
}

@media (max-width: 575.98px) {
  .arta-offer-filters{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .arta-offer-tabs{
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 2px;
  }

  .arta-offer-tabs + .arta-offer-tabs{
    border-top: 1px solid rgba(0,0,0,.10);
    padding-top: 12px;
  }

  .arta-offer-tab{
    padding: 7px 10px;
    font-size: 12px;
    flex: 0 0 auto;
  }
}

.arta-offer-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 768px) {
  .arta-offer-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .arta-offer-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .arta-offer-grid{
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.arta-offer-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease, opacity .15s ease;
}

.arta-offer-card.is-active:hover{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,.16);
  box-shadow: 0 16px 36px rgba(0,0,0,.10);
}

.arta-offer-card.is-inactive{
  opacity: .65;
  filter: grayscale(1);
}

.arta-offer-top{
  padding: 14px 14px 42px;
  position: relative;
}

.arta-offer-top--flash_deal{
  background: linear-gradient(135deg, #0d6efd, #3a8bfd);
}

.arta-offer-top--buy_get{
  background: linear-gradient(135deg, #00b894, #2ecc71);
}

.arta-offer-top--coupon{
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.arta-offer-type{
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
}

.arta-offer-logo{
  position: absolute;
  left: 14px;
  bottom: -26px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.arta-offer-logo img{
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.arta-offer-logo i{
  font-size: 34px;
  line-height: 1;
  color: var(--primary);
}

.arta-offer-logo--flash_deal i{
  color: var(--primary);
}

.arta-offer-logo--buy_get i{
  color: #00b894;
}

.arta-offer-logo--coupon i{
  color: #6c5ce7;
}

.arta-offer-body{
  padding: 44px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.arta-offer-title{
  font-weight: 900;
  font-size: 16px;
  color: #111;
  line-height: 1.25;
  min-height: 40px;
}

.arta-offer-status{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.arta-offer-pill{
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.arta-offer-pill--active{
  background: rgba(46, 204, 113, .12);
  color: #1e824c;
}

.arta-offer-pill--inactive{
  background: rgba(0,0,0,.08);
  color: #333;
}

.arta-offer-expiry{
  font-size: 12px;
  color: rgba(17,17,17,.72);
  font-weight: 600;
}

.arta-offer-code{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 12px;
  padding: 10px 10px;
  margin-bottom: 12px;
}

.arta-offer-code-value{
  font-weight: 900;
  letter-spacing: .8px;
  font-size: 14px;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arta-offer-code-copy{
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(13,110,253,.12);
  color: #0d6efd;
  font-weight: 900;
  font-size: 12px;
}

.arta-offer-code-copy:hover{
  background: rgba(13,110,253,.16);
}

.arta-offer-cta{
  border-radius: 12px;
  font-weight: 800;
  margin-top: auto;
}

.arta-offer-cta--disabled{
  cursor: not-allowed;
}

.arta-offer-banner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 162, 74, 0.35);
  background: #fff7cc;
  color: #0b1f3a;
  margin-bottom: 12px;
}

.arta-offer-banner.is-applied{
  border-color: rgba(34, 197, 94, 0.35);
  background: #dcfce7;
  color: #14532d;
}

.arta-offer-text{
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.arta-offer-btn{
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.arta-offer-btn:not(:disabled):hover{
  background: var(--hov-primary);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(11, 26, 51, 0.22);
}

.arta-offer-btn:not(:disabled):active{
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(11, 26, 51, 0.18);
}

.arta-offer-btn:disabled{
  cursor: not-allowed;
  opacity: 1;
}

.arta-offer-banner.is-applied .arta-offer-btn{
  background: rgba(34, 197, 94, 0.14);
  color: #14532d;
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.arta-offer-btn-applied{
  display: none;
}

.arta-offer-banner.is-applied .arta-offer-btn-apply{
  display: none;
}

.arta-offer-banner.is-applied .arta-offer-btn-applied{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-bar-area .container > .d-flex{
  min-width: 0;
}

.logo-bar-area .header-menus-container{
  flex: 1 1 0;
  min-width: 0;
}

.logo-bar-area .header-menus-container .hor-swipe{
  max-width: 100%;
}

.logo-bar-area #cart_items{
  width: auto !important;
  min-width: 0;
}

.logo-bar-area #cart_items > a{
  min-width: 0;
}

.logo-bar-area #cart_items .fs-14,
.logo-bar-area #cart_items .nav-box-text{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1200px){
  .logo-bar-area #cart_items .fs-14{
    max-width: 120px;
    display: inline-block;
  }
  .logo-bar-area #cart_items .nav-box-text{
    max-width: 110px;
    display: inline-block;
  }
  .logo-bar-area #nav-user-info h4{
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 992px){
  .logo-bar-area .header-menus-container .header_menu_links{
    padding-left: .75rem !important;
    padding-right: .75rem !important;
  }
}

.checkout-payment-options .aiz-megabox-elem{
  gap: 10px;
}

.checkout-payment-options .aiz-megabox-elem .rounded-1.h-40px{
  flex: 0 0 auto;
  width: 110px;
  max-width: 42vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.checkout-payment-options .aiz-megabox-elem .rounded-1.h-40px img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

@media (max-width: 575.98px){
  .checkout-payment-options .aiz-megabox-elem .rounded-1.h-40px{
    width: 140px;
  }
}
