/* starat basic styles */
:root {
    --main-color: #F86D04;
    --secondary-color: #ff7e1a;
    --red-color: #a94442;
    --dark-blue: #0021b4;
    --lite-blue: #425fe0;
    --dark-color: #030406;
    --gray-color: #343a40;
    --light-bg: #f9f9f9;
    --white: #fff;
    --pale-pink: #f2dede;
    --oyster-pink: #ebccd1;
    --success-color: #8CB560;
    --primary-color: #2440c0;
    --info-color: #179cda;
    --danger-color: #c03737;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
#page-container {
    min-height: 80vh
}

.text-main {
    color: var(--main-color) !important;
}
.text-red {
    color: var(--red-color) !important;
}

.simi-rounded {
    border-radius: 5% !important
}

.active {
    color: var(--main-color) !important;
    border-bottom: 1px solid var(--secondary-color) !important;
}
.hidden {
    visibility: hidden
}

.not-allowed {
    opacity: .65;
    cursor: not-allowed !important
}

.link-style {
    color: var(--dark-blue);
    text-decoration: none !important
}

.link-style:hover {
    color: var(--lite-blue);
    text-decoration: none !important
}

.errorlist {
    margin: 0;
    padding: 0;
    list-style: none
}

.errorlist li {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    background-color: var(--pale-pink);
    border-color: var(--oyster-pink);
    color: var(--red-color);
    animation: fadeIn 0.4s ease-in;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: var(--light-bg)
}

#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid var(--main-color);
    border-top-color: var(--oyster-pink);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    -webkit-animation: animate-preloader 1s linear infinite;
    animation: animate-preloader 1s linear infinite
}


@-webkit-keyframes animate-preloader {
    0% {
        transform: rotate(0deg)
    }
    100% {
        transform: rotate(360deg)
    }
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg)
    }
    100% {
        transform: rotate(360deg)
    }
}


.scrollToTopBtn {
    width: 50px;
    height: 50px;
    text-indent: -9999px;
    position: fixed;
    z-index: 9999999;
    right: 20px;
    bottom: 20px;
    background: var(--main-color) url(/static/img/arrow-90deg-up.svg) no-repeat center 43%;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 12px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    opacity: 0;
    transform: translateY(100px);
    transition: all .5s ease
}

/* arabic scroll button */
.leftscrollToTopBtn {
    width: 50px;
    height: 50px;
    text-indent: -9999px;
    position: fixed;
    z-index: 9999999;
    left: 50px;
    right: auto;
    bottom: 20px;
    background: var(--main-color) url(/static/img/arrow-90deg-up.svg) no-repeat center 43%;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(100px);
    transition: all .5s ease
}

.scrollToTopBtn:hover, .leftscrollToTopBtn:hover {
    background-color: var(--secondary-color)
}

.showBtn {
    opacity: 1;
    transform: translateY(0)
}

/* Custom Buttons Style */
.btn-big {
    padding: 0.85rem 2.5rem;
}
.main-btn {
    color: var(--white) !important;
    background-color: var(--main-color)!important;
    border: 3px solid var(--main-color)!important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(248, 109, 4, 0.25);
}

.main-btn:hover {
    background-color: var(--light-bg) !important;
    color: var(--main-color)!important;
    border: 3px solid var(--main-color) !important;
    -webkit-transition: color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(248, 109, 4, 0.35);
}


.btn-outline-main {
    color: var(--main-color);
    border-color: var(--main-color);
}

.btn-outline-main:hover {
    background-color: var(--main-color);
    color: var(--light-bg);
}


.success-btn {
    color: var(--white) !important;
    background-color: var(--success-color) !important;
    border: 3px solid var(--success-color) !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px #56f87140;
}
  
.success-btn:hover {
    background-color: var(--light-bg)!important;
    color: var(--success-color) !important;
    border: 3px solid var(--success-color) !important;
    -webkit-transition: color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px #56f87140;
}

.primary-btn {
    color: var(--white) !important;
    background-color: var(--primary-color)!important;
    border: 3px solid var(--primary-color) !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px #2440c040;
}
  
