<?= $this->include('templates/header', ['title' => 'Silver Miami Cuban Chains | APA Sales']) ?>

<style>
/* =========================================================
           GLOBAL
        ========================================================= */

        :root {
            --gold: #b4975a;
            --gold-light: #d4bd83;
            --black: #181818;
            --text: #333333;
            --muted: #777777;
            --border: #e7e3db;
            --light: #f8f7f4;
            --green: #198b27;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: "Inter", sans-serif;
            color: var(--text);
            background: #ffffff;
        }

        h1,
        h2,
        h3,
        h4,
        h5 {
            font-family: "Cormorant Garamond", serif;
        }

        a {
            text-decoration: none;
        }


        /* =========================================================
           PAGE HEADER
        ========================================================== */

        .products-header {
            padding: 65px 20px 45px;
            text-align: center;
            background:
                linear-gradient(
                    180deg,
                    #faf9f7 0%,
                    #ffffff 100%
                );
            border-bottom: 1px solid var(--border);
        }

        .breadcrumb-luxury {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 9px;
            margin-bottom: 22px;
            font-size: 10px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #999;
        }

        .breadcrumb-luxury a {
            color: #777;
            transition: .3s ease;
        }

        .breadcrumb-luxury a:hover {
            color: var(--gold);
        }

        .breadcrumb-luxury i {
            font-size: 8px;
            color: var(--gold);
        }

        .products-header small {
            display: block;
            color: var(--gold);
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 3px;
            text-transform: uppercase;
            margin-bottom: 10px;
        }

        .products-header h1 {
            margin: 0 0 14px;
            color: var(--black);
            font-size: clamp(40px, 5vw, 58px);
            line-height: 1;
            font-weight: 500;
        }

        .products-header h1 span {
            color: var(--gold);
            font-style: italic;
        }

        .products-header p {
            max-width: 750px;
            margin: auto;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.9;
            font-weight: 300;
        }


        /* =========================================================
           MAIN PRODUCT SECTION
        ========================================================== */

        .products-section {
            padding: 45px 0 80px;
        }


        /* =========================================================
           DESKTOP FILTER
        ========================================================== */

        .filter-box {
            border: 1px solid var(--border);
            background: #ffffff;
        }

        .filter-heading {
            padding: 20px 22px;
            border-bottom: 1px solid var(--border);
        }

        .filter-heading h3 {
            margin: 0;
            font-size: 26px;
            font-weight: 500;
            color: var(--black);
        }

        .filter-heading span {
            display: block;
            margin-top: 4px;
            color: #999;
            font-size: 10px;
            letter-spacing: 1px;
            text-transform: uppercase;
        }


        /* =========================================================
           FILTER ACCORDION
        ========================================================== */

        .filter-item {
            border-bottom: 1px solid var(--border);
        }

        .filter-item:last-child {
            border-bottom: 0;
        }

        .filter-toggle {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;

            padding: 18px 22px;

            background: #ffffff;
            border: 0;

            color: var(--black);
            font-size: 12px;
            font-weight: 500;
            text-align: left;

            cursor: pointer;
        }

        .filter-toggle i {
            font-size: 12px;
            transition: .3s ease;
        }

        .filter-toggle:not(.collapsed) i {
            transform: rotate(180deg);
        }

        .filter-content {
            padding: 0 22px 20px;
        }

        .filter-option {
            display: flex;
            align-items: center;
            gap: 9px;
            margin-bottom: 11px;
            cursor: pointer;
            color: #666;
            font-size: 11px;
        }

        .filter-option:last-child {
            margin-bottom: 0;
        }

        .filter-option input {
            width: 15px;
            height: 15px;
            accent-color: var(--gold);
            cursor: pointer;
        }


        /* =========================================================
           COLLECTION TOP BAR
        ========================================================== */

        .collection-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;

            min-height: 55px;

            margin-bottom: 25px;
            padding-bottom: 15px;

            border-bottom: 1px solid var(--border);
        }

        .product-count {
            color: #666;
            font-size: 12px;
        }

        .product-count strong {
            color: var(--black);
            font-weight: 500;
        }

        .collection-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }


        /* =========================================================
           SELECT
        ========================================================== */

        .luxury-select {
            min-width: 175px;
            height: 40px;

            padding: 0 35px 0 13px;

            border: 1px solid var(--border);
            border-radius: 0;

            background-color: #ffffff;

            color: #444;
            font-size: 11px;

            cursor: pointer;
        }

        .luxury-select:focus {
            border-color: var(--gold);
            box-shadow: none;
        }


        /* =========================================================
           VIEW BUTTONS
        ========================================================== */

        .view-buttons {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .view-btn {
            width: 36px;
            height: 36px;

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

            border: 1px solid transparent;
            background: transparent;

            color: #777;

            transition: .3s ease;
        }

        .view-btn:hover,
        .view-btn.active {
            color: var(--black);
            border-color: var(--border);
        }

        .view-btn i {
            font-size: 17px;
        }


        /* =========================================================
           MOBILE FILTER BUTTON
        ========================================================== */

        .mobile-filter-bar {
            display: none;
            margin-bottom: 20px;
        }

        .mobile-filter-btn {
            width: 100%;
            height: 45px;

            border: 1px solid var(--black);
            background: var(--black);
            color: #ffffff;

            font-size: 11px;
            font-weight: 500;
            letter-spacing: 1px;
            text-transform: uppercase;
        }


        /* =========================================================
           PRODUCT CARD
        ========================================================== */

        .product-card {
            height: 100%;
            background: #ffffff;
            border: 1px solid var(--border);

            transition:
                transform .4s ease,
                box-shadow .4s ease;
        }

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


        /* =========================================================
           PRODUCT IMAGE
        ========================================================== */

        .product-image {
            position: relative;
            height: 310px;
            overflow: hidden;
            background: #f7f7f5;
        }

        .product-image img {
            width: 100%;
            height: 100%;

            object-fit: contain;

            padding: 22px;

            transition: transform .7s ease;
        }

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


        /* =========================================================
           PRODUCT BADGE
        ========================================================== */

        .product-badge {
            position: absolute;
            top: 14px;
            left: 14px;

            z-index: 2;

            padding: 6px 10px;

            background: var(--black);
            color: #ffffff;

            font-size: 8px;
            font-weight: 500;
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }


        /* =========================================================
           WISHLIST
        ========================================================== */

        .wishlist-btn {
            position: absolute;
            top: 13px;
            right: 13px;

            z-index: 3;

            width: 36px;
            height: 36px;

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

            border: 1px solid #ddd;
            border-radius: 50%;

            background: rgba(255,255,255,.95);

            color: #555;

            transition: .3s ease;
        }

        .wishlist-btn:hover {
            color: var(--gold);
            border-color: var(--gold);
        }


        /* =========================================================
           QUICK VIEW
        ========================================================== */

        .quick-view {
            position: absolute;
            left: 15px;
            right: 15px;
            bottom: 15px;

            height: 40px;

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

            background: rgba(255,255,255,.96);

            color: var(--black);

            font-size: 10px;
            font-weight: 500;
            letter-spacing: 1.5px;
            text-transform: uppercase;

            opacity: 0;
            transform: translateY(10px);

            transition: .35s ease;
        }

        .product-card:hover .quick-view {
            opacity: 1;
            transform: translateY(0);
        }

        .quick-view:hover {
            background: var(--black);
            color: #ffffff;
        }


        /* =========================================================
           PRODUCT CONTENT
        ========================================================== */

        .product-content {
            padding: 20px;
        }

        .product-type {
            margin-bottom: 6px;

            color: var(--gold);

            font-size: 9px;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .product-name {
            min-height: 48px;

            margin-bottom: 9px;

            color: var(--black);

            font-family: "Inter", sans-serif;
            font-size: 14px;
            font-weight: 500;
            line-height: 1.55;
        }

        .product-price {
            margin-bottom: 9px;

            color: var(--black);

            font-family: "Cormorant Garamond", serif;
            font-size: 25px;
            font-weight: 500;
        }

        .product-price span {
            font-family: "Inter", sans-serif;
            font-size: 10px;
            color: #777;
        }


        /* =========================================================
           STOCK
        ========================================================== */

        .stock-status {
            display: flex;
            align-items: center;
            gap: 7px;

            margin-bottom: 16px;

            color: var(--green);

            font-size: 10px;
            font-weight: 500;
        }

        .stock-dot {
            width: 7px;
            height: 7px;

            border-radius: 50%;

            background: var(--green);
        }


        /* =========================================================
           PRODUCT BUTTONS
        ========================================================== */

        .choose-options {
            width: 100%;
            height: 42px;

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

            background: var(--black);
            border: 1px solid var(--black);

            color: #ffffff;

            font-size: 10px;
            font-weight: 500;
            letter-spacing: 1px;
            text-transform: uppercase;

            transition: .3s ease;
        }

        .choose-options:hover {
            background: var(--gold);
            border-color: var(--gold);
            color: #ffffff;
        }


        /* =========================================================
           PAGINATION
        ========================================================== */

        .luxury-pagination {
            display: flex;
            justify-content: center;
            gap: 6px;

            margin-top: 50px;
        }

        .page-number {
            width: 38px;
            height: 38px;

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

            border: 1px solid var(--border);

            color: #555;

            font-size: 11px;

            transition: .3s ease;
        }

        .page-number:hover,
        .page-number.active {
            background: var(--black);
            border-color: var(--black);
            color: #ffffff;
        }


        /* =========================================================
           OFFCANVAS
        ========================================================== */

        .offcanvas {
            border: 0;
        }

        .offcanvas-header {
            border-bottom: 1px solid var(--border);
            padding: 20px;
        }

        .offcanvas-title {
            font-family: "Cormorant Garamond", serif;
            font-size: 28px;
        }

        .offcanvas-body {
            padding: 0;
        }


        /* =========================================================
           RESPONSIVE
        ========================================================== */

        @media (max-width: 1199px) {

            .product-image {
                height: 280px;
            }

        }


        @media (max-width: 991px) {

            .products-header {
                padding: 50px 20px 40px;
            }

            .products-section {
                padding-top: 35px;
            }

            .mobile-filter-bar {
                display: block;
            }

            .collection-topbar {
                margin-bottom: 20px;
            }

            .product-image {
                height: 300px;
            }

        }


        @media (max-width: 767px) {

            .products-header h1 {
                font-size: 42px;
            }

            .products-header p {
                font-size: 12px;
                line-height: 1.8;
            }

            .breadcrumb-luxury {
                font-size: 9px;
            }

            .products-section {
                padding: 30px 0 60px;
            }

            .collection-topbar {
                flex-wrap: wrap;
                gap: 12px;
            }

            .collection-actions {
                width: 100%;
                justify-content: space-between;
            }

            .luxury-select {
                flex: 1;
            }

            .view-buttons {
                display: none;
            }

            .product-image {
                height: 240px;
            }

            .product-content {
                padding: 15px;
            }

            .product-name {
                font-size: 12px;
                min-height: 55px;
            }

            .product-price {
                font-size: 22px;
            }

            .quick-view {
                display: none;
            }

        }


        @media (max-width: 575px) {

            .products-header {
                padding: 40px 15px 35px;
            }

            .products-header h1 {
                font-size: 38px;
            }

            .products-header small {
                font-size: 9px;
                letter-spacing: 2px;
            }

            .product-image {
                height: 200px;
            }

            .product-image img {
                padding: 15px;
            }

            .product-badge {
                top: 9px;
                left: 9px;
                padding: 5px 7px;
                font-size: 7px;
            }

            .wishlist-btn {
                top: 8px;
                right: 8px;
                width: 31px;
                height: 31px;
            }

            .product-content {
                padding: 12px;
            }

            .product-type {
                font-size: 8px;
            }

            .product-name {
                font-size: 11px;
                min-height: 52px;
            }

            .product-price {
                font-size: 20px;
            }

            .stock-status {
                font-size: 8px;
            }

            .choose-options {
                height: 38px;
                font-size: 8px;
            }

        }

        /* =========================================================
   LIST VIEW
========================================================= */

#productContainer.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#productContainer.list-view .product-item {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

#productContainer.list-view .product-card {
    display: flex;
    width: 100%;
    min-height: 280px;
}

#productContainer.list-view .product-image {
    width: 300px;
    min-width: 300px;
    height: 280px;
}

