.wrap {
    margin: 18px auto;
    padding: 18px;
}


/* breadcrumb */
.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px
}

.breadcrumb a {
    color: var(--accent-2);
    text-decoration: none;
    margin-left: 6px
}

.breadcrumb a:active {
    color: var(--accent-2);
}

/* layout */
.layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start
}


/* left column */
.title {
    font-size: 32px;
    font-weight: 800;
    margin: 4px 2px 18px
}


.media-wrap {
    background: #f7f7f7;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06)
}

.gallery {
    border-radius: 10px;
    overflow: hidden;
    height: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin: auto;
}

#main-slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px !important;
}

.splide__slide li {
    border-radius: 10px !important;
}

.splide__slide img {
    border-radius: 10px !important;
    object-fit: cover;
}

/* Thumbnails */
.thumbnails {
    margin-top: 12px;
}

.splide {
    margin-bottom: 12px;
}

.thumbnails .splide__track {
    padding: 0 6px;
}

.thumbnails .splide__slide {
    opacity: 0.4;
    border-radius: 10px;
    cursor: pointer;
}

.thumbnails .splide__slide.is-active {
    opacity: 1;
    border: 2px solid var(--accent-2);
    border-radius: 10px;
}

.splide li {
    max-height: 360px
}

.splide__arrow {
    z-index: unset !important;
}

.thumbnails img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
}

.main-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block
}

#thumbnail-slider {
    padding: 0 50px;
}

@media (max-width: 426px) and (min-width: 300px) {
    .gallery {
        max-width: 287px !important;
    }
}

@media (max-width: 768px) and (min-width: 426px) {
    .gallery {
        max-width: 380px !important;
    }
}

@media (max-width: 1280px) and (min-width: 769px) {
    .gallery {
        max-width: 496px;
    }
}

/* tabs below image */
.tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #e6e6e6;
    margin-top: 12px
}

.tab {
    padding: 10px 14px;
    cursor: pointer;
    color: var(--muted);
    font-weight: 700
}

.tab.active {
    color: var(--accent-2);
    border-bottom: 3px solid var(--accent-2);
    padding-bottom: 7px
}


/* content */
.content {
    padding-top: 18px
}

.section h3 {
    font-size: 20px;
    margin: 8px 0
}

.desc {
    color: #333;
    line-height: 1.6
}


.fine-print ul {
    padding-left: 18px;
    color: #333
}

.fine-print li {
    padding: 3px;
    justify-content: justify;
}


/* right column (sidebar) */
.sidebar {
    position: sticky;
    top: 18px
}


.deal-card {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: visible;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06)
}


/* header with scalloped bottom */
.deal-header {
    background: var(--orange);
    color: white;
    padding: 18px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    position: relative
}

.deal-header .ends {
    font-size: 13px;
    font-weight: 700
}

/* scallop using repeating-radial-gradient placed in ::after */
.deal-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 28px;
    background-image: repeating-radial-gradient(circle at 50% 0, #fff 0 14px, transparent 15px 28px);
    background-size: 28px 28px;
    background-position: 0 0
}


.deal-body {
    padding: 28px 18px 18px
}

.price-row {
    display: flex;
    align-items: center;
    gap: 12px
}

.price-old {
    color: var(--muted);
    text-decoration: line-through
}

.price-now {
    font-size: 22px;
    font-weight: 900;
    color: #e85b2f
}

.badge {
    background: #dff1e5;
    color: #0b7a3b;
    padding: 6px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px
}


.cta {
    margin-top: 14px;
    display: flex;
    gap: 10px
}

.btn-primary {
    flex: 1;
    background: var(--orange);
    border: 0;
    padding: 12px;
    border-radius: 30px;
    color: #fff;
    font-weight: 800;
    cursor: pointer
}

.btn-secondary {
    flex: 1;
    border: 1px solid #eee;
    background: #fafafa;
    padding: 12px;
    border-radius: 30px;
    color: var(--muted);
    cursor: pointer
}


.vendor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 12px;
    flex-wrap: wrap;
}

.vendor .logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f4f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800
}

.logo img {
    object-fit: cover;
    width: 100%;
}

.small-location {
    display: flex;
    align-items: center;
}

.line {
    width: 1px;
    height: 60px;
    background: #000;
}

@media (max-width: 425px) {
    .vendor {
        flex-direction: column;
    }

    .line {
        height: 0;
    }
}