.primary-btn:hover {
    background-color: var(--light-bg) !important;
    color: var(--primary-color) !important;
    border: 3px solid var(--primary-color) !important;
    -webkit-transition: color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px #2440c040;
}

.info-btn {
    color: var(--white) !important;
    background-color: var(--info-color) !important;
    border: 3px solid var(--info-color) !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px #3999f340;
}
  
.info-btn:hover {
    background-color: var(--light-bg) !important;
    color: var(--info-color) !important;
    border: 3px solid var(--info-color) !important;
    -webkit-transition: color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px #3999f340;
}

.danger-btn {
    color: var(--white) !important;
    background-color: var(--danger-color) !important;
    border: 3px solid var(--danger-color)!important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px #f8525240;
}
  
.danger-btn:hover {
    background-color: var(--light-bg) !important;
    color: var(--danger-color)!important;
    border: 3px solid var(--danger-color)!important;
    -webkit-transition: color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px #f8525240;;
}

.dark-btn {
    color: var(--white) !important;
    background-color: var(--gray-color) !important;
    border: 3px solid var(--gray-color) !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px #2e210440;
}

.dark-btn:hover {
    background-color: var(--light-bg) !important;
    color: var(--gray-color) !important;
    border: 3px solid var(--gray-color) !important;
    -webkit-transition: color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px #2e210440;
}
/* Pagination styles */
.pagi {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin: auto;
    padding-top: 10px;
}
.pagi nav ul li a {
    border: none;
    font-size: 2rem;
    color: var(--gray-color);
}

.pagi nav ul li .prev,
.pagi nav ul li .next,
.pagi nav ul li .pagination-active {
    color: var(--main-color);
}
@media screen and (max-width: 576px) {
    .pagi {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        margin: auto;
    }

    .pagi nav ul li a {
        border: none;
        font-size: 1.5rem;
        color: var(--gray-color);
    }

    .pagi nav ul li .prev,
    .pagi nav ul li .next,
    .pagi nav ul li .pagination-active {
        color: var(--main-color);
    }
}
/* End Basic Styles */

/* Start Navbar Styles */
.navbar {
    transition: all 0.3s ease-in-out;
    z-index: 1030;
}

/* Bigger, clean logo */
.logo-img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease-in-out;
}

@media (max-width: 992px) {
    .logo-img {
        height: 65px;
    }
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Nav links */
.navbar .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--main-color) !important;
}

/* Cart count bubble */
.cart-count {
    font-size: 0.7rem;
    padding: 0.35em 0.45em;
}

/* Dropdowns */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    padding: 0.5rem;
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    animation: fadeInDown 0.25s ease-in-out;
}
/* Dropdown items */
.dropdown-item {
    color: var(--gray-color);
    font-weight: 500;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hover and active states */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--light-bg);
    color: var(--main-color);
    transform: translateX(4px);
}

/* Icons inside dropdowns */
.dropdown-item i {
    color: var(--dark-color);
    transition: transform 0.2s ease;
}

.dropdown-item:hover i {
    transform: scale(1.15);
    color: var(--main-color);
}

/* Divider style */
.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dropdown arrow */
.dropdown-toggle::after {
    margin-left: 0.4em;
    vertical-align: middle;
    font-size: 0.7em;
}