#productContainer.list-view .product-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#productContainer.list-view .product-name {
    font-size: 20px;
    min-height: auto;
    max-width: 600px;
}

#productContainer.list-view .product-price {
    font-size: 28px;
}

#productContainer.list-view .choose-options {
    max-width: 250px;
}


/* =========================================================
   LIST VIEW QUICK VIEW
========================================================= */

#productContainer.list-view .quick-view {
    left: 15px;
    right: 15px;
}


/* =========================================================
   MOBILE LIST VIEW
========================================================= */

@media (max-width: 767px) {

    #productContainer.list-view .product-card {
        display: flex;
        flex-direction: column;
    }

    #productContainer.list-view .product-image {
        width: 100%;
        min-width: 100%;
        height: 230px;
    }

    #productContainer.list-view .product-content {
        padding: 18px;
    }

    #productContainer.list-view .product-name {
        font-size: 14px;
    }

    #productContainer.list-view .choose-options {
        max-width: 100%;
    }

}
/* =========================================================
   QUICK VIEW MODAL
========================================================= */

.quick-view-modal {
    position: relative;

    width: 100%;

    border: 0;
    border-radius: 0;

    overflow: hidden;

    background: #ffffff;
}


/* =========================================================
   MODAL SIZE
========================================================= */

.quick-view-dialog {
    max-width: 1180px;
    margin: 20px auto;
}


.quick-view-modal {
    max-height: calc(100vh - 40px);
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.quick-view-layout {
    display: grid;

    grid-template-columns: 50% 50%;

    min-height: 700px;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */
/* =========================================================
   QUICK VIEW CLOSE BUTTON
========================================================= */

.quick-view-close {
    position: absolute;
    top: 8px;
    right: 12px;

    z-index: 100;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;
    background: transparent;

    color: #111111;

    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 40px;

    cursor: pointer;

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

    transition: opacity 0.2s ease;
}

.quick-view-close:hover {
    opacity: 0.55;
}


/* .quick-view-close:hover {
    background: #f5f5f5;
} */



/* =========================================================
   PRODUCT GALLERY
========================================================= */

.quick-view-gallery {
    position: relative;

    display: flex;

    min-height: 700px;

    background: #ffffff;

    border-right: 1px solid var(--border);
}


/* =========================================================
   THUMBNAILS
========================================================= */

.quick-thumbnails {
    width: 90px;

    padding: 18px 12px;

    display: flex;
    flex-direction: column;

    gap: 10px;

    overflow-y: auto;
}


.quick-thumbnail {
    width: 66px;
    height: 66px;

    padding: 3px;

    border: 1px solid transparent;

    background: #ffffff;

    cursor: pointer;

    transition: .3s ease;
}


.quick-thumbnail:hover {
    border-color: #999999;
}


.quick-thumbnail.active {
    border: 2px solid #111111;
}


.quick-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}



/* =========================================================
   MAIN PRODUCT IMAGE
========================================================= */

.quick-main-image {
    position: relative;

    flex: 1;

    min-width: 0;

    height: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    overflow: hidden;

    background: #ffffff;
}


.quick-main-image img {
    width: 100%;
    height: 560px;

    margin-top: 20px;

    object-fit: contain;

    padding: 10px;

    cursor: zoom-in;

    transition: transform .5s ease;
}


.quick-main-image:hover img {
    transform: scale(1.05);
}



/* =========================================================
   ZOOM TEXT
========================================================= */

.quick-zoom-text {
    position: absolute;

    bottom: 28px;
    left: 0;
    right: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    color: #333333;

    font-size: 13px;
}


.quick-zoom-text i {
    font-size: 12px;
}



/* =========================================================
   RIGHT CONTENT
========================================================= */

.quick-view-content {
    position: relative;

    padding: 30px;

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    scrollbar-width: thin;
}


.quick-view-content::-webkit-scrollbar {
    width: 6px;
}


.quick-view-content::-webkit-scrollbar-thumb {
    background: #aaaaaa;
}



/* =========================================================
   COLLECTION
========================================================= */

.quick-view-collection {
    margin-bottom: 7px;

    color: var(--gold);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;
}



/* =========================================================
   PRODUCT TITLE
========================================================= */

.quick-product-title {
    margin: 0 45px 12px 0;

    color: #111111;

    font-family: "Cormorant Garamond", serif;

    font-size: 30px;

    line-height: 1.25;

    font-weight: 500;
}



/* =========================================================
   SKU
========================================================= */

.quick-sku {
    margin-bottom: 15px;

    color: #333333;

    font-size: 12px;
}


.quick-sku span {
    color: #444444;
}



/* =========================================================
   SOCIAL
========================================================= */

.quick-social {
    display: flex;

    justify-content: flex-end;

    gap: 8px;

    margin-top: -42px;

    margin-bottom: 18px;
}


.quick-social a {
    width: 29px;
    height: 29px;

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

    border-radius: 50%;

    background: #b8b8b8;

    color: #ffffff;

    font-size: 12px;

    text-decoration: none;

    transition: .3s ease;
}


.quick-social a:hover {
    background: #111111;
}



/* =========================================================
   DIVIDER
========================================================= */

.quick-divider {
    height: 1px;

    margin: 0 0 25px;

    background: var(--border);
}



/* =========================================================
   OPTION GROUP
========================================================= */

.quick-option-group {
    margin-bottom: 27px;
}


.quick-option-title {
    margin-bottom: 10px;

    color: #111111;

    font-size: 15px;

    font-weight: 600;
}


.quick-option-title span {
    font-weight: 400;
}



/* =========================================================
   OPTION BUTTONS
========================================================= */

.quick-option-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.quick-option-btn {
    min-height: 46px;

    padding: 8px 16px;

    border: 1px solid #cccccc;

    border-radius: 2px;

    background: #ffffff;

    color: #444444;

    font-size: 13px;

    cursor: pointer;

    transition: .25s ease;
}


.quick-option-btn:hover {
    border-color: #777777;
}


.quick-option-btn.active {
    border: 2px solid #111111;

    color: #111111;

    background: #ffffff;
}



/* =========================================================
   PRICE
========================================================= */

.quick-price-row {
    display: flex;

    align-items: center;

    gap: 35px;

    margin-top: 4px;
}


.quick-price-label {
    color: #111111;

    font-size: 15px;

    font-weight: 600;
}


.quick-product-price {
    color: #111111;

    font-family: "Cormorant Garamond", serif;

    font-size: 30px;

    line-height: 1;
}



/* =========================================================
   PRICE PER GRAM
========================================================= */

.quick-price-gram {
    margin: 25px 0 45px;

    text-align: center;

    color: #444444;

    font-size: 14px;
}


.quick-price-gram strong {
    margin-right: 10px;

    color: #111111;
}



/* =========================================================
   PRODUCT DETAILS
========================================================= */

.quick-product-detail-row {
    display: flex;

    align-items: center;

    gap: 28px;

    margin-bottom: 25px;

    color: #444444;

    font-size: 14px;
}


.quick-detail-label {
    min-width: 60px;

    color: #111111;

    font-size: 15px;

    font-weight: 600;
}



/* =========================================================
   STOCK
========================================================= */

.quick-stock {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #198b25;

    font-size: 14px;
}


.quick-stock-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #198b25;
}


