@import url(fonts.css);

/* Compact, anchored navigation for phone screens. */
@media (max-width: 991.98px) {
  .mobile-menu {
    position: relative;
    z-index: 1050;
    direction: rtl;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    min-width: 76px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
  }

  .mobile-menu-toggle::-webkit-details-marker {
    display: none;
  }

  .mobile-menu-panel {
    position: fixed;
    top: 160px;
    right: max(12px, calc((100vw - 720px) / 2));
    z-index: 1051;
    width: min(300px, calc(100vw - 24px));
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(20, 25, 35, .16);
    text-align: right;
  }

  .mobile-menu-panel .list-group-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 11px 16px;
    border: 0;
    border-bottom: 1px solid #f0f1f3;
    font-size: 14px;
  }

  .mobile-menu-panel .list-group-item:last-child {
    border-bottom: 0;
  }
}

/* Keep the footer at the bottom on short account pages. */
html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

body *{
  font-family: Vazirmatn, system-ui, sans-serif;
}

* {
    font-family: Vazirmatn;
}



/* img.card-img-top {

  height: 150px;

} */

/* Product card overrides: consistent image crop and aligned card content. */
img.card-img-top {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: #f0f1ec;
}

.product-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid #e4e5e8;
  border-radius: 14px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card > a {
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
}

.product-card-image {
  transition: transform .3s ease;
}

.product-card:hover {
  box-shadow: 0 10px 26px rgba(22, 31, 48, .12);
  transform: translateY(-3px);
}

.product-card:hover .product-card-image {
  transform: scale(1.035);
}

.product-card .card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1rem;
}

.product-card .card-body > .d-flex:first-child {
  min-height: 32px;
}

.product-card .card-body h2,
.product-card .card-body h3 {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.4;
}

.product-card .card-body > p {
  min-height: 1.5em;
}

.product-card .card-body strong {
  font-size: .95rem;
  font-weight: 800;
}

@media (max-width: 575.98px) {
  .product-card .card-body {
    padding: .8rem;
  }
}