/* Small responsive tweak */
@media (max-width: 768px) {
    .dropdown-menu {
        box-shadow: none;
        border-radius: 0;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shrink navbar slightly on scroll */
.navbar.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* Optional hover glow for icons */
.navbar .nav-link i:hover {
    color: var(--main-color);
    text-shadow: 0 0 8px rgba(248, 109, 4, 0.4);
}
.lang {
    font-size: 0.95rem;
    border-radius: 30px;
    padding: 6px 14px;
    transition: all 0.3s ease;
}

.lang:hover {
    transform: translateY(-2px);
}

.lang i {
    font-size: 1rem;
}

.lang-text {
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .lang {
        display: inline-block;
        margin-top: 8px;
    }
}

/* End Navbar Styles */

/* Start Login-Register */
/* --- Register Page Styles --- */
.register-container {
    max-width: 980px;
    margin: 6rem auto;
    padding: 1.5rem;
}

.register-card {
    border: none;
    border-radius: 18px;
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.register-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.register-card .card-body {
    padding: 2rem;
}

.register-card h2 {
    font-size: 1.8rem;
    color: var(--main-color);
    text-align: center;
    margin-bottom: 1.2rem;
}

.register-card form label {
    font-weight: 600;
    color: var(--gray-color);
}

.register-card .form-control {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.register-card .form-control:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.25rem rgba(248, 109, 4, 0.25);
}

.register-card .register-btn {
    width: 100%;
    background-color: var(--main-color);
    border: none;
    color: var(--white);
    border-radius: 10px;
    padding: 0.7rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.register-card .register-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.03);
}

.register-card .link-style {
    color: var(--info-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-card .link-style:hover {
    color: var(--primary-color);
}

.register-card hr {
    margin: 1.5rem 0;
    border-top: 1px solid #eee;
    opacity: 0.6;
}

/* --- Animation for card entry --- */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-card {
    animation: fadeSlideUp 0.6s ease forwards;
}

/* End Login-Register */


/* Start Shop Styles */
/* --- Sidebar Cards --- */
.sidebar-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    background-color: var(--dark-color);
    color: var(--white);
    font-weight: 600;
}

.filter-link {
    display: block;
    color: var(--dark-color);
    padding: 6px 0;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.filter-link:hover {
    color: var(--main-color);
    transform: translateX(4px);
}

.filter-link.active {
    font-weight: 600;
    color: var(--main-color);
}


/* --- Product Cards --- */
.product-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card img {
    border-bottom: 3px solid var(--main-color);
    transition: transform 0.4s ease;
}

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

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* --- Product Price Section --- */
/* --- Discount Tag --- */
.discount-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger-color);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 5;
    animation: tagPop 0.6s ease;
}

/* Animation for tag appearance */
@keyframes tagPop {
    0% { transform: scale(0.6); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* Optional: make it top-right instead */
.right {
    left: auto;
    right: 10px;
}

.price-section {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.current-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--main-color);
}

.old-price {
  font-size: 0.9rem;
  color: var(--red-color);
  text-decoration: line-through;
  opacity: 0.7;
}

/* --- Sidebar toggle --- */
.toggle-sidebar {
    border-color: var(--main-color);
    color: var(--main-color);
}

.toggle-sidebar:hover {
    background-color: var(--main-color);
    color: var(--white);
}

/* --- Subtle animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.4s ease forwards;
}

/* Product Detail Page */
.product-detail-page .card {
    border-radius: 12px;
}

.product-image {
    transition: transform 0.5s ease-in-out;
}

.carousel-item:hover .product-image {
    transform: scale(1.03);
}

.product-description {
    line-height: 1.7;
    color: var(--gray-color);
}

/* Related Product Cards */
.product-card {
    transition: all 0.3s ease-in-out;
    border-radius: 12px;
    background-color: var(--white);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-thumb {
    height: 300px;
    object-fit: contain;
    border-radius: 12px 12px 0 0;
}

/* End Shop Styles */

/* Start Home Styles*/
/* Carousel */
.carousel-img {
    height: 75vh;
    object-fit: cover;
    filter: brightness(0.6);
}

.carousel-caption h2 {
    animation: fadeInUp 1s ease-in-out;
}

/* Buttons */
.btn-main {
    background-color: var(--main-color);
    color: var(--white);
    border: none;
    transition: all 0.3s ease-in-out;
}

.btn-main:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Product cards */
.product-card {
    border: none;
    transition: all 0.3s ease-in-out;
    border-radius: 12px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Offer section */
.bg-main {
    background: linear-gradient(135deg, #ffe5d0, #fff5eb);
    color: var(--dark-color);
}

.offer-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.offer-card .card-title {
    color: var(--main-color);
}

.offer-card .btn-dark {
    background-color: var(--dark-color);
    border: none;
    transition: all 0.3s ease-in-out;
}

.offer-card .btn-dark:hover {
    background-color: var(--main-color);
    color: var(--white);
}

/* Section headers */
.section-header h2 {
    font-size: 2rem;
}

.section-header p {
    color: #6c757d;
}

/* Search section */
.search-section {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.search-form {
    border: 2px solid var(--main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.search-form input {
    border-radius: 6px;
    border: 1px solid #ddd;
}

.search-form input:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 5px rgba(248, 109, 4, 0.3);
}


/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* End Home Styles *

/* Start Profile styles */
.profile-section {
    background-color: var(--light-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.profile-header h2 {
    color: var(--dark-color);
    font-weight: 600;
}
.section-title {
    color: var(--main-color);
    font-weight: 700;
    border-left: 5px solid var(--main-color);
    padding-left: 10px;
    margin-bottom: 15px;
    margin-top: 25px;
}
.section-title-ar {
    color: var(--main-color);
    font-weight: 700;
    border-right: 5px solid var(--main-color);
    padding-right: 10px;
    margin-bottom: 15px;
    margin-top: 25px;
}
.address-card {
    background: var(--white);
    border: 1px solid var(--light-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    transition: 0.2s ease;
}
.address-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.address-actions {
    margin-top: 10px;
}
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background: var(--white);
    border: 1px solid var(--light-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
    transition: 0.3s ease;
}
.order-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.order-id {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.order-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin: 0;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Status colors */
.status-pending {
    background: #fff3cd;
    color: #856404;
}
.status-processing {
    background: #cce5ff;
    color: #004085;
}
.status-dispatched {
    background: #d1ecf1;
    color: #0c5460;
}
.status-delivered {
    background: #d4edda;
    color: #155724;
}
.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-items {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #eee;
    background-color: var(--light-bg);
}

.item-name {
    font-weight: 500;
    color: var(--dark-color);
    margin: 0;
}

.item-right {
    text-align: right;
}

.item-qty, .item-price {
    color: var(--gray-color);
    margin: 0;
}

.order-summary p {
    margin: 4px 0;
    font-size: 0.95rem;
}

.order-total {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}
/* End Profile Styles */

/* Start Checkout Styles */
.checkout-container {
    max-width: 1500px; 
    margin: 3rem auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    overflow: hidden;
    animation: fadeInUp 0.8s ease forwards;
}

.checkout-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.6s ease forwards;
}

.checkout-header h2 {
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ====== Layout ====== */
.checkout-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap; /* allows stacking on small screens */
}

/* Left section: address */
.address-section {
    flex: 1.3;
    min-width: 350px;
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    animation: slideInLeft 0.7s ease forwards;
}

/* Right section: summary */
.cart-summary {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    animation: slideInRight 0.7s ease forwards;
}

/* ====== Section Headers ====== */
.form-section h4 {
    margin-bottom: 1.25rem;
    color: var(--dark-color);
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 0.5rem;
    font-weight: 600;
}

/* ====== Form Fields ====== */
input,
select,
textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    width: 100%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(248, 109, 4, 0.2);
}

label {
    display: block;
    font-weight: 500;
    color: var(--gray-color);
    margin-bottom: 0.3rem;
}

/* ====== Table Styling ====== */
.cart-summary table {
    width: 100%;
    border-collapse: collapse;
}

.cart-summary th,
.cart-summary td {
    padding: 0.75rem 0.5rem;
    text-align: left;
}

.cart-summary-ar th,
.cart-summary-ar td {
    text-align: right !important;
}
.cart-summary th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--gray-color);
}

.cart-summary tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.cart-summary tfoot td {
    font-weight: 600;
    border-top: 2px solid var(--gray-color);
    padding-top: 0.75rem;
}

/* ====== Responsive ====== */
@media (max-width: 992px) {
    .checkout-container {
        padding: 1.5rem;
    }

    .checkout-content {
        flex-direction: column;
    }

    .address-section,
    .cart-summary {
        width: 100%;
        min-width: unset;
        animation: fadeIn 0.6s ease forwards;
    }
}

/* ====== Animations ====== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* End Checkout Styles */

/* Start 404 page */
  .error-section {
    min-height: 60vh;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px;
  }

  .error-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--main-color) 0%, transparent 70%);
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
  }

  .error-glow:nth-child(1) {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
  }

  .error-glow:nth-child(2) {
    bottom: 10%;
    right: 15%;
    animation-delay: 3s;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
  }

  .error-container {
    text-align: center;
    z-index: 10;
    background: var(--white);
    border-radius: 20px;
    padding: 70px 40px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    max-width: 650px;
    width: 100%;
  }

  .error-number {
    font-size: 160px;
    font-weight: 900;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: -5px;
    animation: shake 2s ease-in-out infinite;
  }

  @keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
  }

  .error-text {
    font-size: 22px;
    color: var(--gray-color);
    margin-bottom: 25px;
  }

  .error-actions a {
    display: inline-block;
    margin: 5px;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 500;
    transition: 0.2s;
  }

  @media (max-width: 576px) {
    .error-number {
      font-size: 100px;
    }
  }

.offer-section {
  text-align: center;
}

.offer-section h3 {
  font-size: 26px;
  color: var(--main-color);
  padding-top: 10px;
  margin-bottom: 30px;
  font-weight: 700;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-items: center;
}

.offer-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.offer-card:hover .offer-image img {
  transform: scale(1.05);
}

.offer-image {
  width: 100%;
  height: 300px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.offer-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.offer-card h4 {
  font-size: 16px;
  color: var(--dark-color);
  margin-bottom: 5px;
}

.price {
  font-size: 15px;
  color: var(--main-color);
  font-weight: 800;
  margin-bottom: 15px;
}

.price .old {
  text-decoration: line-through;
  color: var(--red-color);
  margin-left: 6px;
  font-size: 13px;
}

.offer-info {
  padding: 15px 18px 25px;
}

.offer-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 8px;
}

.btn-view {
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}
/* End 404 page */

/* Start Contact */
.contact-container {
    text-align: center;
    padding-bottom: 3rem;
}

.contact-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.contact-card .icon {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.contact-card span {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.contact-card a {
    color: var(--gray-color);
    text-decoration: none;
    font-size: 0.95rem;
    word-break: break-all;
}

.contact-card a:hover {
    color: var(--main-color);
}

/* Below cards section */
.contact-info {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--light-bg);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--main-color);
}

.info-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.info-item p {
    color: var(--gray-color);
    margin: 0.25rem 0 0;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--main-color);
    flex-shrink: 0;
}

/* End Contact */

/* Start Footer Styles */
.footer {
  background-color: var(--dark-color);
  color: var(--white);
  position: relative;
}

.footer-logo-img {
  height: 100px;
  width: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Highlight background behind logo */
.bg-highlight {
  background: var(--light-bg);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(248, 109, 4, 0.3);
}

.footer-logo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(248, 109, 4, 0.4);
}

/* Tagline */
.footer-tagline {
  color: var(--white);
  opacity: 0.8;
}

/* Quick links */
.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--main-color);
}

/* Social icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  border: 1px solid var(--main-color);
  border-radius: 5%;
  padding: 15px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--main-color);
  color: var(--white);
  transform: translateY(-4px);
}

/* Divider and links */
.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

.link-style {
  color: var(--main-color);
  text-decoration: none;
}

.link-style:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* RESPONSIVE FIXES */
@media (min-width: 768px) {
  .social-icons {
    justify-content: flex-end;
  }

  .footer-tagline {
    text-align: left;
  }
  .footer-tagline-ar {
    text-align: right;
  }
  .footer-link {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .footer {
    text-align: center;
  }

  .footer-logo-img {
    height: 60px;
  }

  .social-icons {
    justify-content: center;
    margin-top: 10px;
  }
}
/* End Footer Styles*/