.quick-stock strong {
    font-weight: 600;
}



/* =========================================================
   STOCK LINE
========================================================= */

.quick-stock-line {
    width: 100%;

    height: 3px;

    margin: -5px 0 38px;

    background: #198b25;
}


.quick-stock-line span {
    display: block;

    width: 100%;
}



/* =========================================================
   QUANTITY
========================================================= */

.quick-quantity-row {
    display: flex;

    align-items: center;

    gap: 25px;

    margin-bottom: 28px;
}


.quick-quantity-label {
    color: #111111;

    font-size: 15px;

    font-weight: 600;
}


.quick-quantity {
    display: flex;

    height: 44px;
}


.quick-quantity button,
.quick-quantity input {
    width: 44px;
    height: 44px;

    border: 1px solid #d4d4d4;

    background: #ffffff;

    text-align: center;

    font-size: 16px;
}


.quick-quantity button {
    color: #777777;

    cursor: pointer;
}


.quick-quantity button:hover {
    background: #f5f5f5;

    color: #111111;
}


.quick-quantity input {
    width: 64px;

    color: #222222;

    font-size: 14px;
}



/* =========================================================
   ACTION BUTTONS
========================================================= */

.quick-action-buttons {
    display: flex;

    align-items: center;

    gap: 12px;
}


.quick-add-cart {
    flex: 1;

    height: 48px;

    border: 1px solid #000000;

    background: #000000;

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: .3s ease;
}


.quick-add-cart:hover {
    background: var(--gold);

    border-color: var(--gold);
}


.quick-save {
    height: 48px;

    padding: 0 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border: 1px solid #cccccc;

    background: #ffffff;

    color: #333333;

    font-size: 13px;

    cursor: pointer;

    transition: .3s ease;
}


.quick-save:hover {
    border-color: #111111;
}



/* =========================================================
   FULL DETAILS
========================================================= */

.quick-full-details {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 18px;

    color: #111111;

    font-size: 12px;

    text-decoration: none;

    transition: .3s ease;
}


.quick-full-details:hover {
    color: var(--gold);
}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .quick-view-dialog {
        max-width: 95%;

        margin: 15px auto;
    }


    .quick-view-layout {
        grid-template-columns: 1fr;

        min-height: auto;
    }


    .quick-view-gallery {
        min-height: 430px;

        border-right: 0;

        border-bottom: 1px solid var(--border);
    }


    .quick-main-image img {
        height: 390px;
    }


    .quick-view-content {
        max-height: none;

        padding: 25px;
    }

}


@media (max-width: 767px) {

    .quick-view-dialog {
        max-width: 100%;

        margin: 0;
    }


    .quick-view-modal {
        max-height: 100vh;

        min-height: 100vh;
    }


    .quick-view-gallery {
        min-height: 330px;
    }


    .quick-thumbnails {
        width: 68px;

        padding: 12px 8px;
    }


    .quick-thumbnail {
        width: 50px;
        height: 50px;
    }


    .quick-main-image img {
        height: 300px;
    }


    .quick-zoom-text {
        bottom: 15px;

        font-size: 11px;
    }


    .quick-view-content {
        padding: 20px;

        overflow: visible;
    }


    .quick-product-title {
        font-size: 27px;
    }


    .quick-social {
        margin-top: 10px;

        justify-content: flex-start;
    }


    .quick-option-btn {
        min-height: 42px;

        padding: 7px 13px;

        font-size: 12px;
    }


    .quick-price-gram {
        margin-bottom: 30px;
    }


    .quick-action-buttons {
        flex-direction: column;
    }


    .quick-add-cart,
    .quick-save {
        width: 100%;
    }

}
/* =========================================================
   SAVE ACTIVE STATE
========================================================= */

.quick-save.saved {
    border-color: #111111;

    color: #111111;
}


.quick-save.saved i {
    color: #111111;
}


/* =========================================================
   ADD TO CART ACTIVE
========================================================= */

.quick-add-cart.added {
    background: #198b25;

    border-color: #198b25;
}
</style>

<!-- =========================================================
     PAGE HEADER
========================================================= -->

<section class="products-header">

    <div class="container">

        <!-- Breadcrumb -->

        <div
            class="breadcrumb-luxury"
            data-aos="fade-down"
            data-aos-duration="700"
        >

            <a href="<?= base_url('chain') ?>">
                Chain Styles
            </a>

            <i class="bi bi-chevron-right"></i>

            <span>
                Miami Cuban
            </span>

        </div>


        <small
            data-aos="fade-up"
            data-aos-delay="100"
            data-aos-duration="700"
        >
            Italian Sterling Silver
        </small>


        <h1
            data-aos="fade-up"
            data-aos-delay="150"
            data-aos-duration="800"
        >
            Silver Miami <span>Cuban Chains</span>
        </h1>


        <p
            data-aos="fade-up"
            data-aos-delay="250"
            data-aos-duration="800"
        >
            Explore our collection of premium 925 sterling silver Miami
            Cuban chains, crafted with precision and finished for lasting
            brilliance. Choose from a variety of widths, lengths and
            sophisticated finishes.
        </p>

    </div>

</section>


<!-- =========================================================
     PRODUCTS SECTION
========================================================= -->

