/********** Template CSS **********/
:root {
    --primary: #3CB815;
    --secondary: #F65005;
    --light: #F7F8FC;
    --dark: #111111;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.bg-icon {
    background: url(../img/bg-icon.png) center center repeat;
    background-size: contain;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-outline-primary:hover,
.btn.btn-outline-secondary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    padding: 25px 15px;
    color: #555555;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--dark);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/carousel-1.jpg) top right no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Section Header ***/
.section-header {
    position: relative;
    padding-top: 25px;
}

.section-header::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
}

.section-header::after {
    position: absolute;
    content: "";
    width: 90px;
    height: 2px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
}

.section-header.text-start::before,
.section-header.text-start::after {
    left: 0;
    transform: translateX(0);
}



/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background-image: -webkit-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -moz-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -ms-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -o-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-size: 20px 20px;
    transform: skew(20deg);
    z-index: 1;
}


/*** Product ***/
.nav-pills .nav-item .btn {
    color: var(--dark);
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
    color: #FFFFFF;
}

.product-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.product-item img {
    transition: .5s;
}

.product-item:hover img {
    transform: scale(1.1);
}

.product-item small a:hover {
    color: var(--primary) !important;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-item.center .testimonial-item i {
    color: var(--secondary) !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Footer ***/
.footer {
    color: #999999;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #999999;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}




/* ===== Diamond Product Detail – Modern Look ===== */



.product-hero-image {
  border-radius: 1.25rem;
  background: radial-gradient(circle at top, #ffffff 0, #f3f4ff 45%, #e9edf8 100%);
}

.product-main-img {
  max-height: 420px;
  object-fit: contain;
}

.product-main-info {
  border-radius: 1.25rem;
}

.product-main-info .card-body {
  position: relative;
}

.badge.bg-primary-soft {
  background: rgba(60, 184, 21, 0.12);
  border-radius: 999px;
}

.spec-chip {
  border-radius: 999px;
  background: #f4f6fb;
  padding: 0.45rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-chip .spec-label {
  font-weight: 500;
  font-size: 0.75rem;
  opacity: .8;
}

.spec-chip .spec-value {
  font-weight: 600;
  font-size: 0.8rem;
}

.product-spec-table th {
  width: 40%;
  font-weight: 600;
  background: #f9fafc;
}

.product-spec-table td {
  background: #ffffff;
}

.shape-flavor-card {
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  padding: 0.75rem 0.5rem;
  transition: transform .15s ease, box-shadow .15s ease;
}

.shape-flavor-card .thumb-wrapper {
  background: #f7f8fd;
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.shape-flavor-card img {
  max-height: 64px;
  object-fit: contain;
}

.shape-flavor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}



.product-main-img {
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 12px 25px rgba(0,0,0,0.15));
    transition: transform .4s ease;
}

.product-main-img:hover {
    transform: scale(1.04);
}


.product-main-info {
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}


.product-main-info h1,
.product-main-info .h2 {
    font-weight: 700;
    margin-bottom: 10px;
}

.price-primary {
    color: #32b328;
    font-size: 1.7rem;
    font-weight: 700;
}


.spec-chip {
    padding: 12px 18px;
    border-radius: 14px;
    background: #f8fafb;
    border: 1px solid #e8edf2;
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    transition: .25s ease;
}
.spec-chip:hover {
    background: #eef4ff;
    border-color: #cbd7ff;
}


.product-detail-page .container {
    max-width: 1350px;
}


.breadcrumb {
    background: none;
    padding: 0;
    font-size: .85rem;
}
.breadcrumb a {
    color: #888;
}
.breadcrumb-item.active {
    color: #32b328;
    font-weight: 600;
}



/* === Premium Modern Product Detail === */

.product-detail-page .container {
    max-width: 1350px;
}

.product-main-img {
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 12px 25px rgba(0,0,0,0.15));
    transition: transform .4s ease;
}
.product-main-img:hover {
    transform: scale(1.04);
}

.product-main-info {
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.price-primary {
    color: #32b328;
    font-size: 1.7rem;
    font-weight: 700;
}

.spec-chip {
    padding: 12px 18px;
    border-radius: 14px;
    background: #f8fafb;
    border: 1px solid #e8edf2;
    display: flex;
    justify-content: space-between;
    transition: .25s ease;
    font-size: .9rem;
}
.spec-chip:hover {
    background: #eef4ff;
    border-color: #cbd7ff;
}

.product-spec-table th {
    width: 35%;
    background: #f9fafc;
    font-weight: 600;
}
.product-spec-table td {
    background: #fff;
}

.shape-flavor-card {
    border-radius: 1rem;
    background: #ffffff;
    padding: .75rem .5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: .25s ease;
}
.shape-flavor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.thumb-wrapper {
    background: #f7f8fd;
    border-radius: .7rem;
    padding: .5rem;
}
.thumb-wrapper img {
    max-height: 70px;
    object-fit: contain;
}




.spec-chip-box {
    background:#f7f9fc;
    border:1px solid #e5e7eb;
    padding:12px;
    text-align:center;
    border-radius:12px;
    font-weight:600;
    font-size:14px;
}

.shape-box {
    background:white;
    border:1px solid #eee;
    border-radius:14px;
    padding:12px;
    transition:.2s;
}
.shape-box:hover {
    box-shadow:0 8px 18px rgba(0,0,0,0.1);
    transform:translateY(-4px);
}
.shape-icon {
    max-height:80px;
    object-fit:contain;
}



/* navbar default (شفاف) */
.navbar-main {
    background: transparent;
    transition: background 0.25s ease, box-shadow .25s ease, padding .25s ease;
}

/* navbar بعد النزول */
.navbar-scrolled {
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}


/* الوضع الطبيعي قبل الـ scroll */
.topbar-main {
    background: transparent;
    transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}

.navbar-main {
    background: transparent;
    transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}

/* بعد الـ scroll */
.navbar-scrolled,
.topbar-scrolled {
    background: #fff !important;
    box-shadow: 0 3px 18px rgba(0,0,0,0.06);
}

/* يخليهم يندمجوا مع بعض */
.topbar-main.topbar-scrolled {
    border-bottom: 1px solid #eee;
}




/* Navbar Black Theme */
.navbar {
    background: #000 !important;
}

.top-bar {
    background: #000 !important;
    color: #fff;
}

.top-bar small,
.top-bar a {
    color: #fff !important;
}



.navbar-light .navbar-nav .nav-link {
    color: #fff !important;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover {
    color: #F1C40F !important; /* Gold Hover */
}



/* Language Switch Styling */
.top-bar .lang-btn {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid #fff !important;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
}

.top-bar .lang-btn:hover {
    background: #fff !important;
    color: #000 !important;
}


/* تثبيت النصوص على الجانب الأيسر في السلايدر */
.carousel-caption {
    left: 5% !important;
    right: auto !important;
    text-align: left !important;
}



/* Navbar mobile fixes */
@media (max-width: 991px) {

    /* الشعار في النص */
    .navbar-brand h1 {
        text-align: center;
        width: 100%;
    }

    /* زر القائمة (الهامبرجر) */
    .navbar-toggler {
        border-color: #fff !important;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='3' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    /* أزرار اللغة */
    .top-bar .lang-btn {
        font-size: 12px;
        padding: 2px 6px;
    }

    /* إزالة السوشيال في الموبايل */
    .top-bar a i.fab {
        display: none;
    }

    .top-bar small {
        font-size: 12px;
    }
}
