/* Full-page hero slider on the products page */
.mySwiper,
.mySwiper .swiper-slide {
    height: 100vh;
}

/* Category tiles: reuse .portfolio-box-1 but lay out as exactly 4 across */
.product-category-grid {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 991px) {
    .product-category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .product-category-grid { grid-template-columns: 1fr; }
}

/* Category label: near-full-width sharp-cornered box floating inside the
   image with a visible gap below it, sized to fit within the image so it
   never overhangs and gets clipped by the next section. */
.product-category-grid .portfolio-box-1 .content {
    left: 20px;
    right: 20px;
    top: 71.9%;
    bottom: 24px;
    width: auto;
    margin-left: 0;
    padding: 26px 36px;
    border-radius: 25px !important;
}
.product-category-grid .portfolio-box-1:hover .content {
    top: 50%;
    padding: 28px 36px;
}

/* Category filter tabs */
.product-tabs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0 0 50px;
}
.product-tabs li {
    cursor: pointer;
    padding: 10px 26px;
    border: 1px solid #e4e6ec;
    border-radius: 999px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #666;
    transition: all .25s ease;
}
.product-tabs li:hover {
    border-color: #f9b842;
    color: #0e1927;
}
.product-tabs li.active {
    background: #f9b842;
    border-color: #f9b842;
    color: #0e1927;
    font-weight: 500;
}

/* Product grid + cards */
.product-listing {
    padding: 100px 0;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
@media (max-width: 991px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; gap: 16px; }
}

.product-card {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .25s ease, transform .25s ease;
}
.product-card:hover {
    box-shadow: 0 14px 30px -12px rgba(14, 25, 39, .18);
    transform: translateY(-4px);
}
.product-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card-body {
    padding: 16px 18px 20px;
}
.product-card-cate {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #f9b842;
}
.product-card-name {
    font-family: "Cinzel", serif;
    font-size: 16px;
    color: #0e1927;
    margin: 6px 0 12px;
    text-transform: uppercase;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-card-price {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    color: #0e1927;
}
.product-card-price small {
    font-weight: 400;
    color: #999;
    font-size: 11px;
}
.product-card-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0e1927;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background .25s ease;
}
.product-card:hover .product-card-arrow {
    background: #f9b842;
    color: #0e1927;
}

/* Product detail page */
.product-detail {
    padding: 30px 0;
}
.product-detail-row {
    align-items: flex-start;
}
.product-detail .info {
    display: flex;
    flex-direction: column;
}
.product-detail .gallery-sticky {
    position: sticky;
    top: 100px;
    aspect-ratio: 1 / 1;
    display: flex;
    gap: 12px;
}
.product-detail .product-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 76px;
    flex-shrink: 0;
}
.product-detail .product-gallery-thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    border: 1.5px solid #e4e6ec;
    cursor: pointer;
    transition: border-color .2s ease;
}
.product-detail .product-gallery-thumbs img.active {
    border-color: #f9b842;
}
.product-detail .product-gallery-main {
    flex: 1;
    min-width: 0;
    height: 100%;
}
.product-detail .gallery img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}
.product-detail .product-gallery-swiper {
    display: none;
}
.product-detail .info {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 140px);
}
.product-detail .info-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.product-detail .info-scroll::-webkit-scrollbar {
    display: none;
}
.product-detail .info-actions {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 18px;
    margin-top: 6px;
    border-top: 1px solid #eee;
    background: #fff;
}
.product-detail .info-actions .tf-button {
    flex: 1;
    text-align: center;
}
.qty-stepper {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    border: 1px solid #e4e6ec;
    border-radius: 6px;
    overflow: hidden;
    width: 130px;
}
.info-actions .qty-stepper {
    flex-basis: 100%;
}
.qty-stepper .qty-btn {
    width: 38px;
    border: none;
    background: #f7f8fa;
    color: #0e1927;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s ease;
}
.qty-stepper .qty-btn:hover {
    background: #f9b842;
}
.qty-stepper .qty-input {
    flex: 1;
    width: 0;
    min-width: 0;
    border: none;
    border-left: 1px solid #e4e6ec;
    border-right: 1px solid #e4e6ec;
    text-align: center;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: #0e1927;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-stepper .qty-input::-webkit-outer-spin-button,
.qty-stepper .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.product-detail .info .cate {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #f9b842;
}
.product-detail .info h2.title {
    margin: 10px 0 16px;
}
.product-detail .info .price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #0e1927;
    margin-bottom: 24px;
}
.product-detail .info .price small {
    font-size: 13px;
    font-weight: 400;
    color: #999;
}
.product-detail .info .price .price-was {
    font-size: 17px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}
.product-detail .info .price .price-off {
    font-size: 15px;
    font-weight: 600;
    color: #2f9e44;
}
.product-detail .info .desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Delivery pincode check */
.delivery-check {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    /* margin-bottom: 24px; */
}
.delivery-check-label {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0e1927;
    margin-bottom: 12px;
}
.delivery-check-label i {
    color: #f9b842;
    margin-right: 6px;
}
.delivery-check-box {
    display: flex;
    border: 1px solid #e4e6ec;
    border-radius: 6px;
    overflow: hidden;
}
.delivery-check-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 16px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: #0e1927;
}
.delivery-check-box input::placeholder {
    color: #999;
}
.delivery-check-box button {
    border: none;
    background: #0e1927;
    color: #fff;
    padding: 0 26px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
    transition: background .25s ease;
}
.delivery-check-box button:hover {
    background: #f9b842;
    color: #0e1927;
}
.delivery-check-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: #2f9e44;
}
.delivery-check-note.error {
    color: #d64545;
}
.delivery-check-note:empty {
    display: none;
}