<section class="products-section">

    <div class="container-fluid px-lg-4">


        <!-- =====================================================
             MOBILE FILTER
        ====================================================== -->

        <div class="mobile-filter-bar">

            <button
                class="mobile-filter-btn"
                type="button"
                data-bs-toggle="offcanvas"
                data-bs-target="#mobileFilters"
            >

                <i class="bi bi-sliders2 me-2"></i>

                Filters

            </button>

        </div>


        <div class="row g-4">


            <!-- =================================================
                 DESKTOP FILTER
            ================================================== -->

            <div class="col-lg-3 col-xl-2 d-none d-lg-block">

                <div class="filter-box">


                    <div class="filter-heading">

                        <h3>
                            Filters
                        </h3>

                        <span>
                            Refine your selection
                        </span>

                    </div>


                    <!-- Product Type -->

                    <div class="filter-item">

                        <button
                            class="filter-toggle"
                            type="button"
                            data-bs-toggle="collapse"
                            data-bs-target="#productType"
                        >

                            Product Type

                            <i class="bi bi-chevron-down"></i>

                        </button>


                        <div
                            id="productType"
                            class="collapse show"
                        >

                            <div class="filter-content">

                                <label class="filter-option">

                                    <input type="checkbox">

                                    Chain

                                </label>

                                <label class="filter-option">

                                    <input type="checkbox">

                                    Bracelet

                                </label>

                            </div>

                        </div>

                    </div>


                    <!-- Plating -->

                    <div class="filter-item">

                        <button
                            class="filter-toggle"
                            type="button"
                            data-bs-toggle="collapse"
                            data-bs-target="#plating"
                        >

                            Plating

                            <i class="bi bi-chevron-down"></i>

                        </button>


                        <div
                            id="plating"
                            class="collapse show"
                        >

                            <div class="filter-content">

                                <label class="filter-option">

                                    <input type="checkbox">

                                    Silver

                                </label>

                                <label class="filter-option">

                                    <input type="checkbox">

                                    Gold

                                </label>

                                <label class="filter-option">

                                    <input type="checkbox">

                                    Rose Gold

                                </label>

                            </div>

                        </div>

                    </div>


                    <!-- Chain Style -->

                    <div class="filter-item">

                        <button
                            class="filter-toggle"
                            type="button"
                            data-bs-toggle="collapse"
                            data-bs-target="#chainStyle"
                        >

                            Chain Style

                            <i class="bi bi-chevron-down"></i>

                        </button>


                        <div
                            id="chainStyle"
                            class="collapse show"
                        >

                            <div class="filter-content">

                                <label class="filter-option">

                                    <input
                                        type="checkbox"
                                        checked
                                    >

                                    Miami Cuban

                                </label>

                                <label class="filter-option">

                                    <input type="checkbox">

                                    Diamond Cut

                                </label>

                                <label class="filter-option">

                                    <input type="checkbox">

                                    Box Lock

                                </label>

                                <label class="filter-option">

                                    <input type="checkbox">

                                    Lightweight

                                </label>

                            </div>

                        </div>

                    </div>


                    <!-- Length -->

                    <div class="filter-item">

                        <button
                            class="filter-toggle"
                            type="button"
                            data-bs-toggle="collapse"
                            data-bs-target="#length"
                        >

                            Length

                            <i class="bi bi-chevron-down"></i>

                        </button>


                        <div
                            id="length"
                            class="collapse"
                        >

                            <div class="filter-content">

                                <label class="filter-option">
                                    <input type="checkbox">
                                    16"
                                </label>

                                <label class="filter-option">
                                    <input type="checkbox">
                                    18"
                                </label>

                                <label class="filter-option">
                                    <input type="checkbox">
                                    20"
                                </label>

                                <label class="filter-option">
                                    <input type="checkbox">
                                    22"
                                </label>

                                <label class="filter-option">
                                    <input type="checkbox">
                                    24"
                                </label>

                            </div>

                        </div>

                    </div>


                </div>

            </div>


            <!-- =================================================
                 PRODUCTS
            ================================================== -->

            <div class="col-lg-9 col-xl-10">


                <!-- Topbar -->

                <div class="collection-topbar">


                    <div class="product-count">

                        Showing
                        <strong>1 - 6</strong>
                        of
                        <strong>48</strong>
                        products

                    </div>


                    <div class="collection-actions">

                        <select
                            class="form-select luxury-select"
                        >

                            <option>
                                Sort by: Featured
                            </option>

                            <option>
                                Sort by: Newest
                            </option>

                            <option>
                                Sort by: Price Low to High
                            </option>

                            <option>
                                Sort by: Price High to Low
                            </option>

                            <option>
                                Sort by: Name
                            </option>

                        </select>


                        <div class="view-buttons">

                            <button
                                class="view-btn active"
                                title="Grid View"
                            >

                                <i class="bi bi-grid-3x3-gap-fill"></i>

                            </button>

                            <button
                                class="view-btn"
                                title="List View"
                            >

                                <i class="bi bi-list"></i>

                            </button>

                        </div>

                    </div>

                </div>


                <!-- =================================================
                     PRODUCT GRID
                ================================================== -->

            <!-- =========================================================
                PRODUCT GRID / LIST WRAPPER
            ========================================================= -->

            <div id="productContainer"   class="row g-3 g-xl-4">


                <!-- =====================================================
                    PRODUCT 1
                ====================================================== -->

                <div
                    class="product-item col-6 col-xl-3"
                    data-aos="fade-up"
                    data-aos-duration="700"
                    data-aos-delay="100"
                >

                    <div class="product-card">


                        <div class="product-image">

                            <span class="product-badge">
                                Bestseller
                            </span>


                            <button
                                class="wishlist-btn"
                                type="button"
                            >
                                <i class="bi bi-heart"></i>
                            </button>


                            <a href="<?= base_url('detail') ?>">

                                <img
                                    src="<?= base_url('chain.jpg') ?>"
                                    alt="925 Sterling Silver Miami Cuban Chain"
                                    loading="lazy"
                                >

                            </a>


                            <!-- Quick View -->

                            <button
                                type="button"
                                class="quick-view"
                                data-bs-toggle="modal"
                                data-bs-target="#quickViewModal"
                                data-product="cuban1"
                            >
                                Quick View
                            </button>

                        </div>


                        <div class="product-content">

                            <div class="product-type">
                                Miami Cuban
                            </div>


                            <a
                                href="<?= base_url('detail') ?>"
                                class="product-name d-block"
                            >
                                925 Sterling Silver Miami Cuban Chain
                                or Bracelet
                            </a>


                            <div class="product-price">
                                From $20.56
                            </div>


                            <div class="stock-status">

                                <span class="stock-dot"></span>

                                In stock, 167123 grams

                            </div>


                            <a
                                href="<?= base_url('detail') ?>"
                                class="choose-options"
                            >
                                Choose Options
                            </a>

                        </div>

                    </div>

                </div>


                <!-- =====================================================
                    PRODUCT 2
                ====================================================== -->

                <div
                    class="product-item col-6 col-xl-3"
                    data-aos="fade-up"
                    data-aos-duration="700"
                    data-aos-delay="200"
                >

                    <div class="product-card">

                        <div class="product-image">

                            <button
                                class="wishlist-btn"
                                type="button"
                            >
                                <i class="bi bi-heart"></i>
                            </button>


                            <a href="<?= base_url('detail') ?>">

                                <img
                                    src="<?= base_url('chain.jpg') ?>"
                                    alt="925 Sterling Silver Miami Cuban Box Lock Chain"
                                    loading="lazy"
                                >

                            </a>


                            <button
                                type="button"
                                class="quick-view"
                                data-bs-toggle="modal"
                                data-bs-target="#quickViewModal"
                                data-product="cuban2"
                            >
                                Quick View
                            </button>

                        </div>


                        <div class="product-content">

                            <div class="product-type">
                                Miami Cuban
                            </div>


                            <a
                                href="<?= base_url('detail') ?>"
                                class="product-name d-block"
                            >
                                925 Sterling Silver Miami Cuban Box Lock
                                Chain or Bracelet
                            </a>


                            <div class="product-price">
                                From $86.13
                            </div>


                            <div class="stock-status">

                                <span class="stock-dot"></span>

                                In stock, 87320 grams

                            </div>


                            <a
                                href="<?= base_url('detail') ?>"
                                class="choose-options"
                            >
                                Choose Options
                            </a>

                        </div>

                    </div>

                </div>


                <!-- =====================================================
                    PRODUCT 3
                ====================================================== -->

                <div
                    class="product-item col-6 col-xl-3"
                    data-aos="fade-up"
                    data-aos-duration="700"
                    data-aos-delay="300"
                >

                    <div class="product-card">

                        <div class="product-image">

                            <span class="product-badge">
                                Lightweight
                            </span>


                            <button
                                class="wishlist-btn"
                                type="button"
                            >
                                <i class="bi bi-heart"></i>
                            </button>


                            <a href="<?= base_url('detail') ?>">

                                <img
                                    src="<?= base_url('chain.jpg') ?>"
                                    alt="Light Weight Miami Cuban Chain"
                                    loading="lazy"
                                >

                            </a>


                            <button
                                type="button"
                                class="quick-view"
                                data-bs-toggle="modal"
                                data-bs-target="#quickViewModal"
                                data-product="cuban3"
                            >
                                Quick View
                            </button>

                        </div>


                        <div class="product-content">

                            <div class="product-type">
                                Miami Cuban
                            </div>


                            <a
                                href="<?= base_url('detail') ?>"
                                class="product-name d-block"
                            >
                                925 Sterling Silver Light Weight Miami
                                Cuban Chain or Bracelet
                            </a>


                            <div class="product-price">
                                From $66.71
                            </div>


                            <div class="stock-status">

                                <span class="stock-dot"></span>

                                In stock, 1963 grams

                            </div>


                            <a
                                href="<?= base_url('detail') ?>"
                                class="choose-options"
                            >
                                Choose Options
                            </a>

                        </div>

                    </div>

                </div>


                <!-- =====================================================
                    PRODUCT 4
                ====================================================== -->

                <div
                    class="product-item col-6 col-xl-3"
                    data-aos="fade-up"
                    data-aos-duration="700"
                    data-aos-delay="100"
                >

                    <div class="product-card">

                        <div class="product-image">

                            <button
                                class="wishlist-btn"
                                type="button"
                            >
                                <i class="bi bi-heart"></i>
                            </button>


                            <a href="<?= base_url('detail') ?>">

                                <img
                                    src="<?= base_url('chain.jpg') ?>"
                                    alt="Diamond Cut Miami Cuban Chain"
                                    loading="lazy"
                                >

                            </a>


                            <button
                                type="button"
                                class="quick-view"
                                data-bs-toggle="modal"
                                data-bs-target="#quickViewModal"
                                data-product="cuban4"
                            >
                                Quick View
                            </button>

                        </div>


                        <div class="product-content">

                            <div class="product-type">
                                Diamond Cut
                            </div>


                            <a
                                href="<?= base_url('detail') ?>"
                                class="product-name d-block"
                            >
                                925 Sterling Silver Diamond Cut Miami
                                Cuban Chain
                            </a>


                            <div class="product-price">
                                From $42.80
                            </div>


                            <div class="stock-status">

                                <span class="stock-dot"></span>

                                In stock, 45210 grams

                            </div>


                            <a
                                href="<?= base_url('detail') ?>"
                                class="choose-options"
                            >
                                Choose Options
                            </a>

                        </div>

                    </div>

                </div>


                <!-- =====================================================
                    PRODUCT 5
                ====================================================== -->

                <div
                    class="product-item col-6 col-xl-3"
                    data-aos="fade-up"
                    data-aos-duration="700"
                    data-aos-delay="200"
                >

                    <div class="product-card">

                        <div class="product-image">

                            <span class="product-badge">
                                New
                            </span>


                            <button
                                class="wishlist-btn"
                                type="button"
                            >
                                <i class="bi bi-heart"></i>
                            </button>


                            <a href="<?= base_url('detail') ?>">

                                <img
                                    src="<?= base_url('chain.jpg') ?>"
                                    alt="Premium Miami Cuban Chain"
                                    loading="lazy"
                                >

                            </a>


                            <button
                                type="button"
                                class="quick-view"
                                data-bs-toggle="modal"
                                data-bs-target="#quickViewModal"
                                data-product="cuban5"
                            >
                                Quick View
                            </button>

                        </div>


                        <div class="product-content">

                            <div class="product-type">
                                Miami Cuban
                            </div>


                            <a
                                href="<?= base_url('detail') ?>"
                                class="product-name d-block"
                            >
                                Premium 925 Sterling Silver Miami
                                Cuban Chain
                            </a>


                            <div class="product-price">
                                From $74.50
                            </div>


                            <div class="stock-status">

                                <span class="stock-dot"></span>

                                In stock, 28140 grams

                            </div>


                            <a
                                href="<?= base_url('detail') ?>"
                                class="choose-options"
                            >
                                Choose Options
                            </a>

                        </div>

                    </div>

                </div>


                <!-- =====================================================
                    PRODUCT 6
                ====================================================== -->

                <div
                    class="product-item col-6 col-xl-3"
                    data-aos="fade-up"
                    data-aos-duration="700"
                    data-aos-delay="300"
                >

                    <div class="product-card">

                        <div class="product-image">

                            <button
                                class="wishlist-btn"
                                type="button"
                            >
                                <i class="bi bi-heart"></i>
                            </button>


                            <a href="<?= base_url('detail') ?>">

                                <img
                                    src="<?= base_url('chain.jpg') ?>"
                                    alt="Heavy Miami Cuban Chain"
                                    loading="lazy"
                                >

                            </a>


                            <button
                                type="button"
                                class="quick-view"
                                data-bs-toggle="modal"
                                data-bs-target="#quickViewModal"
                                data-product="cuban6"
                            >
                                Quick View
                            </button>

                        </div>


                        <div class="product-content">

                            <div class="product-type">
                                Heavy Cuban
                            </div>


                            <a
                                href="<?= base_url('detail') ?>"
                                class="product-name d-block"
                            >
                                925 Sterling Silver Heavy Miami Cuban
                                Chain
                            </a>


                            <div class="product-price">
                                From $129.00
                            </div>


                            <div class="stock-status">

                                <span class="stock-dot"></span>

                                In stock, 32100 grams

                            </div>


                            <a
                                href="<?= base_url('detail') ?>"
                                class="choose-options"
                            >
                                Choose Options
                            </a>

                        </div>

                    </div>

                </div>


            </div>


                <!-- =================================================
                     PAGINATION
                ================================================== -->

                <div class="luxury-pagination">

                    <a href="#" class="page-number active">
                        1
                    </a>

                    <a href="#" class="page-number">
                        2
                    </a>

                    <a href="#" class="page-number">
                        3
                    </a>

                    <a href="#" class="page-number">
                        4
                    </a>

                    <a href="#" class="page-number">
                        <i class="bi bi-chevron-right"></i>
                    </a>

                </div>


            </div>

        </div>

    </div>

