@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Praise&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Oregano:ital@0;1&display=swap');

:root {
    --bg: #f3f3f3;
    --text: #2b2222;
    --muted: #6a6060;
    --accent: #402421;
    --black: #000000;
    --card: #ffffff;
    --radius: 14px;
    --bg: #ffffff;
    --muted: #7a6a6a;
    --primary: #3aa0ff;
    --card: #fff;
    --white: #fff;
    --main-font: "Plus Jakarta Sans", sans-serif;
    --secondary-font: "Oregano", cursive;
}

.active {
    color: var(--accent);
    font-weight: 700;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-family: var(--main-font);
}

a {
    text-decoration: none;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.hero-inner {
    display: flex;
    justify-content: center;
}

.hero-frame {
    width: 100%;
    height: 489px;
    background-image: url("https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&w=1400&q=60");
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    border: none;

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

.hero-title {
    font-family: var(--secondary-font) !important;
    color: #fff;
    font-size: 128px !important;
    font-weight: 400;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    margin: 0;
    letter-spacing: 2px;
}

.main-content {
    padding: 28px 0;
}

.feature-grid {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: start;
}

.feature-image {
    border-radius: 20px;
    width: 36%;
    overflow: hidden;
    height: 523px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: block;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.feature-copy {
    width: 50%;
}

.feature-copy h2 {
    margin: 0 0 12px;
    font-family: var(--main-font);
    color: var(--accent);
    font-weight: 700;
    font-size: 48px;
}

@media screen and (max-width: 560px) {
    .feature-grid {
        flex-direction: column;
    }

    .feature-image {
        width: 100%;
    }

    .feature-copy {
        width: 100%;
    }
}

.lead {
    color: var(--black);
    line-height: 1.6;
    font-size: 36px;
}

.section-title {
    font-family: var(--main-font);
    text-align: center;
    margin: 28px 0 18px;
    color: var(--accent);
}

.most-popular .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
}

@media screen and (max-width: 560px) {
    .most-popular .cards {
        grid-template-columns: repeat(1, 1fr);
    }

}

@media screen and (max-width: 700px) {
    .most-popular .cards {
        grid-template-columns: repeat(1, 1fr);
    }

}


.card {
    background: var(--card);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.card-img {
    width: 100%;
    height: 215px;
    overflow: hidden;
    border-radius: 10px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.card h4 {
    font-size: 14px;
    margin: 12px 0;
    color: #2b2b2b;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.price {
    color: var(--muted);
    font-weight: 600;
}

.btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.btn.small {
    padding: 8px 10px;
    font-size: 13px;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.quote {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    font-style: italic;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
    position: relative;
}

.quote::before {
    content: '"';
    position: absolute;
    top: 6px;
    left: 10px;
    font-size: 32px;
    color: var(--accent);
    opacity: 0.3;
    font-style: normal;
}

.quote::after {
    content: '"';
    position: absolute;
    bottom: 6px;
    right: 10px;
    font-size: 32px;
    color: var(--accent);
    opacity: 0.3;
    font-style: normal;
}

.site-footer {
    background: var(--accent);
    color: #fff;
    padding: 18px 0;
    margin-top: 28px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 85% !important;
    margin-inline: auto;
}

.topbar {
    background: var(--accent);
    box-shadow: 0 4px 10px 0px rgba(0, 0, 0, 0.25);

    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-wrap {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    text-decoration: none;
    font-weight: 700;
    color: var(--white);
}

.nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav a {
    text-decoration: none;
    color: var(--white);
    font-size: 20px;
}

.actions {
    display: flex;
    gap: 8px;
}

.actions button {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

.topbar-cart-mobile {
    display: none;
}

.burger-wrap {
    display: none;
}

.cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--white);
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-sizing: border-box;
    z-index: 2;
}

.cart span:not(.cart-badge) {
    position: absolute;
    background-color: var(--accent);
    color: var(--card);
    border-radius: 50%;
    width: 15px;
    height: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8px;
    bottom: -1px;
    right: 4px;
}

.hero {
    margin-top: 14px;
    height: 470px;

    border-radius: 10px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
}

.hero h1 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 6vw, 64px);
    font-family: Georgia, serif;
}

.feature {
    margin-top: 16px;
    display: flex;
    gap: 18px;
    align-items: center;
}

.feature img {
    border-radius: var(--radius);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature h2,
.products h2,
.reviews h2 {
    text-align: center;
    margin: 0 0 12px;
    color: #3a2a2a;
}

.feature h2 {
    text-align: left;
}

.products {
    margin-top: 18px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid #e4dddd;
    border-radius: 12px;
    padding: 10px;
}

.card img {
    border-radius: 10px;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.card h3 {
    font-size: 14px;
    margin: 10px 0 6px;
}

.card p {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 8px;
    width: 100%;
    overflow: hidden;

}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.card-row button {
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
}

.reviews {
    margin: 22px 0 26px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.review-grid blockquote {
    margin: 0;
    background: #fff;
    border: 1px solid #e7dfdf;
    border-radius: 12px;
    padding: 14px;
    color: #3e3434;
    font-size: 14px;
    line-height: 1.6;
}

.footer {
    background: #2f1a1a;
    color: #fff;
}

.footer-wrap {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

.socials {
    display: flex;
    gap: 10px;
}

@media (max-width: 1024px) {
    .nav-wrap {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 0 !important;
        min-height: 60px !important;
        position: relative !important;
        direction: ltr !important;
        /* CART (left) -> LOGO (center) -> BURGER MENU (right) */
    }

    .topbar-cart-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex: 1 1 0% !important;
    }

    .topbar-cart-mobile .cart {
        display: inline-flex !important;
        align-items: center !important;
        position: relative !important;
    }

    .topbar-cart-mobile .cart-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }

    .topbar-cart-mobile .cart img {
        width: 25px !important;
        height: 25px !important;
    }

    .topbar-cart-mobile .cart-badge {
        right: -8px !important;
        left: auto !important;
        top: -8px !important;
    }

    .logo {
        flex: 0 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    .burger-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 1 1 0% !important;
    }

    .burger {
        display: inline-flex !important;
        margin: 0 !important;
    }

    /* hide desktop nav, show burger */
    .nav {
        display: none;
    }

    /* hide desktop actions on mobile (actions will appear inside mobile nav) */
    .actions {
        display: none !important;
    }

    .feature {
        grid-template-columns: 1fr;
    }

    .feature p {
        font-size: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .footer-wrap {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .container {
        width: 94%;
    }

    .nav {
        justify-content: center;
    }

    .nav a {
        font-size: 13px;
    }

    .actions {
        width: 100%;
        justify-content: center;
    }

    .hero {
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 3.5rem !important;
    }

    .feature {
        gap: 12px;
    }

    .feature h2,
    .products h2,
    .reviews h2 {
        font-size: 34px;
    }

    .feature p {
        font-size: 14px;
        line-height: 1.6;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .card-row {
        flex-direction: column;
        align-items: stretch;
    }

    .card-row button {
        width: 100%;
    }

    .socials {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Burger button */
.burger {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}

.burger-box {
    display: inline-block;
    width: 26px;
    height: 18px;
    position: relative;
}

.burger-inner,
.burger-inner::before,
.burger-inner::after {
    display: block;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    height: 2px;
    width: 100%;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.burger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.burger-inner::before {
    content: "";
    top: -7px;
}

.burger-inner::after {
    content: "";
    bottom: -7px;
}

.burger.open .burger-inner {
    background: transparent;
}

.burger.open .burger-inner::before {
    transform: translateY(7px) rotate(45deg);
}

.burger.open .burger-inner::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.nav.mobile-open {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg);
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    z-index: 50;
    border-bottom: 1px solid #eee;
    background-color: var(--accent);
    align-items: center;
}

.nav.mobile-open a {
    padding: 10px 12px;
    border-radius: 8px;
}

/* show actions inside mobile nav when opened */
.nav .nav-actions {
    display: none;
}

.nav.mobile-open .nav-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.nav.mobile-open .nav-actions button {
    border: 1px solid #d0c7c7;
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
}

.auth-buttons-mobile {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.auth-buttons-mobile .login {
    font-size: 14px;
    text-decoration: none;
}

.auth-buttons-mobile .register {
    font-size: 14px;
    background: #ffff;
    color: var(--accent);
    padding: 8px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .topbar {
        position: relative;
    }
}

@media (max-width: 560px) {
    .burger {
        display: inline-block;
    }
}

/* Product grid styles for pages/products.html */
.products-hero .hero {
    border-radius: 12px;
    overflow: hidden;
}

.products-hero .hero img {
    width: 100%;
    height: 470px;
    object-fit: cover;
    filter: brightness(0.65);
}

.products-hero .hero h1 {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: var(--main-font);
    font-size: 36px;
}

.products-actions .filter-pill {
    background: #fff;
    border: 1px solid #e5e0e0;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.product-card {
    background: #fff;
    width: fit-content;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #efe8e8;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card .img-wrap {
    background: #f6f6f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .img-wrap.dark {
    background: #000;
}

.product-card .img-wrap img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.prod-title {
    font-size: 13px;
    margin: 0;
    color: #1f1f1f;
}

.prod-desc {
    font-size: 12px;
    color: var(--muted);
    margin: 4px 0;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.price {
    font-weight: 700;
    color: var(--accent);
}

.add-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .products-hero .hero img {
        height: fit-content;
    }

    .about-image {
        width: 494px;
        height: 171px !important;
    }
}

/* About page styles */
.about-section {
    padding: 22px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: center;
}

.about-section .row {
    gap: 5rem;
}

.about-image {
    width: 494px;
    height: 761px;
}

.about-copy {
    width: 55%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.about-copy h2 {
    font-family: var(--main-font);
    color: var(--accent);
    font-weight: 800;
    font-size: 48px;
    margin: 0 0 12px;
}

.about-copy p {
    color: var(--black);
    line-height: 1.8;
    font-size: 36px;
}

@media (max-width: 900px) {
    .about-section .row {
        align-items: center;
        justify-content: center;
    }

    .about-copy {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .about-image img {
        height: 220px;
    }

    .about-copy p {
        font-size: 15px;
    }
}

/* Contact page styles */
.contact-section {
    padding: 18px 0;
}

.contact-section .row {
    gap: 30px;
}

/* Details page styles */
.product-detail {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 28px;
    align-items: start;
}

.gallery {
    display: flex;
    gap: 14px;
}

.thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 72px;
}

.thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #eee;
}

.main-image {
    flex: 1;
}

.main-image img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 12px;
}

.product-info {
    padding: 6px 0;
}

.prod-name {
    font-family: var(--main-font);
    font-size: 22px;
    margin: 0 0 8px;
    color: var(--accent);
}

.prod-price {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.prod-desc-block .prod-desc {
    color: var(--muted);
    margin-top: 6px;
}

.prod-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: #fff;
    border: 0;
    padding: 8px 12px;
    cursor: pointer;
}

.qty-input {
    width: 56px;
    border: 0;
    text-align: center;
    padding: 8px;
}

.add-to-cart {
    background: var(--accent);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .main-image img {
        height: 420px;
    }
}

@media (max-width: 560px) {
    .main-image img {
        height: 320px;
    }

    .thumbs {
        flex-direction: row;
        width: auto;
    }

    .thumbs img {
        width: 56px;
        height: 56px;
    }
}

/* Cart page styles */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.cart-list {
    padding: 18px;
    border-radius: 12px;
}

.cart-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 6px;
    border-bottom: 1px solid #f0e9e9;
}

.cart-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.item-body {
    flex: 1;
}

.item-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.item-desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.item-price {
    font-weight: 700;
    color: var(--accent);
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #eee;
    padding: 4px;
    border-radius: 999px;
}

.qty-btn {
    background: #fff;
    border: 0;
    padding: 6px 10px;
    cursor: pointer;
}

.trash {
    background: transparent;
    border: 0;
    cursor: pointer;
}

.cart-total {
    padding: 14px 6px;
    font-weight: 700;
}

.checkout {
    background: var(--accent);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
}

.shipping {
    padding: 18px;
    border-radius: 12px;
}

.fees {
    width: 100%;
    border-collapse: collapse;
}

.fees td {
    padding: 10px 6px;
    border-bottom: 1px dashed #eee;
}

.fees .fee {
    text-align: right;
    font-weight: 600;
    color: var(--muted);
}

@media (max-width: 900px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .shipping {
        order: 2;
    }

    .burger {
        display: inline-block;
    }
}

@media (max-width: 1010px) {
    .burger {
        display: inline-block;
    }

    .about-copy {
        width: 100%;
    }
}

/* Checkout modal styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    overflow-y: auto;
}

.modal-overlay[aria-hidden="false"] {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    max-width: 480px;
    width: 90%;
    margin: auto;
    top: 32px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal h3 {
    font-family: var(--main-font);
    color: var(--accent);
    margin: 0 0 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.form-grid label span {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.form-grid label input {
    padding: 8px;
    border: 1px solid #d5cecd;
    border-radius: 6px;
    font-size: 13px;
}

.form-grid label.full {
    grid-column: 1/-1;
}

.payment-section {
    margin: 16px 0;
}

.pay-label {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

.pay-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pay.opt {
    background: #f9f6f5;
    border: 2px solid transparent;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    transition: all 0.2s;
}

.pay.opt.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.checkout-submit {
    background: var(--accent);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    border: 0;
    font-weight: 600;
    cursor: pointer;
}

.contact-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: center;
}

.brand-box {
    background: var(--accent);
    width: 472px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
}

.contact-details h2 {
    font-family: var(--main-font);
    color: var(--accent);
    font-weight: 600;
    font-size: 48px;
    margin: 0 0 12px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 36px;
    color: var(--black);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .brand-box {
        height: 200px;
    }
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: #f9fafb !important;
    border-radius: 20px !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
}

.discounted-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.product-detail .discounted-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.product-detail .discount-badge {
    position: relative;
}

/* ==========================================================================
   RTL (Right-To-Left) & Arabic Support Styles
   ========================================================================== */

html[dir="rtl"],
html[dir="rtl"] body,
body.rtl-mode {
    font-family: 'Cairo', "Segoe UI", Tahoma, sans-serif !important;
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] a,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] label {
    font-family: 'Cairo', "Segoe UI", Tahoma, sans-serif !important;
}

/* Header & Navigation RTL */
html[dir="rtl"] .topbar {
    direction: rtl;
}

html[dir="rtl"] .nav-wrap {
    flex-direction: row;
}

html[dir="rtl"] .nav a {
    margin-left: 0;
}

html[dir="rtl"] .actions {
    display: flex;
    align-items: center;
}

html[dir="rtl"] .cart-badge {
    right: auto !important;
    left: -8px !important;
}

html[dir="rtl"] .topbar-cart-mobile .cart-badge {
    right: -8px !important;
    left: auto !important;
}

html[dir="rtl"] .nav.mobile-open {
    direction: rtl !important;
    text-align: right !important;
}

html[dir="rtl"] #customerDropdown,
html[dir="rtl"] #customerDropdownMobile {
    text-align: right;
}

html[dir="rtl"] #customerDropdown button,
html[dir="rtl"] #customerDropdownMobile button {
    text-align: right;
}

html[dir="rtl"] #customerMenuButton,
html[dir="rtl"] #customerMenuButtonMobile {
    flex-direction: row;
    text-align: right;
}

/* Feature & Hero Sections RTL */
html[dir="rtl"] .feature h2 {
    text-align: right;
}

html[dir="rtl"] .feature-copy {
    text-align: right;
}

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

html[dir="rtl"] .section-title {
    text-align: center;
}

/* Product Cards & Badges RTL */
html[dir="rtl"] .card {
    text-align: right;
}

html[dir="rtl"] .card-foot {
    flex-direction: row;
}

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

/* Product Filters & Actions RTL */
html[dir="rtl"] .filters-container {
    justify-content: flex-start;
}

html[dir="rtl"] .filter-group {
    flex-direction: row;
}

html[dir="rtl"] .filter-select {
    padding-inline-start: 14px;
    padding-inline-end: 34px;
    text-align: right;
}

/* Product Detail RTL */
html[dir="rtl"] .product-detail {
    text-align: right;
}

html[dir="rtl"] .product-detail .prod-title,
html[dir="rtl"] .product-detail .prod-name,
html[dir="rtl"] .product-detail .prod-desc {
    text-align: right;
}

/* Forms & Inputs RTL */
html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="password"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] input::placeholder,
html[dir="rtl"] textarea::placeholder {
    text-align: right;
}

/* International Tel Input in RTL */
html[dir="rtl"] .iti {
    direction: ltr !important;
    text-align: left !important;
}

html[dir="rtl"] .iti input {
    direction: ltr !important;
    text-align: left !important;
}

/* Policies Page RTL */
html[dir="rtl"] .policy-section,
html[dir="rtl"] .policy-card,
html[dir="rtl"] .policy-item {
    text-align: right;
}

html[dir="rtl"] .policy-card-header {
    flex-direction: row;
}

/* Contact & About RTL */
html[dir="rtl"] .contact-details,
html[dir="rtl"] .contact-list,
html[dir="rtl"] .about-content {
    text-align: right;
}

/* Footer RTL */
html[dir="rtl"] footer,
html[dir="rtl"] .footer {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .footer .row,
html[dir="rtl"] .footer-grid {
    direction: rtl;
}