/* ── Product Card Grid ─────────────────────────────────────────── */
/* BS3 col-lg-4 col-md-4 col-sm-6 col-xs-12 handles the grid */
.product-card-wrap {
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

/* ── Card Shell ────────────────────────────────────────────────── */
/* Mimics BS3 .panel but with rounded corners and hover shadow */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.22s ease;
    border: 1px solid #e6e4eb;
}
.product-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* ── Image Area ────────────────────────────────────────────────── */
/* img-responsive (BS3) handles max-width:100%; height:auto */
.product-card-img-wrap {
    width: 100%;
    height: 200px;
    background: #f7f8fc;
    overflow: hidden;
    flex-shrink: 0;
}
.product-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.product-card:hover .product-card-img-wrap img {
    transform: scale(1.04);
}

/* ── Card Body ─────────────────────────────────────────────────── */
/* BS3 .panel-body covers padding; we add flex for equal-height stretch */
.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 18px 16px;
}

/* Category chip — custom pill not in BS3 */
.product-card-category {
    margin-bottom: 8px;
}
.cat-chip {
    display: inline-block;
    background: #f0f4ff;
    color: #3d5afe;
    border: 1px solid #c5cae9;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    letter-spacing: 0.4px;
}
/* text-uppercase on the element handles uppercasing via BS3 */

/* Title — extends BS3 h4 default */
.product-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description — text-muted (BS3) sets color; we add clamp */
.product-card-desc {
    font-size: 13px;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

/* Divider — extends BS3 <hr> */
.product-card-divider {
    border: none;
    border-top: 1px solid #f0f2f5;
    margin: 0 0 14px;
}

/* ── Price elements ─────────────────────────────────────────────── */
.price-currency {
    font-size: 13px;
    font-weight: 600;
    color: #3d5afe;
    margin-right: 2px;
    vertical-align: top;
    line-height: 2;
}
.price-amount {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
}
.price-tax {
    display: block;
    font-size: 11px;
    color: #e57c00;
    margin-top: 2px;
    min-height: 16px;
}

/* ── Equal-height card rows ─────────────────────────────────────── */
/* BS3 .row handles horizontal layout; flex here ensures equal heights */
#filter_html {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* ── Pricing Options (type selector) ──────────────────────────── */
.pricing-options {
    margin-bottom: 14px;
}
.pricing-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e8eaf6;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 6px;
    font-weight: normal;
    transition: border-color 0.15s, background 0.15s;
}
.pricing-option:has(input:checked) {
    border-color: #3d5afe;
    background: #f0f4ff;
}
.pricing-option input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
}
.pricing-option-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pricing-option-label {
    font-size: 12px;
    font-weight: 600;
    color: #3d3d3d;
}
.pricing-option-price {
    text-align: right;
    line-height: 1.2;
}
.product-free-support{
    margin-bottom: 14px;
}
/* ── Buy Now Button ─────────────────────────────────────────────── */
/* Uses BS3 .btn .btn-primary .btn-block; custom overrides below */
.btn-buy-now {
    background: #2563eb;
    color: #ffffff !important;
    border: none;
    width: 100%;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.3);
}
.btn-buy-now:hover {
    background: #3d5afe;
}


/* ── Filter Bar ─────────────────────────────────────────────────── */
/* BS3 .well or .panel could work here; custom layout for flex row */
.product-filter-bar {
    background: #f7f8fc;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 12px;
    border: 1px solid #e6e4eb;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
.product-filter-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    flex: 1;
}
/* BS3 .control-label handles label styling; accent color override */
.product-filter-bar label {
    font-size: 13px;
    font-weight: 600;
    color: #3d5afe;
    margin: 0;
    white-space: nowrap;
}
/* BS3 .form-control handles select base; radius override */
.product-filter-bar select {
    border-radius: 8px !important;
    border: 1px solid #c5cae9 !important;
    font-size: 13px;
}
.product-search-wrap {
    position: relative;
    flex: 2;
    min-width: 240px;
}
.product-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #9e9e9e;
    font-size: 13px;
    pointer-events: none;
}
/* BS3 .form-control handles input base; padding-left for icon */
.product-search-input {
    padding-left: 32px !important;
    border-radius: 8px !important;
    border: 1px solid #c5cae9 !important;
    font-size: 13px;
    height: 34px;
}
.product-search-input:focus {
    border-color: #3d5afe !important;
    box-shadow: 0 0 0 2px rgba(61,90,254,0.1);
}