</section>


<!-- =========================================================
     MOBILE FILTER OFFCANVAS
========================================================= -->

<div
    class="offcanvas offcanvas-start"
    tabindex="-1"
    id="mobileFilters"
    aria-labelledby="mobileFiltersLabel"
    style="width:320px;"
>


    <div class="offcanvas-header">

        <h5
            class="offcanvas-title"
            id="mobileFiltersLabel"
        >
            Filters
        </h5>

        <button
            type="button"
            class="btn-close"
            data-bs-dismiss="offcanvas"
        ></button>

    </div>


    <div class="offcanvas-body">


        <!-- Product Type -->

        <div class="filter-item">

            <button
                class="filter-toggle"
                type="button"
                data-bs-toggle="collapse"
                data-bs-target="#mobileProductType"
            >

                Product Type

                <i class="bi bi-chevron-down"></i>

            </button>


            <div
                id="mobileProductType"
                class="collapse show"
            >

                <div class="filter-content">

                    <label class="filter-option">

                        <input type="checkbox">

                        Chain

                    </label>

                    <label class="filter-option">

                        <input type="checkbox">

                        Bracelet

                    </label>

                </div>

            </div>

        </div>


        <!-- Plating -->

        <div class="filter-item">

            <button
                class="filter-toggle"
                type="button"
                data-bs-toggle="collapse"
                data-bs-target="#mobilePlating"
            >

                Plating

                <i class="bi bi-chevron-down"></i>

            </button>


            <div
                id="mobilePlating"
                class="collapse show"
            >

                <div class="filter-content">

                    <label class="filter-option">

                        <input type="checkbox">

                        Silver

                    </label>

                    <label class="filter-option">

                        <input type="checkbox">

                        Gold

                    </label>

                    <label class="filter-option">

                        <input type="checkbox">

                        Rose Gold

                    </label>

                </div>

            </div>

        </div>


        <!-- Chain Style -->

        <div class="filter-item">

            <button
                class="filter-toggle"
                type="button"
                data-bs-toggle="collapse"
                data-bs-target="#mobileChainStyle"
            >

                Chain Style

                <i class="bi bi-chevron-down"></i>

            </button>


            <div
                id="mobileChainStyle"
                class="collapse show"
            >

                <div class="filter-content">

                    <label class="filter-option">

                        <input
                            type="checkbox"
                            checked
                        >

                        Miami Cuban

                    </label>

                    <label class="filter-option">

                        <input type="checkbox">

                        Diamond Cut

                    </label>

                    <label class="filter-option">

                        <input type="checkbox">

                        Box Lock

                    </label>

                    <label class="filter-option">

                        <input type="checkbox">

                        Lightweight

                    </label>

                </div>

            </div>

        </div>


        <!-- Length -->

        <div class="filter-item">

            <button
                class="filter-toggle"
                type="button"
                data-bs-toggle="collapse"
                data-bs-target="#mobileLength"
            >

                Length

                <i class="bi bi-chevron-down"></i>

            </button>


            <div
                id="mobileLength"
                class="collapse"
            >

                <div class="filter-content">

                    <label class="filter-option">
                        <input type="checkbox">
                        16"
                    </label>

                    <label class="filter-option">
                        <input type="checkbox">
                        18"
                    </label>

                    <label class="filter-option">
                        <input type="checkbox">
                        20"
                    </label>

                    <label class="filter-option">
                        <input type="checkbox">
                        22"
                    </label>

                    <label class="filter-option">
                        <input type="checkbox">
                        24"
                    </label>

                </div>

            </div>

        </div>


    </div>

