/* place-content.css - Extracted from place-content.blade.php */

.sticky_div {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0px !important;
    z-index: 5;
    background: #f3f3f3;
}

:root {
    --app-teal: #266f76;
    --app-teal-700: #1f5960;
    --app-mint: #e5f5f4;
    --app-gray: #444;
    --app-muted: #666;
    --app-border: #ededed;
    --app-radius: 12px;
    --app-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body {
    background: #f3f3f3;
    color: var(--app-gray);
}

/* Hide Google Maps default controls */
.gm-style .gm-style-cc,
.gm-style button[title="Toggle fullscreen view"],
.gm-style button[title="Rotate map 90 degrees"],
.gm-style .gm-fullscreen-control,
.gm-style .gmnoprint:not(.custom-location-btn) {
    display: none !important;
}

html[dir="rtl"] .btn-order i {
    margin-left: 8px;
    margin-right: 0;
}

html[dir="ltr"] .btn-order i {
    margin-right: 8px;
    margin-left: 0;
}

html[dir="rtl"] .favorite-btn {
    left: 10px;
    right: auto;
}

html[dir="ltr"] .favorite-btn {
    right: 10px;
    left: auto;
}

html[dir="rtl"] .card-body {
    text-align: right;
    direction: rtl;
}

html[dir="ltr"] .card-body {
    text-align: left;
    direction: ltr;
}

html[dir="rtl"] .custom-tab-content {
    direction: rtl;
}

html[dir="ltr"] .custom-tab-content {
    direction: ltr;
}

html[dir="rtl"] .logo {
    right: 30px;
    left: auto;
}

html[dir="ltr"] .logo {
    left: 30px;
    right: auto;
}

.status,
.tag {
    display: flex;
    align-items: center;
    border-radius: 30px;
    font-size: 13px;
    padding: 10px;
    margin: 0;
    justify-content: center;
}

.status {
    background: #fff;
    border: 1px solid #ddd;
    color: #444;
}

.status i {
    font-size: 10px;
    margin-left: 5px;
}

.status .online {
    color: #329c45;
    margin-left: 5px;
}

.status .busy {
    color: #e0ab17;
    margin-left: 5px;
}

.status .offline {
    color: #dc3545;
    margin-left: 5px;
}

.status .offline {
    color: #dc3545;
    margin-left: 5px;
}

.work_closed {
    background: #ffe5e5;
    border: 1px solid #ffcccc;
    color: #000;
    padding: 8px 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.handel_card {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .handel_card {
        margin-top: 8px;
    }
}

.headerSwiper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
    background: #f7f7f7;
    width: 100%;
    aspect-ratio: 18/4;
    margin: 0 auto;
}

.headerSwiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.headerSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    cursor: pointer;
}

.headerSwiper .swiper-button-next,
.headerSwiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.headerSwiper .swiper-button-next:hover,
.headerSwiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.6);
}

.headerSwiper .swiper-button-next:after,
.headerSwiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.headerSwiper .swiper-pagination {
    bottom: 12px !important;
}

.headerSwiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.8;
    width: 10px;
    height: 10px;
    margin: 0 4px !important;
    border: 2px solid #bbb;
    transition: 0.3s;
}

.headerSwiper .swiper-pagination-bullet-active {
    background: #00bc8b;
    border-color: #00bc8b;
}

.headerSwiper .slide-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.placeholder-slider-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5f5f4 0%, #b8dfe0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--app-teal);
    gap: 12px;
}

.placeholder-slider-image i {
    font-size: 56px;
    opacity: 0.7;
}

.placeholder-slider-image span {
    font-size: 18px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .headerSwiper {
        border-radius: 12px;
        aspect-ratio: 16/10;
    }

    .headerSwiper .swiper-button-next,
    .headerSwiper .swiper-button-prev {
        width: 34px;
        height: 34px;
    }

    .headerSwiper .slide-overlay {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .status,
    .tag {
        border-radius: 8px;
    }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 15px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    text-decoration: none;
}

.breadcrumb span {
    color: var(--app-teal);
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
}

.profile-header {
    position: relative;
    margin-top: 30px;
    margin-bottom: 60px;
}

.banner {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-banner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--app-teal) 0%, #1f5960 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 15px;
}

.placeholder-banner i {
    font-size: 64px;
    opacity: 0.9;
}

.placeholder-banner span {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 0 20px;
}

.logo {
    position: absolute;
    bottom: -45px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-logo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--app-teal) 0%, #1f5960 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.placeholder-logo i {
    font-size: 48px;
}

.store {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.info-left {
    display: flex;
    flex: 1 1 200px;
    align-items: center;
    gap: 15px;
}

.details h2 {
    margin: 0;
    font-size: 22px;
}

.details p {
    margin: 6px 0 10px;
    font-size: 14px;
    color: #666;
    max-width: 520px;
}

.tags {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    background: #fff;
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* hide any empty children inside .tags */
.tags > *:empty {
    display: none;
}

/* Anas .tag Styling */
.tag {
    background: #e8f8f3;
    color: #00695c;
    border: 1px solid #b0e2cd;
    font-weight: 600;
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 220px;
    min-width: 160px;
    justify-content: flex-end;
}

/* Anas .btn & .btn-share styling */
.btn-share {
    background: #b23e3e;
    color: #fff;
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}

.btn-share:hover {
    background: #972f2f;
    text-decoration: none;
    transform: translateY(-1px);
}

.icon-location {
    font-size: 12px;
}

.custom-tabs-wrapper {
    width: 100%;
}

.edit-custom-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ddd;
    gap: 5px;
    padding-top: 8px;
    margin-bottom: 15px;
}

.edit-custom-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.25s;
    user-select: none;
    font-weight: 700;
    border-radius: 10px 10px 0 0;
}