/* Mobile image/card correction overrides. Fixed image boxes plus cover prevent stretching. */
img.card-img-top:not(.product-card-image) {
  width: 100%;
  height: clamp(135px, 16vw, 185px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.product-card img.product-card-image {
  display: block;
  width: 100%;
  height: clamp(155px, 19vw, 220px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.product-card .card-body > .d-flex:first-child {
  min-height: 38px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.product-card .badge {
  max-width: 58%;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: .68rem;
  line-height: 1.35;
  text-align: center;
}

.product-card .card-body h2,
.product-card .card-body h3 {
  min-height: 2.8em;
  margin-bottom: .55rem;
  font-size: .95rem;
}

.product-card .card-body > p {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.4;
}

@media (max-width: 575.98px) {
  img.card-img-top:not(.product-card-image) {
    height: 135px;
  }

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

  .product-card .card-body {
    padding: .7rem;
  }

  .product-card .card-body h2,
  .product-card .card-body h3 {
    font-size: .82rem;
  }

  .product-card .card-body strong {
    font-size: .78rem;
    line-height: 1.5;
  }
}

/* Instagram-style category stories */
.story-row {
  direction: rtl;
  gap: 16px !important;
  margin: 0;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.story-row::-webkit-scrollbar { display: none; }
.story-link { display: flex; flex: 0 0 94px; flex-direction: column; align-items: center; gap: 8px; color: inherit; text-align: center; scroll-snap-align: start; }
.story-ring { display: block; width: 86px; height: 86px; padding: 3px; border-radius: 50%; background: conic-gradient(#ffc800, #ff7a35, #e83275, #a53acb, #ffc800); transition: transform .2s ease; }
.story-link:hover .story-ring, .story-link:focus-visible .story-ring { transform: scale(1.06); }
.story-ring-inner { display: block; width: 100%; height: 100%; padding: 3px; overflow: hidden; background: var(--surface, #fff); border: 2px solid #fff; border-radius: 50%; }
.story-ring img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 50%; }
.story-label { max-width: 100%; overflow: hidden; color: var(--text, #252a27); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 575.98px) {
  .story-row { gap: 12px !important; margin-inline: -4px; padding-inline: 4px; }
  .story-link { flex-basis: 82px; gap: 6px; }
  .story-ring { width: 74px; height: 74px; }
  .story-label { font-size: 11px; }
}

/* Requested fixed product-card height. */
article.card.h-100.product-card {
  height: 400px !important;
  min-height: 400px;
}

article.card.h-100.product-card img.product-card-image {
  height: 190px;
  flex: 0 0 190px;
}

@media (max-width: 575.98px) {
  article.card.h-100.product-card img.product-card-image {
    height: 155px;
    flex-basis: 155px;
  }
}

/* Final forced sizing overrides for story circles and image crops. */
.story-row > a.story-link {
  display: flex !important;
  width: 94px !important;
  min-width: 94px !important;
  max-width: 94px !important;
  flex: 0 0 94px !important;
  align-items: center !important;
}

.story-row .story-ring {
  display: block !important;
  box-sizing: border-box !important;
  width: 84px !important;
  min-width: 84px !important;
  max-width: 84px !important;
  height: 84px !important;
  min-height: 84px !important;
  max-height: 84px !important;
  flex: 0 0 84px !important;
  overflow: hidden !important;
  padding: 3px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: conic-gradient(#ffc800, #ff7a35, #e83275, #a53acb, #ffc800) !important;
  line-height: 0;
}

.story-row .story-ring img {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
}

.product-card > a {
  display: block !important;
  width: 100%;
  flex: 0 0 auto !important;
  overflow: hidden !important;
}

.product-card > a > img.product-card-image {
  display: block !important;
  width: 100% !important;
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 575.98px) {
  .story-row > a.story-link {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    flex-basis: 80px !important;
  }

  .story-row .story-ring {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    flex-basis: 70px !important;
  }

  .product-card > a > img.product-card-image {
    height: 155px !important;
    min-height: 155px !important;
    max-height: 155px !important;
  }
}

/* Product card typography and spacing */
article.card.h-100.product-card > .card-body {
  min-height: 0;
  padding: 16px 16px 18px;
  gap: 0;
}

article.card.h-100.product-card .card-body > .d-flex:first-child {
  min-height: 0;
  flex-wrap: nowrap;
  gap: 6px !important;
  margin: 0 0 8px !important;
}

article.card.h-100.product-card .card-body > .d-flex:first-child .badge {
  max-width: 50%;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.35;
}

article.card.h-100.product-card .card-body h2,
article.card.h-100.product-card .card-body h3 {
  min-height: 2.7em;
  margin: 0 0 5px !important;
  font-size: 16px;
  line-height: 1.4;
}

article.card.h-100.product-card .card-body > p {
  min-height: 0;
  margin: 0 0 8px !important;
  font-size: 13px;
  line-height: 1.5;
}

article.card.h-100.product-card .card-body > .mt-auto {
  margin-top: auto !important;
  padding-top: 8px;
  border-top: 1px solid #eef0f2;
  line-height: 1.5;
}

article.card.h-100.product-card .card-body > .mt-auto strong {
  display: block;
  font-size: 16px;
  line-height: 1.6;
}

article.card.h-100.product-card .card-body > .mt-auto del {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 575.98px) {
  article.card.h-100.product-card > .card-body {
    padding: 9px 10px 11px;
  }

  article.card.h-100.product-card .card-body > .d-flex:first-child {
    margin-bottom: 6px !important;
    gap: 4px !important;
  }

  article.card.h-100.product-card .card-body > .d-flex:first-child .badge {
    padding: 3px 5px;
    font-size: 9px;
  }

  article.card.h-100.product-card .card-body h2,
  article.card.h-100.product-card .card-body h3 {
    min-height: 2.6em;
    margin-bottom: 4px !important;
    font-size: 12px;
  }

  article.card.h-100.product-card .card-body > p {
    margin-bottom: 6px !important;
    font-size: 10px;
  }

  article.card.h-100.product-card .card-body > .mt-auto {
    padding-top: 6px;
  }

  article.card.h-100.product-card .card-body > .mt-auto strong {
    font-size: 12px;
  }

  article.card.h-100.product-card .card-body > .mt-auto del {
    font-size: 10px;
  }
}





  /* ========================================
       Product Detail - PAVIK
    ======================================== */

    .product-page {
        color: #212529;
        direction: rtl;
    }

    .product-page a {
        text-decoration: none;
    }

    .product-breadcrumb {
        font-size: .82rem;
    }

    .product-breadcrumb a {
        color: #777;
    }

    .product-breadcrumb .breadcrumb-item.active {
        color: #343a40;
        font-weight: 600;
    }

    /* Main layout */

    .product-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.4fr) minmax(260px, .85fr);
        gap: 24px;
        align-items: start;
    }

    /* Gallery */

    .product-gallery {
        position: relative;
    }

    .product-main-image-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border: 1px solid #ededed;
        border-radius: 16px;
        background: #f8f9fa;
    }

    .product-main-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 12px;
    }

    .product-discount-badge {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 2;
        padding: 6px 11px;
        border-radius: 8px;
        background: #dc3545;
        color: #fff;
        font-size: .8rem;
        font-weight: 700;
    }

    .product-thumbnails {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 9px;
        margin-top: 12px;
    }

    .product-thumbnail {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        aspect-ratio: 1 / 1;
        padding: 5px;
        overflow: hidden;
        border: 1px solid #e5e5e5;
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
        transition: border-color .2s, box-shadow .2s;
    }

    .product-thumbnail:hover,
    .product-thumbnail.active {
        border: 2px solid #dc3545;
        box-shadow: 0 0 0 2px rgba(220, 53, 69, .08);
    }

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

    .gallery-empty {
        color: #999;
        font-size: .9rem;
    }

    /* Product information */

    .product-information {
        min-width: 0;
    }

    .product-special-badge {
        display: inline-block;
        margin-bottom: 10px;
        padding: 5px 10px;
        border-radius: 7px;
        background: #fff0f1;
        color: #dc3545;
        font-size: .78rem;
        font-weight: 700;
    }

    .product-title {
        margin-bottom: 12px;
        font-size: clamp(1.15rem, 2vw, 1.5rem);
        font-weight: 800;
        line-height: 1.9;
    }

    .product-short-description {
        color: #777;
        font-size: .9rem;
        line-height: 2;
        overflow-wrap: anywhere;
    }

    .product-divider {
        height: 1px;
        margin: 22px 0;
        background: #ededed;
    }

    .product-option-section {
        margin-bottom: 24px;
    }

    .product-option-title {
        margin-bottom: 13px;
        font-size: .95rem;
        font-weight: 800;
    }

    .product-option-list {
        display: flex;
        flex-wrap: wrap;
        gap: 9px;
    }

    .product-option-input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .product-option-label {
        display: inline-flex;
        min-width: 43px;
        min-height: 43px;
        align-items: center;
        justify-content: center;
        padding: 8px 14px;
        border: 1px solid #dedede;
        border-radius: 9px;
        background: #fff;
        color: #444;
        font-size: .87rem;
        cursor: pointer;
        transition: all .2s ease;
    }

    .product-option-input:checked + .product-option-label {
        border-color: #dc3545;
        background: #fff5f5;
        color: #dc3545;
        font-weight: 800;
    }

    .product-option-input:focus-visible + .product-option-label {
        outline: 3px solid rgba(220, 53, 69, .2);
    }

    .product-option-input:disabled + .product-option-label {
        opacity: .4;
        cursor: not-allowed;
        text-decoration: line-through;
    }

    .product-stock-hint {
        margin-top: 9px;
        color: #888;
        font-size: .77rem;
    }

    /* General specifications */

    .product-general-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 13px;
    }

    .product-info-item {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 12px;
        border-radius: 10px;
        background: #f8f9fa;
    }

    .product-info-label {
        color: #888;
        font-size: .75rem;
    }

    .product-info-value {
        font-size: .85rem;
        font-weight: 700;
    }

    /* Purchase card */

    .purchase-sticky {
        position: sticky;
        top: 20px;
    }

    .purchase-card {
        padding: 20px;
        border: 1px solid #e9e9e9;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
    }

    .purchase-title {
        margin-bottom: 18px;
        font-size: 1rem;
        font-weight: 800;
    }

    .purchase-stock {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: .82rem;
    }

    .stock-available {
        color: #198754;
        font-weight: 700;
    }

    .stock-unavailable {
        color: #dc3545;
        font-weight: 700;
    }

    .purchase-divider {
        height: 1px;
        margin: 17px 0;
        background: #eee;
    }

    .purchase-price-label {
        margin-bottom: 10px;
        color: #888;
        font-size: .8rem;
    }

    .purchase-old-price {
        color: #999;
        font-size: .83rem;
        text-decoration: line-through;
    }

    .purchase-price {
        color: #212529;
        font-size: 1.55rem;
        font-weight: 900;
        line-height: 1.7;
    }

    .purchase-price.discounted {
        color: #dc3545;
    }

    .purchase-price-currency {
        font-size: .8rem;
        font-weight: 500;
    }

    .purchase-discount {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 6px;
        background: #dc3545;
        color: #fff;
        font-size: .75rem;
        font-weight: 700;
    }

    /* Quantity */

    .quantity-control {
        display: flex;
        width: 150px;
        height: 43px;
        overflow: hidden;
        border: 1px solid #dedede;
        border-radius: 9px;
    }

    .quantity-control button {
        width: 42px;
        border: 0;
        background: #f8f9fa;
        color: #333;
        font-size: 1.1rem;
        cursor: pointer;
    }

    .quantity-control button:hover {
        background: #eee;
    }

    .quantity-control input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        text-align: center;
        font-weight: 700;
    }

    .add-to-cart-button {
        min-height: 50px;
        border-radius: 10px;
        font-weight: 800;
    }

    .purchase-benefits {
        display: grid;
        gap: 15px;
    }

    .purchase-benefit {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #666;
        font-size: .8rem;
    }

    .purchase-benefit-icon {
        display: flex;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        background: #f7f7f7;
        font-size: 1rem;
    }

    /* Full description */

    .product-description-section {
        margin-top: 35px;
        padding: 25px;
        border: 1px solid #ededed;
        border-radius: 15px;
        background: #fff;
    }

    .product-description-heading {
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
        font-size: 1.05rem;
        font-weight: 800;
    }

    .product-description-content {
        color: #555;
        font-size: .9rem;
        line-height: 2.3;
        overflow-wrap: anywhere;
    }

    /* Responsive */

    @media (max-width: 1199.98px) {
        .product-layout {
            grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(230px, .85fr);
            gap: 16px;
        }

        .purchase-card {
            padding: 16px;
        }

        .product-thumbnails {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }

    @media (max-width: 991.98px) {
        .product-layout {
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 22px;
        }

        .product-gallery {
            grid-column: 1;
            grid-row: 1;
        }

        .product-information {
            grid-column: 2;
            grid-row: 1;
        }

        .product-purchase {
            grid-column: 1 / -1;
            grid-row: 2;
        }

        .purchase-sticky {
            position: static;
        }

        .purchase-card {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px 25px;
            align-items: center;
        }

        .purchase-card > * {
            min-width: 0;
        }

        .purchase-title,
        .purchase-divider,
        .purchase-benefits {
            grid-column: 1 / -1;
        }

        .purchase-title {
            margin-bottom: 0;
        }

        .purchase-divider {
            margin: 0;
        }
    }

    @media (max-width: 767.98px) {
        .product-layout {
            grid-template-columns: minmax(0, 1fr);
            gap: 20px;
        }

        .product-gallery,
        .product-information,
        .product-purchase {
            grid-column: 1;
            grid-row: auto;
        }

        .product-gallery {
            max-width: 550px;
            width: 100%;
            margin-inline: auto;
        }

        .product-information {
            padding: 0 2px;
        }

        .purchase-card {
            display: block;
        }

        .purchase-title {
            margin-bottom: 18px;
        }

        .purchase-divider {
            margin: 17px 0;
        }

        .purchase-benefits {
            margin-top: 18px;
        }

        .product-description-section {
            padding: 18px;
        }
    }

    @media (max-width: 575.98px) {
        .product-page {
            padding-top: 12px !important;
        }

        .product-breadcrumb {
            margin-bottom: 15px !important;
            font-size: .72rem;
        }

        .product-layout {
            gap: 17px;
        }

        .product-main-image-wrapper {
            border-radius: 12px;
        }

        .product-thumbnails {
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 6px;
            margin-top: 9px;
        }

        .product-thumbnail {
            border-radius: 8px;
        }

        .product-title {
            font-size: 1.1rem;
        }

        .product-short-description {
            font-size: .83rem;
        }

        .product-divider {
            margin: 17px 0;
        }

        .product-option-label {
            min-width: 40px;
            min-height: 40px;
            padding: 7px 11px;
            font-size: .82rem;
        }

        .purchase-card {
            padding: 16px;
        }

        .purchase-price {
            font-size: 1.4rem;
        }

        .product-description-section {
            margin-top: 22px;
            padding: 15px;
        }

        .product-general-info {
            gap: 8px;
        }

        .product-info-item {
            padding: 10px;
        }
    }



  
/* ================================
   PAVIK SHOP PAGE
================================ */

.shop-page {
    direction: rtl;
}

.shop-breadcrumb {
    font-size: 13px;
}

.shop-breadcrumb a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.shop-heading {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bs-border-color);
}

/* Toolbar */

.shop-toolbar {
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-body-bg);
    overflow: hidden;
}

.shop-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
}

.shop-result-title {
    font-size: 14px;
}

.shop-sort-row {
    padding: 12px 18px;
    border-top: 1px solid var(--bs-border-color);
}

.shop-sort-label {
    color: var(--bs-secondary-color);
    font-size: 13px;
    white-space: nowrap;
}

.shop-sort-option {
    border: 0;
    background: transparent;
    color: var(--bs-secondary-color);
    padding: 5px 9px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
}

.shop-sort-option:hover,
.shop-sort-option.active {
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.shop-mobile-filter {
    font-size: 13px;
}

/* Filter panel */

.shop-filter-panel {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
}

.shop-filter-body {
    display: block;
    padding: 18px;
}

.shop-filter-title {
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 15px;
    padding-bottom: 17px;
}

.shop-filter-group {
    padding: 17px 0;
    border-top: 1px solid var(--bs-border-color);
}

.shop-filter-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.shop-filter-search {
    position: relative;
}

.shop-filter-search i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-secondary-color);
}

.shop-filter-search input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    padding: 8px 36px 8px 10px;
    font-size: 12px;
    outline: none;
}

.shop-filter-search input:focus,
.shop-price-inputs input:focus {
    border-color: var(--bs-primary);
}

.shop-price-inputs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.shop-price-inputs > div {
    flex: 1;
    min-width: 0;
}

.shop-price-inputs label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--bs-secondary-color);
}