</div>
<!-- =========================================================
     QUICK VIEW MODAL
========================================================= -->

<!-- =========================================================
     QUICK VIEW MODAL
========================================================= -->

<div
    class="modal fade"
    id="quickViewModal"
    tabindex="-1"
    aria-hidden="true"
>

    <div class="modal-dialog modal-dialog-centered quick-view-dialog">

        <div class="modal-content quick-view-modal">


            <!-- =================================================
                 CLOSE BUTTON
            ================================================= -->

            <button
                type="button"
                class="quick-view-close"
                data-bs-dismiss="modal"
                aria-label="Close"
            >
            ×
            </button>


            <div class="quick-view-layout">


                <!-- =================================================
                     LEFT : PRODUCT GALLERY
                ================================================= -->

                <div class="quick-view-gallery">


                    <!-- Thumbnail Gallery -->

                    <div class="quick-thumbnails" id="quickThumbnails">

                        <!-- JS will generate thumbnails -->

                    </div>


                    <!-- Main Image -->

                    <div class="quick-main-image">

                        <img
                            id="quickViewImage"
                            src="<?= base_url('chain.jpg') ?>"
                            alt="Product"
                        >


                        <!-- Zoom -->

                        <div class="quick-zoom-text">

                            <i class="fa-solid fa-magnifying-glass"></i>

                            <span>
                                Roll over image to zoom in
                            </span>

                        </div>

                    </div>

                </div>



                <!-- =================================================
                     RIGHT : PRODUCT INFORMATION
                ================================================= -->

                <div class="quick-view-content">


                    <!-- Collection -->

                    <div class="quick-view-collection">

                        Sterling Silver Collection

                    </div>


                    <!-- Title -->

                    <h2
                        id="quickViewTitle"
                        class="quick-product-title"
                    >
                        925 Sterling Silver Miami Cuban Chain or Bracelet
                    </h2>


                    <!-- SKU -->

                    <div class="quick-sku">

                        SKU:

                        <span id="quickViewSku">
                            CH649-16
                        </span>

                    </div>


                    <!-- Social -->
<!-- 
                    <div class="quick-social">

                        <a href="javascript:void(0);">
                            <i class="fa-brands fa-facebook-f"></i>
                        </a>

                        <a href="javascript:void(0);">
                            <i class="fa-brands fa-pinterest-p"></i>
                        </a>

                        <a href="javascript:void(0);">
                            <i class="fa-brands fa-x-twitter"></i>
                        </a>

                        <a href="javascript:void(0);">
                            <i class="fa-regular fa-envelope"></i>
                        </a>

                    </div> -->


                    <div class="quick-divider"></div>



                    <!-- =================================================
                         PLATING
                    ================================================= -->

                    <div class="quick-option-group">

                        <div class="quick-option-title">

                            Plating:

                            <span id="selectedPlating">
                                Basic Non-Plated
                            </span>

                        </div>


                        <div
                            class="quick-option-buttons"
                            id="platingOptions"
                        >

                            <button
                                type="button"
                                class="quick-option-btn active"
                                data-value="Basic Non-Plated"
                            >
                                Basic Non-Plated
                            </button>

                            <button
                                type="button"
                                class="quick-option-btn"
                                data-value="Rhodium"
                            >
                                Rhodium
                            </button>

                            <button
                                type="button"
                                class="quick-option-btn"
                                data-value="Gold"
                            >
                                Gold
                            </button>

                            <button
                                type="button"
                                class="quick-option-btn"
                                data-value="Rose Gold"
                            >
                                Rose Gold
                            </button>

                        </div>

                    </div>



                    <!-- =================================================
                         WIDTH
                    ================================================= -->

                    <div class="quick-option-group">

                        <div class="quick-option-title">

                            Width:

                            <span id="selectedWidth">
                                3.0mm
                            </span>

                        </div>


                        <div
                            class="quick-option-buttons"
                            id="widthOptions"
                        >

                            <button
                                type="button"
                                class="quick-option-btn active"
                                data-value="3.0mm"
                            >
                                3.0mm
                            </button>

                            <button
                                type="button"
                                class="quick-option-btn"
                                data-value="3.7mm"
                            >
                                3.7mm
                            </button>

                            <button
                                type="button"
                                class="quick-option-btn"
                                data-value="4.9mm"
                            >
                                4.9mm
                            </button>

                            <button
                                type="button"
                                class="quick-option-btn"
                                data-value="5.5mm"
                            >
                                5.5mm
                            </button>

                            <button
                                type="button"
                                class="quick-option-btn"
                                data-value="7.0mm"
                            >
                                7.0mm
                            </button>

                            <button
                                type="button"
                                class="quick-option-btn"
                                data-value="7.6mm"
                            >
                                7.6mm
                            </button>

                            <button
                                type="button"
                                class="quick-option-btn"
                                data-value="8.8mm"
                            >
                                8.8mm
                            </button>

                            <button
                                type="button"
                                class="quick-option-btn"
                                data-value="10.4mm"
                            >
                                10.4mm
                            </button>

                        </div>

                    </div>



                    <!-- =================================================
                         LENGTH
                    ================================================= -->

                    <div class="quick-option-group">

                        <div class="quick-option-title">

                            Length:

                            <span id="selectedLength">
                                16"
                            </span>

                        </div>


                        <div
                            class="quick-option-buttons"
                            id="lengthOptions"
                        >

                            <button
                                type="button"
                                class="quick-option-btn active"
                                data-value='16"'
                            >
                                16"
                            </button>

                            <button
                                type="button"
                                class="quick-option-btn"
                                data-value='18"'
                            >
                                18"
                            </button>

                            <button
                                type="button"
                                class="quick-option-btn"
                                data-value='20"'
                            >
                                20"
                            </button>

                            <button
                                type="button"
                                class="quick-option-btn"
                                data-value='22"'
                            >
                                22"
                            </button>

                            <button
                                type="button"
                                class="quick-option-btn"
                                data-value='24"'
                            >
                                24"
                            </button>

                        </div>

                    </div>



                    <!-- =================================================
                         PRICE
                    ================================================= -->

                    <div class="quick-price-row">

                        <div class="quick-price-label">
                            Price:
                        </div>

                        <div
                            id="quickViewPrice"
                            class="quick-product-price"
                        >
                            $42.92
                        </div>

                    </div>


                    <!-- Price Per Gram -->

                    <div class="quick-price-gram">

                        <strong>
                            Price Per Gram:
                        </strong>

                        <span id="quickViewPriceGram">
                            $3.91
                        </span>

                    </div>



                    <!-- =================================================
                         PRODUCT DETAILS
                    ================================================= -->

                    <div class="quick-product-detail-row">

                        <span class="quick-detail-label">
                            Weight:
                        </span>

                        <span id="quickViewWeight">
                            11.0 grams
                        </span>

                    </div>


                    <div class="quick-product-detail-row">

                        <span class="quick-detail-label">
                            Stock:
                        </span>

                        <span class="quick-stock">

                            <span class="quick-stock-dot"></span>

                            <strong>
                                In stock
                            </strong>

                            <span id="quickViewStock">
                                459 grams
                            </span>

                        </span>

                    </div>


                    <!-- Stock Line -->

                    <div class="quick-stock-line">
                        <span></span>
                    </div>



                    <!-- =================================================
                         QUANTITY
                    ================================================= -->

                    <div class="quick-quantity-row">

                        <div class="quick-quantity-label">
                            Quantity:
                        </div>


                        <div class="quick-quantity">

                            <button
                                type="button"
                                id="quickQtyMinus"
                            >
                                −
                            </button>

                            <input
                                type="text"
                                id="quickQty"
                                value="1"
                                readonly
                            >

                            <button
                                type="button"
                                id="quickQtyPlus"
                            >
                                +
                            </button>

                        </div>

                    </div>



                    <!-- =================================================
                         ACTIONS
                    ================================================= -->

                    <div class="quick-action-buttons">

                        <button
                            type="button"
                            class="quick-add-cart"
                            id="quickAddCart"
                        >
                            Add to cart
                        </button>


                        <button
                            type="button"
                            class="quick-save"
                            id="quickSave"
                        >

                            <i class="fa-regular fa-heart"></i>

                            <span>
                                Save
                            </span>

                        </button>

                    </div>


                    <!-- Full Details -->

                    <a
                        id="quickViewDetails"
                        href="<?= base_url('detail') ?>"
                        class="quick-full-details"
                    >
                        View Full Product Details
                        <i class="fa-solid fa-arrow-right"></i>
                    </a>

                </div>

            </div>

        </div>

    </div>