/* ── No Products State ─────────────────────────────────────────── */
/* BS3 .hidden handles visibility; custom centering + image size */
.no_product img {
    max-width: 280px;
    opacity: 0.75;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .product-card-img-wrap { height: 160px; }
    .price-amount { font-size: 18px; }
}

/* ── Card image/title links ──────────────────────────────────────── */
.product-card-img-link {
    display: block;
    text-decoration: none;
}
.product-card-title-link {
    color: #1a1a2e;
    text-decoration: none;
}
.product-card-title-link:hover {
    color: #3d5afe;
    text-decoration: none;
}

/* ── Product Detail Page ────────────────────────────────────────── */

/* Product name above carousel */
.pd-carousel-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin: 0px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Bootstrap 3 carousel overrides ────────────────────────────── */
.pd-carousel {
    background: #f7f8fc;
    border: 1px solid #e8eaf6;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.pd-carousel-header{
    background: #f7f8fc;
    border: 1px solid #e8eaf6;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}

.pd-carousel .item {
    height: 380px;
    background: #f7f8fc;
    overflow: hidden;
    text-align: center;
}
.pd-carousel .item img {
    display: inline-block;
    width: 100%;
    height: 380px;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

/* Arrow controls — circular button style */
.pd-carousel .carousel-control {
    width: 42px;
    height: 42px;
    top: 50%;
    bottom: auto;
    margin-top: -21px;
    background-image: none !important;
    background: rgba(255,255,255,0.92) !important;
    border: 1px solid #dde0f0;
    border-radius: 50%;
    color: #1a1a2e;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    transition: background 0.15s, color 0.15s;
}
.pd-carousel .carousel-control .fa {
    font-size: 14px;
    line-height: 1;
}
.pd-carousel .carousel-control:hover,
.pd-carousel .carousel-control:focus {
    background: #3d5afe !important;
    color: #fff !important;
    border-color: #3d5afe;
    opacity: 1;
}
.pd-carousel .carousel-control.left  { left: 10px; }
.pd-carousel .carousel-control.right { right: 10px; }

/* Slide counter */
.pd-carousel-counter {
    text-align: center;
    font-size: 12px;
    color: #9aa5b4;
    margin-top: 8px;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Section title (used for description heading) */
.pd-section-title {
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar */
.product-detail-sidebar {
    margin-bottom: 24px;
}
.pd-sidebar-card {
 
    border: 1px solid #e6e4eb;
    border-radius: 12px;
    padding: 24px 20px;
    position: sticky;
    top: 20px;
}

/* Social Share Bar */
.social-share-bar-container {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    margin-top: 0;
    padding: 0;
    width: auto;
}

.social-share-bar-container .pd-section-title {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.social-share-bar-container #share-bar {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: block !important;
}

.social-share-bar-container .sharing-providers {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
}

.social-share-bar-container .sharing-providers > li {
    margin: 0 !important;
    width: 36px !important;
    height: 36px !important;
}

.social-share-bar-container .sharing-providers > li > a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 16px !important;
}
.pd-product-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pd-product-short-desc {
    font-size: 13px;
    color: #6e7a8a;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* Support option */
.pd-support-option {
    margin-top: 14px;
    background: #f0f7ff;
    border: 1px dashed #90caf9;
    border-radius: 8px;
    padding: 10px 12px;
}
.pd-support-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #1565c0;
    margin: 0;
    width: 100%;
}
.pd-support-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3d5afe;
}
.pd-support-text {
    flex: 1;
}
.pd-support-text small {
    font-weight: 400;
    color: #5c8db8;
}
.pd-support-price-wrap {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a2e;
    white-space: nowrap;
}
.pd-support-price-wrap .price-currency {
    font-size: 12px;
    line-height: 1.8;
}

/* Total Price Display */
.pd-total-price {
    background: #f8f9ff;
    border: 1px solid #e3e7fd;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px;
}
.pd-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.pd-total-label {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pd-total-amount {
    font-size: 20px;
    font-weight: 800;
    color: #3d5afe;
    line-height: 1.2;
    text-align: right;
}
.pd-total-amount .price-currency {
    font-size: 16px;
    margin-right: 2px;
    vertical-align: top;
    line-height: 1.5;
}
.pd-total-amount .price-tax {
    display: block;
    font-size: 12px;
    color: #e57c00;
    margin-top: 2px;
    min-height: 16px;
    font-weight: 500;
}

.pd-action-buttons {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-whatsapp-chat {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.3);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-whatsapp-chat i {
    font-size: 18px;
    line-height: 1;
}

.btn-whatsapp-chat:hover,
.btn-whatsapp-chat:focus {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(0.96);
}

.btn-buy-now {
    flex: 1;
    width: auto;
}

@media (max-width: 680px) {
    .social-share-bar-container {
        top: auto;
        bottom: 18px;
        right: 18px;
        left: auto;
        transform: none;
        width: 45px;
    }

    .social-share-bar-container #share-bar {
        position: relative !important;
        width: 45px;
        max-height: 45px;
        overflow: hidden;
        border-radius: 999px;
        background: transparent;
        transition: max-height 0.25s ease;
    }

    .social-share-bar-container #share-bar::before {
        content: "\f1e0";
        font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 6 Sharp";
        font-weight: 900;
        position: absolute;
        top: 0;
        left: 0;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background-color: #2563eb;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 45px;
        text-align: center;
        box-shadow: none;
        z-index: 3;
        pointer-events: none;
    }

    .social-share-bar-container .sharing-providers {
        margin: 54px 0 0;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        align-items: flex-end;
    }

    .social-share-bar-container #share-bar:hover {
        max-height: 320px;
    }

    .social-share-bar-container.is-open #share-bar {
        max-height: 320px;
    }

    .social-share-bar-container #share-bar:hover .sharing-providers {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .social-share-bar-container.is-open #share-bar .sharing-providers {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .social-share-bar-container .sharing-providers > li {
        display: block;
    }

    .social-share-bar-container #share-bar.animate .sharing-providers > li:hover,
    .social-share-bar-container #share-bar.right.animate .sharing-providers > li:hover {
        transform: none !important;
    }
}

/* Full description — no card, plain floating content */
.product-detail-desc-panel {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f0f2f5;
}
.pd-full-description {
    font-size: 14px;
    line-height: 1.85;
    word-break: break-word;
}
.pd-full-description ul,
.pd-full-description ol {
    list-style-position: outside;
    margin-left: 1.5rem;
    padding-left: 0;
}
.pd-full-description ul {
    list-style-type: disc;
}
.pd-full-description ol {
    list-style-type: decimal;
}
.pd-full-description li {
    margin-bottom: 0.35rem;
}
.pd-full-description img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.pd-full-description ul,
.pd-full-description ol { list-style-position: inside; margin-left: 1.25rem; }
.pd-full-description li { margin-bottom: .3rem; }
.pd-full-description table { border-collapse: collapse;}
.pd-full-description th,
.pd-full-description td { border: 1px solid #ddd; padding: 8px; }

/* ── Detail page responsive ────────────────────────────────────── */
@media (max-width: 767px) {
    .pd-sidebar-card { position: static; margin-top: 16px; }
    .pd-carousel .item { height: 240px; }
    .pd-carousel .item img { height: 240px; }
    .pd-product-title { font-size: 18px; }
    .pd-carousel-title { font-size: 16px; }
}