/* Accordion: description / instructions / delivery info */
.product-accordion {
    margin-bottom: 34px;
    border-top: 1px solid #eee;
}
.accordion-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 20px;
}
.accordion-title-row h4 {
    font-family: "Cinzel", serif;
    font-size: 18px;
    font-weight: 700;
    color: #0e1927;
    margin: 0;
}
.accordion-title-row .sku {
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    letter-spacing: .03em;
    color: #999;
}
.product-accordion-item {
    border-top: 1px solid #eee;
    background: none;
}
.product-accordion-item:last-child {
    border-bottom: 1px solid #eee;
}
.product-accordion-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 05px 0;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0e1927;
    cursor: pointer;
}
.product-accordion-head span {
    display: flex;
    align-items: center;
}
.product-accordion-head span i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 1.5px solid #d8dbe2;
    border-radius: 50%;
    color: #0e1927;
    font-size: 14px;
    margin-right: 14px;
}
.product-accordion-head .fa-chevron-down {
    font-size: 13px;
    color: #999;
    transition: transform .25s ease;
}
.product-accordion-item.active .product-accordion-head .fa-chevron-down {
    transform: rotate(180deg);
}
.product-accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height .3s ease;
}
.product-accordion-item.active .product-accordion-body {
    max-height: 600px;
}
.product-accordion-body p {
    color: #666;
    line-height: 1.8;
    padding: 0 0 05px 05px;
    margin: 0;
}
.product-accordion-body ul {
    margin: 0;
    padding: 0 0 22px 48px;
    list-style: none;
}
.product-accordion-body ul li {
    position: relative;
    color: #666;
    line-height: 1.7;
    padding: 0 0 12px 16px;
}
.product-accordion-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #999;
}
.product-accordion-body ul li:last-child {
    padding-bottom: 0;
}

@media (max-width: 991px) {
    .page-title.p-gift {
        display: none;
    }
    .product-detail .gallery-sticky {
        display: none;
    }
    .product-detail .product-gallery-swiper {
        display: block;
        position: relative;
        border-radius: 6px;
        overflow: hidden;
    }
    .product-detail .product-gallery-swiper img {
        width: 100%;
        display: block;
        border-radius: 0;
    }
    .product-detail .product-gallery-swiper .swiper-pagination {
        display: block !important;
        position: absolute;
        bottom: 14px;
        left: 0;
        width: 100%;
        text-align: center;
    }
    .product-detail .product-gallery-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: #fff;
        opacity: .85;
        box-shadow: 0 0 4px rgba(0, 0, 0, .45);
    }
    .product-detail .product-gallery-swiper .swiper-pagination-bullet-active {
        background: #f9b842;
        opacity: 1;
    }
    .product-detail .info {
        position: static;
        max-height: none;
    }
    .product-detail .info-scroll {
        overflow-y: visible;
    }
    .product-detail .info-actions {
        position: sticky;
        bottom: 0;
    }
}

/* Related products slider ("You May Also Like" / "Similar Products") */
.related-products {
    padding: 50px 0;
}
.related-products-head {
    margin-bottom: 26px;
}
.related-products-head h3 {
    font-family: "Cinzel", serif;
    font-size: 26px;
    font-weight: 700;
    color: #0e1927;
    margin: 0;
}
.related-products-wrap {
    position: relative;
}
.related-products-slider {
    overflow: hidden;
    padding-bottom: 30px;
}
.related-product-card {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .25s ease, transform .25s ease;
}
.related-product-card:hover {
    box-shadow: 0 14px 30px -12px rgba(14, 25, 39, .18);
    transform: translateY(-4px);
}
.related-product-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.related-product-image .swiper-slide {
    display: block;
}
.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-product-image .swiper-pagination {
    display: block !important;
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 5;
}
.related-product-image .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0 3px;
    background: #fff;
    opacity: .85;
    box-shadow: 0 0 3px rgba(0, 0, 0, .45);
}
.related-product-image .swiper-pagination-bullet-active {
    background: #f9b842;
    opacity: 1;
}
.related-product-body {
    display: block;
    padding: 14px 16px 18px;
    text-decoration: none;
    color: inherit;
}
.related-product-name {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0e1927;
    margin: 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.related-product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    font-family: "DM Sans", sans-serif;
}
.related-product-price .price-now {
    font-size: 16px;
    font-weight: 700;
    color: #0e1927;
}
.related-product-price .price-was {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}
.related-product-price .price-off {
    font-size: 12px;
    font-weight: 600;
    color: #2f9e44;
}
.related-products-next,
.related-products-prev {
    position: absolute;
    top: calc(50% - 15px);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #0e1927;
    box-shadow: 0 6px 20px -6px rgba(14, 25, 39, .3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 5;
    transition: background .25s ease, color .25s ease;
}
.related-products-next {
    right: -20px;
}
.related-products-prev {
    left: -20px;
}
.related-products-next:hover,
.related-products-prev:hover {
    background: #f9b842;
    color: #0e1927;
}
.related-products-next.swiper-button-disabled,
.related-products-prev.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}
.related-products-slider .swiper-scrollbar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 999px;
}
.related-products-slider .swiper-scrollbar-drag {
    background: #6b7a2e;
    border-radius: 999px;
}
@media (max-width: 575px) {
    .related-products-next,
    .related-products-prev {
        display: none;
    }
}