</div>

<!-- =========================================================
     BOOTSTRAP JS
========================================================= -->

<script
    src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js">
</script>


<!-- =========================================================
     AOS JS
========================================================= -->

<script
    src="https://unpkg.com/aos@2.3.4/dist/aos.js">
</script>


<script>

    /* =========================================================
       AOS
    ========================================================== */

    AOS.init({

        duration: 750,

        easing: "ease-out-cubic",

        once: true,

        offset: 70,

        mirror: false

    });


    /* =========================================================
       WISHLIST
    ========================================================== */

    document.querySelectorAll(".wishlist-btn").forEach(function(button) {

        button.addEventListener("click", function() {

            const icon = this.querySelector("i");

            icon.classList.toggle("bi-heart");

            icon.classList.toggle("bi-heart-fill");

        });

    });


    /* =========================================================
       VIEW BUTTON
    ========================================================== */

    document.querySelectorAll(".view-btn").forEach(function(button) {

        button.addEventListener("click", function() {

            document.querySelectorAll(".view-btn").forEach(function(btn) {

                btn.classList.remove("active");

            });

            this.classList.add("active");

        });

    });

</script>

<script>
    /* =========================================================
   GRID / LIST VIEW
========================================================= */

const productContainer = document.getElementById("productContainer");

const gridButton = document.querySelector(
    '.view-btn[title="Grid View"]'
);

const listButton = document.querySelector(
    '.view-btn[title="List View"]'
);


gridButton.addEventListener("click", function () {

    productContainer.classList.remove("list-view");

    productContainer.classList.add(
        "row",
        "g-3",
        "g-xl-4"
    );

    document.querySelectorAll(".product-item").forEach(function (item) {

        item.classList.remove("col-12");

        item.classList.add(
            "col-6",
            "col-xl-4"
        );

    });


    gridButton.classList.add("active");
    listButton.classList.remove("active");

});


listButton.addEventListener("click", function () {

    productContainer.classList.remove(
        "row",
        "g-3",
        "g-xl-4"
    );

    productContainer.classList.add("list-view");


    document.querySelectorAll(".product-item").forEach(function (item) {

        item.classList.remove(
            "col-6",
            "col-xl-4"
        );

        item.classList.add("col-12");

    });


    listButton.classList.add("active");
    gridButton.classList.remove("active");

});
</script>
<script>

/* =========================================================
   QUICK VIEW DATA
========================================================= */

const quickProducts = {

    cuban1: {

        images: [
            "chain.jpg",
            "chain.jpg",
            "chain.jpg",
            "chain.jpg"
        ],

        title:
            "925 Sterling Silver Miami Cuban Chain or Bracelet",

        sku:
            "CH649-16",

        price:
            "$42.92",

        priceGram:
            "$3.91",

        weight:
            "11.0 grams",

        stock:
            "459 grams",

        plating:
            [
                "Basic Non-Plated",
                "Rhodium",
                "Gold",
                "Rose Gold"
            ],

        widths:
            [
                "3.0mm",
                "3.7mm",
                "4.9mm",
                "5.5mm",
                "7.0mm",
                "7.6mm",
                "8.8mm",
                "10.4mm"
            ],

        lengths:
            [
                '16"',
                '18"',
                '20"',
                '22"',
                '24"'
            ],

        selectedPlating:
            "Basic Non-Plated",

        selectedWidth:
            "3.0mm",

        selectedLength:
            '16"',

        url:
            "product-detail.html"

    },


    cuban2: {

        images: [
            "images/products/cuban-chain-02.jpg",
            "images/products/cuban-chain-01.jpg",
            "images/products/cuban-chain-03.jpg"
        ],

        title:
            "925 Sterling Silver Miami Cuban Box Lock Chain or Bracelet",

        sku:
            "CH650-18",

        price:
            "$86.13",

        priceGram:
            "$4.25",

        weight:
            "20.2 grams",

        stock:
            "315 grams",

        plating:
            [
                "Basic Non-Plated",
                "Rhodium",
                "Gold",
                "Rose Gold"
            ],

        widths:
            [
                "3.0mm",
                "3.7mm",
                "4.9mm",
                "5.5mm",
                "7.0mm"
            ],

        lengths:
            [
                '16"',
                '18"',
                '20"',
                '22"',
                '24"'
            ],

        selectedPlating:
            "Basic Non-Plated",

        selectedWidth:
            "3.0mm",

        selectedLength:
            '18"',

        url:
            "product-detail.html"

    },


    cuban3: {

        images: [
            "images/products/cuban-chain-03.jpg",
            "images/products/cuban-chain-01.jpg",
            "images/products/cuban-chain-04.jpg"
        ],

        title:
            "925 Sterling Silver Light Weight Miami Cuban Chain or Bracelet",

        sku:
            "CH651-16",

        price:
            "$66.71",

        priceGram:
            "$3.84",

        weight:
            "17.4 grams",

        stock:
            "285 grams",

        plating:
            [
                "Basic Non-Plated",
                "Rhodium",
                "Gold",
                "Rose Gold"
            ],

        widths:
            [
                "3.0mm",
                "3.7mm",
                "4.9mm",
                "5.5mm"
            ],

        lengths:
            [
                '16"',
                '18"',
                '20"',
                '22"',
                '24"'
            ],

        selectedPlating:
            "Basic Non-Plated",

        selectedWidth:
            "3.0mm",

        selectedLength:
            '16"',

        url:
            "product-detail.html"

    },


    cuban4: {

        images: [
            "images/products/cuban-chain-04.jpg",
            "images/products/cuban-chain-01.jpg",
            "images/products/cuban-chain-02.jpg"
        ],

        title:
            "925 Sterling Silver Diamond Cut Miami Cuban Chain",

        sku:
            "CH652-18",

        price:
            "$42.80",

        priceGram:
            "$3.90",

        weight:
            "10.9 grams",

        stock:
            "402 grams",

        plating:
            [
                "Basic Non-Plated",
                "Rhodium",
                "Gold",
                "Rose Gold"
            ],

        widths:
            [
                "3.0mm",
                "3.7mm",
                "4.9mm",
                "5.5mm",
                "7.0mm",
                "7.6mm"
            ],

        lengths:
            [
                '16"',
                '18"',
                '20"',
                '22"',
                '24"'
            ],

        selectedPlating:
            "Basic Non-Plated",

        selectedWidth:
            "3.0mm",

        selectedLength:
            '18"',

        url:
            "product-detail.html"

    },


    cuban5: {

        images: [
            "images/products/cuban-chain-05.jpg",
            "images/products/cuban-chain-01.jpg",
            "images/products/cuban-chain-03.jpg"
        ],

        title:
            "Premium 925 Sterling Silver Miami Cuban Chain",

        sku:
            "CH653-20",

        price:
            "$74.50",

        priceGram:
            "$4.10",

        weight:
            "18.1 grams",

        stock:
            "355 grams",

        plating:
            [
                "Basic Non-Plated",
                "Rhodium",
                "Gold",
                "Rose Gold"
            ],

        widths:
            [
                "3.7mm",
                "4.9mm",
                "5.5mm",
                "7.0mm"
            ],

        lengths:
            [
                '16"',
                '18"',
                '20"',
                '22"',
                '24"'
            ],

        selectedPlating:
            "Basic Non-Plated",

        selectedWidth:
            "4.9mm",

        selectedLength:
            '20"',

        url:
            "product-detail.html"

    },


    cuban6: {

        images: [
            "images/products/cuban-chain-06.jpg",
            "images/products/cuban-chain-01.jpg",
            "images/products/cuban-chain-04.jpg"
        ],

        title:
            "925 Sterling Silver Heavy Miami Cuban Chain",

        sku:
            "CH654-22",

        price:
            "$129.00",

        priceGram:
            "$4.50",

        weight:
            "28.7 grams",

        stock:
            "210 grams",

        plating:
            [
                "Basic Non-Plated",
                "Rhodium",
                "Gold",
                "Rose Gold"
            ],

        widths:
            [
                "4.9mm",
                "5.5mm",
                "7.0mm",
                "7.6mm",
                "8.8mm",
                "10.4mm"
            ],

        lengths:
            [
                '18"',
                '20"',
                '22"',
                '24"'
            ],

        selectedPlating:
            "Basic Non-Plated",

        selectedWidth:
            "7.0mm",

        selectedLength:
            '22"',

        url:
            "product-detail.html"

    }

};