.edit-custom-tab:hover {
    background: #f9f9f9;
}

.edit-custom-tab.active {
    border-bottom-color: var(--app-teal);
    color: var(--app-teal);
    background: #fff;
}

.custom-tab-pane {
    display: none;
}

.custom-tab-pane.active {
    display: block;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    padding-bottom: 20px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.product-card-img {
    position: relative;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/3;
}

.placeholder-product-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e5f5f4 0%, #b8dfe0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--app-teal);
    gap: 10px;
    padding: 20px;
}

.placeholder-product-image i {
    font-size: 48px;
    opacity: 0.7;
}

.placeholder-product-image span {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    background: #fff;
    color: #b93829;
    padding: 8px;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.favorite-btn:hover {
    background: #b93829;
    color: #fff;
}

.card-body {
    padding: 15px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body .card-title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: #222;
}

.btn-order {
    display: flex;
    background-color: var(--app-teal);
    background-image: url("https://res.cloudinary.com/duk88s2kw/image/upload/v1768474277/iekbturk6ntg2nvwejoh.png");
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 10px;
    padding: 6px 14px;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

.btn-order:hover {
    background: var(--app-teal-700);
    color: #fff;
}

/* Discount badge */
.custom-discount-price {
    position: absolute;
    top: 10px;
    background: linear-gradient(135deg, #b23e3e, #e74c3c);
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 15px 0 0 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    right: 0;
}

/* Social links */
.social-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #555;
    color: #fff;
    font-size: 20px;
    transition: 0.3s;
    text-decoration: none;
}

.social.instagram {
    color: #e1306c;
    background: #fff;
}

.social.facebook {
    color: #1877f2;
    background: #fff;
}

.social.whatsapp {
    color: #25d366;
    background: #fff;
}

.social.phone {
    color: #bd081c;
    background: #fff;
}

.social.snapchat {
    color: #fffc00;
    background: #333;
}

.social.twitter {
    color: #1da1f2;
    background: #fff;
}

.social:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
    .banner {
        height: 150px;
    }

    .logo {
        width: 90px;
        height: 90px;
        bottom: -45px;
        left: 50% !important;
        transform: translateX(-50%);
        right: auto !important;
    }

    .details h2 {
        font-size: 18px;
        text-align: center;
    }

    .details p {
        text-align: center;
    }

    .product-card-img img {
        aspect-ratio: 4/3;
    }

    .placeholder-banner i {
        font-size: 48px;
    }

    .placeholder-banner span {
        font-size: 18px;
    }

    .placeholder-logo i {
        font-size: 36px;
    }

    .placeholder-slider-image i {
        font-size: 40px;
    }

    .placeholder-slider-image span {
        font-size: 16px;
    }

    .placeholder-product-image i {
        font-size: 36px;
    }

    .placeholder-product-image span {
        font-size: 12px;
    }
}

@media (max-width: 500px) {
    .store {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
        flex: 1 1 100%;
    }

    .social {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

.price-before {
    text-decoration: line-through !important;
    font-weight: 800 !important;
}

.price-after {
    text-decoration: none !important;
    font-weight: 800 !important;
}

/* <= 576px */
@media (max-width: 576px) {
    .cards-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(110px, 1fr));
        gap: 15px;
    }
}

/* >= 768px */
@media (min-width: 577px) and (max-width: 768px) {
    .cards-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 15px;
    }
}

/* >= 992px */
@media (min-width: 992px) {
    .cards-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        gap: 15px;
    }
}

/* >= 1200px */
@media (min-width: 1200px) {
    .cards-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(220px, 1fr));
        gap: 15px;
    }
}

/* >= 1400px */
@media (min-width: 1400px) {
    .cards-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(220px, 1fr));
        gap: 15px;
    }
}

html[lang="en"] .custom-tab-pane h1 {
    text-align: left !important;
}

/* ===== Footer Styles ===== */

[id^="category-title-"] {
    scroll-margin-top: 120px;
}

.footer {
    background: black;
    padding: 10px 80px;
}

.payment-logos {
    gap: 10px;
}

.footer .foo {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 95%;
    margin: 0 auto;
}

.footer .foo .title {
    font-size: 14px;
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.footer .foo .social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.footer a {
    color: white;
    margin-bottom: 5px;
}

.social-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: black !important;
    transition: 0.3s;
    text-decoration: none;
}

@media screen and (max-width: 767px) {
    .footer {
        margin-bottom: 60px;
        padding: 10px 10px;
        font-size: 9px;
    }

    .footer .foo img {
        width: 30px !important;
    }

    .taxes-numbers {
        color: white;
        font-size: 9px;
    }

    .footer .foo {
        width: 100%;
    }
}