.shop-price-inputs input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 7px;
    border: 1px solid var(--bs-border-color);
    border-radius: 7px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: 12px;
    outline: none;
}

.shop-check-option {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    margin-top: 13px;
    cursor: pointer;
}

.shop-check-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--bs-primary);
}

.shop-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.shop-filter-actions .btn {
    font-size: 13px;
    padding: 10px;
}

/* Product cards */

.shop-product-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-body-bg);
    transition: box-shadow .2s ease, transform .2s ease;
}

.shop-product-card:hover {
    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
    transform: translateY(-3px);
}

.shop-product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.shop-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bs-tertiary-bg);
}

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

.shop-product-card:hover .shop-product-image img {
    transform: scale(1.04);
}

.shop-discount {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--bs-danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.shop-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary-color);
    font-size: 35px;
}

.shop-product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px;
}

.shop-product-title {
    font-size: 13px;
    line-height: 1.9;
    font-weight: 500;
    color: var(--bs-body-color);
    margin: 0 0 16px;
    min-height: 48px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-product-price-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-top: auto;
}

.shop-old-price {
    color: var(--bs-secondary-color);
    font-size: 11px;
    text-decoration: line-through;
}

.shop-product-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--bs-body-color);
}

.shop-product-price small {
    font-size: 11px;
    font-weight: 400;
}

