/* Page Stylesheet for show.blade.php */

.product-detail-card {
        border: 1px solid transparent;
        border-radius: 18px;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, rgba(200, 155, 60, 0.9), rgba(90, 20, 20, 0.9), rgba(200, 155, 60, 0.9)) border-box;
    }

    .product-detail-title {
        font-weight: 800;
        letter-spacing: 0.2px;
    }

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

    .product-price-row .mrp {
        color: #6c757d;
        text-decoration: line-through;
    }

    .btn-outline-primary {
        color: #b42318 !important;
        border-color: #b42318 !important;
    }

    .btn-outline-primary:hover {
        background-color: #b42318 !important;
        color: #fff !important;
    }

    .product-price-row .price {
        color: #b42318;
        font-weight: 800;
        font-size: 1.35rem;
    }

    .product-action-card {
        border: 1px solid rgba(255, 193, 7, 0.45);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(255, 193, 7, 0.08), rgba(255, 255, 255, 1));
        box-shadow: 0 10px 30px rgba(255, 193, 7, 0.12);
    }

    .meta-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 999px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        background: rgba(0, 0, 0, 0.02);
        font-weight: 700;
        font-size: 13px;
        color: #374151;
    }

    .meta-chip i {
        opacity: 0.85;
    }

    /* Task 1: Product Description Truncation & Toggle */
    .clamp-3-lines {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .clamp-3-lines p {
        margin-bottom: 0 !important;
        display: inline;
    }

    .product-description-content:not(.clamp-3-lines) p {
        margin-bottom: 0.5rem;
        display: block;
    }

    .btn-toggle-desc {
        cursor: pointer;
        transition: opacity 0.2s ease;
    }

    .btn-toggle-desc:hover {
        opacity: 0.8;
    }

    /* Task 2: Metadata Chips matching web design combination (ss2) */
    .product-chips-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 18px;
        margin-bottom: 24px;
    }

    .web-meta-chip {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 9px 20px;
        background-color: #fafafa;
        border: 1px solid #e5e7eb;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 700;
        color: #1f2937;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
        transition: all 0.2s ease;
    }

    .web-meta-chip:hover {
        border-color: #cbd5e1;
        background-color: #f8fafc;
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
    }

    .web-meta-chip i {
        font-size: 15px;
        color: #374151;
    }

    .spec-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 14px;
    }

    .spec-card {
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 16px;
        padding: 14px 16px;
        background: linear-gradient(180deg, rgba(200, 155, 60, 0.06), rgba(255, 255, 255, 1));
    }

    .spec-label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        color: #6b7280;
        margin-bottom: 6px;
    }

    .spec-value {
        color: #111827;
        font-weight: 700;
        line-height: 1.45;
    }

    .instruction-list {
        display: grid;
        gap: 12px;
    }

    .instruction-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 14px;
        background: #faf8f3;
    }

    .instruction-item .step-badge {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--color-primary-500);
        color: #fff;
        font-weight: 800;
        font-size: 13px;
    }

    .supplier-pill:hover {
        transform: translateY(-1px);
    }

    .supplier-pill {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .product-badge {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.25px;
    }

    .supplier-pill {
        position: absolute;
        left: 12px;
        bottom: 12px;
        z-index: 10;
        max-width: calc(100% - 24px);
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(0, 0, 0, 0.55);
        color: #fff;
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }

    .supplier-pill .name {
        font-weight: 800;
        font-size: 13px;
        letter-spacing: 0.2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .supplier-pill .meta {
        font-size: 12px;
        opacity: 0.9;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-supplier-inline {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
        color: #6c757d;
        font-size: 14px;
    }

    .product-supplier-inline .supplier-name {
        color: #111827;
        font-weight: 800;
    }

    .section-card {
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
    }

    .section-title {
        font-weight: 800;
        letter-spacing: 0.2px;
        margin: 0;
    }

    .section-divider {
        height: 3px;
        width: 70px;
        border-radius: 3px;
        background: var(--color-primary-500);
        opacity: 0.9;
    }

    .video-carousel-shell {
        background: #f3f4f6;
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 18px;
        padding: 14px;
    }

    .video-embed {
        background: #d1d5db;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
    }

    .video-thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .video-play-btn {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 72px;
        height: 72px;
        border-radius: 999px;
        border: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(10px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
        display: grid;
        place-items: center;
        transition: transform 0.15s ease, background 0.15s ease;
    }

    .video-play-btn:hover {
        transform: translate(-50%, -50%) scale(1.03);
        background: rgba(0, 0, 0, 0.65);
    }

    .video-play-btn:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(200, 155, 60, 0.25), 0 12px 30px rgba(0, 0, 0, 0.25);
    }

    .video-play-icon {
        width: 0;
        height: 0;
        border-left: 18px solid #fff;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        margin-left: 4px;
    }

    .video-embed iframe {
        border: 0;
    }

    #productVideoCarousel .carousel-control-prev,
    #productVideoCarousel .carousel-control-next {
        width: 56px;
        opacity: 1;
    }

    #productVideoCarousel .carousel-control-prev-icon,
    #productVideoCarousel .carousel-control-next-icon {
        width: 44px;
        height: 44px;
        background-size: 44px 44px;
    }

    #productVideoCarousel .carousel-control-prev-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M10.5 1.5 4 8l6.5 6.5' fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3e%3c/svg%3e");
    }

    #productVideoCarousel .carousel-control-next-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M5.5 1.5 12 8l-6.5 6.5' fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3e%3c/svg%3e");
    }

    .nav-pills {
        gap: 10px;
    }

    .nav-pills .nav-link {
        color: var(--color-ink-secondary) !important;
        background: rgba(0, 0, 0, 0.02);
        font-weight: 700;
        padding: 10px 16px;
    }

    .nav-pills .nav-link:hover {
        color: var(--color-ink-primary) !important;
        background: rgba(0, 0, 0, 0.04);
    }

    .js-enabled .category-card {
        opacity: 0;
        visibility: hidden;
    }

    .gradient-text {
        color: var(--color-ink-primary) !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
    }

    .category-navbar {
        padding: 18px 0 6px 0;
        overflow: hidden;
    }

    .category-slider {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 18px;
        overflow-x: hidden;
        overflow-y: hidden;
        scroll-behavior: smooth;
        padding-bottom: 10px;
    }

    @keyframes fadeUp {
        0% {
            opacity: 0;
            transform: translateY(60px) scale(0.95);
        }

        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @media (max-width: 768px) {
        .category-slider {
            overflow-x: auto;
        }

        .category-slider::-webkit-scrollbar {
            display: none;
        }

        .category-slider {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
    }

    .category-card {
        flex: 0 0 320px;
        height: 150px;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        text-decoration: none;
        opacity: 0;
        transform: translate3d(0, 50px, 0);
        will-change: transform, opacity;
    }

    .nav-pills .nav-link.active,
    .nav-pills .show>.nav-link {
        background-color: var(--color-secondary) !important;
        color: var(--color-surface) !important;
    }

    @media (max-width: 768px) {
        .category-card {
            flex: 0 0 200px;
            height: 200px;
        }
    }

    .category-card.show {
        visibility: visible;
        animation: fadeUp 0.8s ease forwards;
    }

    .category-img-wrapper {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .category-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .category-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
    }

    .category-overlay h6 {
        color: #F5E6C8;
        font-weight: 700;
        font-size: 1.1rem;
        margin: 0;
        text-align: center;
        opacity: 0;
        transform: translateY(16px);
        transition: all 0.4s ease;
    }

    .category-card:hover .category-overlay {
        background: rgba(0, 0, 0, 0.65);
    }

    .category-card:hover .category-overlay h6 {
        opacity: 1;
        transform: translateY(0);
    }

    .category-card:hover img {
        transform: scale(1.08);
    }

    .category-card:hover {
        box-shadow: 0 10px 30px rgba(200, 155, 60, 0.25);
    }

    .product-image {
        cursor: pointer;
    }

    /* Modal background */
    .product-image-modal .modal-content {
        background: #000;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    }

    /* Fixed modal height */
    .product-image-modal .modal-body {
        height: 80vh;
    }

    /* Image fit */
    .modal-image {
        height: 80vh;
        object-fit: contain;
        background: #000;
    }

    /* Close button style */
    .custom-close-btn {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 999;
        width: 40px;
        height: 40px;
        font-size: 28px;
        font-weight: 300;
        line-height: 40px;
        text-align: center;
        color: #fff;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        border: none;
        cursor: pointer;
    }

    .custom-close-btn:hover {
        color: #fff;

    }

    /* Carousel arrows */
    .product-image-modal .carousel-control-prev-icon,
    .product-image-modal .carousel-control-next-icon {
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        padding: 18px;
    }

    /* Remove focus outline */
    .product-image-modal button:focus {
        box-shadow: none;
    }

    /* Supplier Story Truncation */
    .supplier-story-content {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.75;
        transition: max-height 0.3s ease-in-out;
    }

    .supplier-story-content.expanded {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .toggle-story-btn:hover {
        color: #8c160e !important;
        text-decoration: underline !important;
    }

    /* Video Lightbox Modal Styles */
    .video-lightbox {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 99999;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(12px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox-content {
        width: 90%;
        max-width: 960px;
        position: relative;
    }

    .lightbox-video-container {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        border-radius: 12px;
        overflow: hidden;
        background: #000;
    }

    .lightbox-video-container iframe {
        border: 0;
        width: 100%;
        height: 100%;
    }

    .lightbox-close {
        position: absolute;
        top: 20px;
        right: 30px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 50px;
        font-weight: 200;
        cursor: pointer;
        transition: color 0.2s ease;
        user-select: none;
        z-index: 100000;
    }

    .lightbox-close:hover {
        color: #fff;
    }

    .cursor-pointer {
        cursor: pointer;
    }

    #productVideoCarousel {
        max-width: 500px;
        margin: 0 auto;
    }

    .video-embed {
        cursor: pointer;
    }

.sleek-accordion-item {
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .sleek-accordion-btn {
        background: transparent;
        border: none;
        width: 100%;
        text-align: left;
        padding: 24px 0;
        font-weight: 700;
        font-size: 14px;
        color: var(--color-ink-primary);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .sleek-accordion-btn:focus {
        outline: none;
    }
    .sleek-accordion-icon {
        font-size: 10px;
        color: #9ca3af;
        transition: transform 0.3s ease;
    }
    .sleek-accordion-btn[aria-expanded="true"] .sleek-accordion-icon {
        transform: rotate(180deg);
    }
    .sleek-accordion-body {
        padding-bottom: 24px;
        font-size: 14px;
        line-height: 1.8;
        color: #6b7280;
    }