/* =========================================================
   CURRENT PRODUCT
========================================================= */

let currentQuickProduct = null;



/* =========================================================
   QUICK VIEW BUTTON
========================================================= */

document.querySelectorAll(".quick-view").forEach(function(button) {

    button.addEventListener("click", function() {

        const productID =
            this.getAttribute("data-product");

        const product =
            quickProducts[productID];

        if (!product) {
            return;
        }

        currentQuickProduct = product;

        loadQuickProduct(product);

    });

});



/* =========================================================
   LOAD QUICK PRODUCT
========================================================= */

function loadQuickProduct(product) {


    /* -----------------------------------------
       BASIC INFORMATION
    ----------------------------------------- */

    document.getElementById(
        "quickViewTitle"
    ).textContent = product.title;


    document.getElementById(
        "quickViewSku"
    ).textContent = product.sku;


    document.getElementById(
        "quickViewPrice"
    ).textContent = product.price;


    document.getElementById(
        "quickViewPriceGram"
    ).textContent = product.priceGram;


    document.getElementById(
        "quickViewWeight"
    ).textContent = product.weight;


    document.getElementById(
        "quickViewStock"
    ).textContent = product.stock;


    document.getElementById(
        "quickViewDetails"
    ).href = product.url;



    /* -----------------------------------------
       MAIN IMAGE
    ----------------------------------------- */

    const mainImage =
        document.getElementById("quickViewImage");

    mainImage.src =
        product.images[0];

    mainImage.alt =
        product.title;



    /* -----------------------------------------
       THUMBNAILS
    ----------------------------------------- */

    const thumbnails =
        document.getElementById("quickThumbnails");

    thumbnails.innerHTML = "";


    product.images.forEach(function(image, index) {

        const button =
            document.createElement("button");

        button.type = "button";

        button.className =
            "quick-thumbnail" +
            (index === 0 ? " active" : "");


        button.innerHTML = `
            <img
                src="<?= base_url('chain.jpg') ?>"
                alt="${product.title}"
            >
        `;


        button.addEventListener(
            "click",
            function() {

                document
                    .querySelectorAll(".quick-thumbnail")
                    .forEach(function(item) {

                        item.classList.remove("active");

                    });


                button.classList.add("active");


                mainImage.src = image;

            }
        );


        thumbnails.appendChild(button);

    });



    /* -----------------------------------------
       PLATING
    ----------------------------------------- */

    createOptionButtons(
        "platingOptions",
        product.plating,
        product.selectedPlating,
        "selectedPlating"
    );



    /* -----------------------------------------
       WIDTH
    ----------------------------------------- */

    createOptionButtons(
        "widthOptions",
        product.widths,
        product.selectedWidth,
        "selectedWidth"
    );



    /* -----------------------------------------
       LENGTH
    ----------------------------------------- */

    createOptionButtons(
        "lengthOptions",
        product.lengths,
        product.selectedLength,
        "selectedLength"
    );



    /* -----------------------------------------
       RESET QUANTITY
    ----------------------------------------- */

    document.getElementById(
        "quickQty"
    ).value = 1;

}



/* =========================================================
   CREATE OPTION BUTTONS
========================================================= */

function createOptionButtons(
    containerID,
    options,
    selectedValue,
    selectedTextID
) {

    const container =
        document.getElementById(containerID);

    container.innerHTML = "";


    options.forEach(function(option) {

        const button =
            document.createElement("button");


        button.type = "button";

        button.className =
            "quick-option-btn";


        if (option === selectedValue) {

            button.classList.add("active");

        }


        button.textContent =
            option;


        button.setAttribute(
            "data-value",
            option
        );


        button.addEventListener(
            "click",
            function() {

                container
                    .querySelectorAll(".quick-option-btn")
                    .forEach(function(item) {

                        item.classList.remove("active");

                    });


                button.classList.add("active");


                document.getElementById(
                    selectedTextID
                ).textContent = option;


                /* --------------------------------
                   Store selected value
                -------------------------------- */

                if (
                    selectedTextID ===
                    "selectedPlating"
                ) {

                    currentQuickProduct.selectedPlating =
                        option;

                }


                if (
                    selectedTextID ===
                    "selectedWidth"
                ) {

                    currentQuickProduct.selectedWidth =
                        option;

                }


                if (
                    selectedTextID ===
                    "selectedLength"
                ) {

                    currentQuickProduct.selectedLength =
                        option;

                }

            }
        );


        container.appendChild(button);

    });

}



/* =========================================================
   QUANTITY MINUS
========================================================= */

document.getElementById(
    "quickQtyMinus"
).addEventListener(
    "click",
    function() {

        const input =
            document.getElementById("quickQty");

        let quantity =
            parseInt(input.value) || 1;


        if (quantity > 1) {

            quantity--;

        }


        input.value =
            quantity;

    }
);



/* =========================================================
   QUANTITY PLUS
========================================================= */

document.getElementById(
    "quickQtyPlus"
).addEventListener(
    "click",
    function() {

        const input =
            document.getElementById("quickQty");

        let quantity =
            parseInt(input.value) || 1;


        quantity++;


        input.value =
            quantity;

    }
);



/* =========================================================
   SAVE PRODUCT
========================================================= */

document.getElementById(
    "quickSave"
).addEventListener(
    "click",
    function() {

        const icon =
            this.querySelector("i");


        icon.classList.toggle(
            "fa-regular"
        );


        icon.classList.toggle(
            "fa-solid"
        );


        this.classList.toggle(
            "saved"
        );

    }
);



/* =========================================================
   ADD TO CART
========================================================= */

document.getElementById(
    "quickAddCart"
).addEventListener(
    "click",
    function() {

        if (!currentQuickProduct) {
            return;
        }


        const quantity =
            parseInt(
                document.getElementById("quickQty").value
            ) || 1;


        const selectedData = {

            product:
                currentQuickProduct.title,

            sku:
                currentQuickProduct.sku,

            plating:
                currentQuickProduct.selectedPlating,

            width:
                currentQuickProduct.selectedWidth,

            length:
                currentQuickProduct.selectedLength,

            quantity:
                quantity

        };


        console.log(
            "Quick View Add To Cart:",
            selectedData
        );


        /* -----------------------------------------
           Temporary button feedback
        ----------------------------------------- */

        const button =
            this;

        const oldText =
            button.textContent;


        button.textContent =
            "Added to cart";


        button.classList.add(
            "added"
        );


        setTimeout(function() {

            button.textContent =
                oldText;

            button.classList.remove(
                "added"
            );

        }, 1500);

    }
);

</script>

<?= $this->include('templates/footer') ?>