.shop-stock {
    margin-top: 10px;
    font-size: 11px;
}

.shop-stock.available {
    color: var(--bs-success);
}

.shop-stock.unavailable {
    color: var(--bs-danger);
}

/* Empty state */

.shop-empty {
    text-align: center;
    padding: 65px 15px;
    border: 1px dashed var(--bs-border-color);
    border-radius: 12px;
}

.shop-empty > i {
    font-size: 42px;
    color: var(--bs-secondary-color);
}

.shop-empty h3 {
    font-size: 17px;
    margin-top: 15px;
}

.shop-empty p {
    color: var(--bs-secondary-color);
    font-size: 13px;
}

/* Desktop */

@media (min-width: 992px) {
    .shop-filter-panel {
        position: sticky;
        top: 20px;
        display: block !important;
        height: auto !important;
        visibility: visible !important;
        transform: none !important;
    }

    .shop-filter-body {
        overflow: visible;
    }
}

/* Mobile */

@media (max-width: 991.98px) {
    .shop-filter-panel {
        --bs-offcanvas-width: min(88vw, 380px);
        border-radius: 0;
        border: 0;
    }

    .shop-filter-header {
        border-bottom: 1px solid var(--bs-border-color);
    }

    .shop-filter-body {
        padding: 18px;
    }

    .shop-toolbar-top {
        padding: 12px;
    }

    .shop-sort-row {
        padding: 10px 12px;
        overflow-x: auto;
    }

    .shop-sort-row > div {
        flex-wrap: nowrap !important;
        width: max-content;
    }

    .shop-sort-option {
        white-space: nowrap;
    }

    .shop-product-content {
        padding: 9px;
    }

    .shop-product-title {
        font-size: 12px;
    }

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


/* ========================================
   Mobile Sticky Add To Cart
======================================== */

.mobile-sticky-cart {
    display: none;
}

@media (max-width: 991.98px) {

    .mobile-sticky-cart {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;

        z-index: 1050;

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

        gap: 12px;

        padding: 12px 16px;

        background: #fff;

        border-top: 1px solid #e9e9e9;

        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);

        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .mobile-sticky-price {
        display: flex;
        flex-direction: column;
        gap: 3px;

        white-space: nowrap;
    }

    .mobile-sticky-price del {
        color: #999;
        font-size: 11px;
    }

    .mobile-sticky-price strong {
        font-size: 15px;
        font-weight: 800;
        color: #222;
    }

    .mobile-sticky-price small {
        font-size: 10px;
        font-weight: 500;
    }

    .mobile-sticky-cart-button {
        flex: 1;

        min-height: 46px;

        border-radius: 12px;

        font-size: 14px;
        font-weight: 700;

        white-space: nowrap;
    }

    /* Prevent content from being hidden behind sticky bar */
    .product-page {
        padding-bottom: 100px !important;
    }

}

@media (min-width: 992px) {
    .mobile-sticky-cart {
        display: none !important;
    }
}





   /* Shop layout */
    .shop-layout {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        grid-template-areas: "filters products";
        gap: 20px;
        align-items: start;
        direction: rtl;
    }

    .shop-filters {
        grid-area: filters;
        min-width: 0;
    }

    .shop-products {
        grid-area: products;
        min-width: 0;
    }

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

    .shop-products-grid > * {
        min-width: 0;
    }

    .shop-filter-toggle-input {
        display: none;
    }

    .shop-filter-toggle {
        display: none;
    }

    .shop-filter-close,
    .shop-filter-backdrop {
        display: none;
    }

    .shop-sort-options {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
    }

    .shop-sort-options button {
        border: 0;
        background: transparent;
        padding: 5px 2px;
        color: var(--text, #555);
        cursor: pointer;
        font-size: 13px;
    }

    .shop-sort-options button:hover,
    .shop-sort-options button.active {
        color: var(--primary, #d32f2f);
        font-weight: 700;
    }

    .shop-product-description {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.7;
        font-size: 12px;
    }

    /* Tablet */
    @media (min-width: 768px) and (max-width: 1199.98px) {
        .shop-layout {
            grid-template-columns: 245px minmax(0, 1fr);
            gap: 14px;
        }

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

    /* Mobile */
    @media (max-width: 991.98px) {
        .shop-layout {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .shop-products {
            order: 1;
            width: 100%;
        }

        .shop-filters {
            order: 2;
            width: 100%;
        }

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

        .shop-filter-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            cursor: pointer;
        }

        .shop-filter-panel {
            position: fixed;
            z-index: 1060;
            top: 0;
            right: 0;
            bottom: 0;
            width: min(88vw, 380px);
            height: 100dvh;
            overflow-y: auto;
            background: var(--surface, #fff);
            padding: 18px;
            border-radius: 0;
            transform: translateX(110%);
            visibility: hidden;
            transition: transform .25s ease, visibility .25s ease;
        }

        .shop-filter-toggle-input:checked
        ~ .shop-layout .shop-filter-panel {
            transform: translateX(0);
            visibility: visible;
        }

        .shop-filter-toggle-input:checked
        ~ .shop-layout .shop-filter-backdrop {
            display: block;
            position: fixed;
            inset: 0;
            z-index: 1055;
            background: rgba(0, 0, 0, .45);
            cursor: pointer;
        }

        .shop-filter-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding-bottom: 14px;
            border-bottom: 1px solid #e5e5e5;
        }

        .shop-filter-close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border-radius: 8px;
            background: #f1f1f1;
            cursor: pointer;
            font-size: 22px;
        }
    }

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

p.card-text.shop-product-description.text-dark {
    color: black !important;;
}

h3.card-title.h6.text-dark
 {
    color: black !important;; 
}
strong {
    color: black !important;;
}