@media (min-width: 426px) {
    .rating {
        margin-left: 20px;
    }
}

.vendor .info {
    font-weight: 700
}

/* similar deals list */
.similar {
    margin-top: 22px
}

.similar h4 {
    margin: 0 0 8px 0
}

.sim-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    align-items: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04)
}

.card {
    min-height: unset;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    font-size: 0.85rem;
}

a.btn.primary {
    text-decoration: none;
}

.btn.primary {
    text-align: center;
}

.sim-card img {
    width: 96px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px
}

.save-price {
    font-weight: lighter;
}

.card-meta1 {
    margin-bottom: 10px;
}

.sim-info {
    flex: 1
}

.sim-top {
    font-weight: 700;
    font-size: 14px
}

.sim-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px
}

.sim-footer {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.small::before {
    position: unset;
}

/* bottom scallop for similar cards */
\ .sim-card .scallop {
    height: 18px;
    background: var(--orange);
    border-radius: 0 0 8px 8px;
    margin-top: 10px
}

.card-body::after,
.card-body::before {
    display: none;
}

.card-controller {
    display: flex;
    align-items: center;
}

.card-media {
    overflow: unset;
    border-radius: 8px;
}

.card-media img {
    border-radius: 8px;
}

/* responsive */
@media(max-width:980px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 260px
    }

    .sidebar {
        position: relative;
        top: auto
    }
}

.special {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.card-footer.special::after {
    top: 53px;
}

.card-footer.special::before {
    top: 53px;
}

.special-card {
    flex-direction: column;
    align-items: flex-start;
}

.buttons-wrapper {
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
}

.buygift {
    margin-top: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-special {
    box-shadow: none;
}

.primary {
    padding: 10px 14px;
}

.buygift {
    padding: 6px 14px;
}

/* Rating style */
/* From Uiverse.io by andrew-demchenk0 */
.rating:not(:checked)>input {
    position: absolute;
    appearance: none;
}

.rating:not(:checked)>label {
    float: right;
    cursor: pointer;
    font-size: 30px;
    color: #666;
}

.rating:not(:checked)>label:before {
    content: '★';
}

.rating>input:checked+label:hover,
.rating>input:checked+label:hover~label,
.rating>input:checked~label:hover,
.rating>input:checked~label:hover~label,
.rating>label:hover~input:checked~label {
    color: #e58e09;
}

.rating:not(:checked)>label:hover,
.rating:not(:checked)>label:hover~label {
    color: #ff9e0b;
}

.rating>input:checked~label {
    color: #ffa723;
}

/* Overlay background */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 9999;
}

/* Show state */
.overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Popup box */
.popup {
    background: #fff;
    width: 100%;
    max-width: 430px;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(30px);
    opacity: 0;
    transition: all .3s ease;
}

.popup-btn-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 430px;
    border-radius: 18px;
    padding: 25px;
    transform: translateY(30px);
    opacity: 0;
    transition: all .3s ease;
}

.overlay.active .popup-btn-wrapper {
    transform: translateY(0);
    opacity: 1;
}

/* Popup animation */
.overlay.active .popup {
    transform: translateY(0);
    opacity: 1;
}

/* Title */
.popup-title {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-size: 18px;
    font-weight: 700;
}

/* Input fields */
.input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 40px;
    font-size: 0.95rem;
    background-color: rgb(233, 233, 233);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    font-family: var(--arabic-font);
}

.textarea {
    width: 100%;
    padding: 15px 15px;
    border: none;
    border-radius: 18px;
    font-size: 0.95rem;
    background-color: rgb(233, 233, 233);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    height: 100px;
    resize: none;
    font-family: var(--arabic-font);
}

.popup input:focus,
.popup textarea:focus {
    outline: none;
    border-color: var(--accent-2);
    background-color: #fff;
}

/* Confirm button */
.confirm-btn {
    font-family: var(--arabic-font);
    width: 100%;
    background: var(--accent-2);
    font-weight: bold;
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    cursor: pointer;
}

.confirm-btn:hover {
    background: var(--accent);
}

/* Back button */
.back-btn {
    font-family: var(--arabic-font);
    width: 100%;
    background: #fff;
    border: none;
    color: #000;
    padding: 14px;
    font-weight: bold;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.back-btn img {
    width: 16px;
    vertical-align: middle;
    transform: rotate(90deg);
    margin-right: 8px;
}

@media (max-width: 480px) {
    .wrap {
        padding: 0;
    }
}