
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

/* =========================
   BAYTAK STORE - PETROL BLUE
========================= */


:root {
    --green: #2863A6;
    --green-dark: #173B68;
    --green-light: #78A9DC;

    --cream: #F3F7FC;
    --beige: #DFEAF6;

    --gold: #C69B64;
    --brown: #365577;

    --text: #29415F;
    --muted: #8295AD;

    --white: #FFFFFF;
    --border: #D8E4F1;

    --shadow: 0 10px 30px rgba(23, 59, 104, .10);
}

/* =========================
   GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
}

button,
input {
    font-family: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

/* =========================
   HEADER
========================= */

.main-header {
    direction: ltr;
    display: grid;
    grid-template-columns: 140px 1fr 300px;
    align-items: center;
    gap: 30px;
    padding: 22px 6%;
    min-height: 175px;
    background: linear-gradient(120deg, #FFFFFF, #EAF5F2);
    border-bottom: 1px solid var(--border);
}

.store-logo {
    display: block;
    width: 190px;
    height: 190px;
    object-fit: contain;
    padding: 7px;
    background: var(--white);
    border: 4px solid var(--white);
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(23,70,76,.12);
    transition: .3s;
    cursor: pointer;
    flex-shrink: 0;
}

.store-logo:hover {
    transform: translateY(-4px);
}

.store-info {
    direction: rtl;
    text-align: center;
    min-width: 0;
}

.store-info h1 {
    color: var(--green-dark);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.5;
}

.store-info h1::after {
    content: "";
    display: block;
    width: 75px;
    height: 4px;
    margin: 7px auto;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--gold), var(--green-light));
}

.store-info p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 15px;
}

/* =========================
   SEARCH
========================= */

.top-search {
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
}

.top-search input {
    width: 100%;
    min-width: 0;
    height: 53px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 30px;
    outline: none;
    background: var(--white);
    color: var(--green-dark);
    font-size: 14px;
    box-shadow: 0 5px 18px rgba(23,70,76,.05);
    transition: .3s;
}

.top-search input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(120,183,181,.18);
}

.top-search button {
    flex-shrink: 0;
    width: 53px;
    height: 53px;
    border: none;
    border-radius: 18px;
    background: var(--green);
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    transition: .3s;
}

.top-search button:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
}

/* =========================
   CATEGORIES
========================= */

.categories {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    width: 92%;
    margin: 22px auto;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(23,70,76,.07);
}

.categories button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 21px;
    border: 1px solid transparent;
    border-radius: 30px;
    background: transparent;
    color: var(--brown);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.categories button span {
    font-size: 18px;
}

.categories button:hover,
.categories button.active {
    color: var(--white);
    background: var(--green);
    box-shadow: 0 5px 15px rgba(23,70,76,.20);
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 390px;
    margin: 30px 3%;
    padding: 45px 6%;
    overflow: hidden;
    border: 1px solid #D5E2F0;
    border-radius: 30px;
    background: linear-gradient(115deg, #DFEAF6, #EAF1F9, #F8FCFA 55%, #C8E2DE);
    box-shadow: var(--shadow);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 58%;
}

.hero-label {
    display: inline-block;
    padding: 9px 20px;
    color: var(--green);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
}

.hero-content h2 {
    margin: 20px 0 12px;
    color: var(--green-dark);
    font-size: clamp(34px, 4vw, 55px);
    font-weight: 800;
    line-height: 1.5;
}

.hero-content h2 span {
    color: #477DBB;
}

.hero-content p {
    max-width: 650px;
    color: #64809F;
    font-size: 16px;
    line-height: 2.2;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 25px;
    padding: 14px 28px;
    border-radius: 35px;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(23,70,76,.20);
    transition: .3s;
}

.hero-button:hover {
    background: var(--green-dark);
    transform: translateY(-4px);
}

.hero-button span {
    font-size: 20px;
}

/* =========================
   HERO DECORATION
========================= */

.hero-decoration {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.hero-decoration-one {
    width: 300px;
    height: 300px;
    left: -100px;
    bottom: -160px;
    background: rgba(198,155,100,.20);
}

.hero-decoration-two {
    width: 230px;
    height: 230px;
    right: 20%;
    top: -160px;
    background: rgba(40,107,112,.12);
}

.hero-heart {
    position: absolute;
    bottom: 15px;
    left: 30px;
    color: var(--gold);
    font-size: 50px;
}

/* =========================
   SHOPPING ILLUSTRATION
========================= */

.hero-illustration {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38%;
    height: 290px;
}

.shopping-bag {
    position: absolute;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 170px;
    border-radius: 12px 12px 20px 20px;
    box-shadow: 0 15px 25px rgba(23,70,76,.15);
}

.shopping-bag::before {
    content: "";
    position: absolute;
    top: -45px;
    width: 55px;
    height: 60px;
    border: 8px solid var(--green-dark);
    border-bottom: none;
    border-radius: 35px 35px 0 0;
}

.shopping-bag span {
    color: var(--white);
    font-size: 55px;
}

.bag-one {
    right: 25%;
    background: linear-gradient(140deg, var(--green-light), var(--green));
    transform: rotate(-7deg);
}

.bag-two {
    right: 2%;
    bottom: 12px;
    width: 110px;
    height: 135px;
    background: linear-gradient(140deg, #D7BD91, #B18B58);
    transform: rotate(7deg);
}

.bag-two::before {
    width: 43px;
    height: 48px;
    top: -37px;
    border-color: #987747;
}

.bag-two span {
    font-size: 40px;
}

.gift-box {
    position: absolute;
    z-index: 3;
    right: 35%;
    bottom: 8px;
    width: 90px;
    height: 72px;
    background: var(--cream);
    border: 4px solid var(--gold);
    box-shadow: 0 10px 20px rgba(23,70,76,.15);
}

.gift-ribbon {
    position: absolute;
    left: 34px;
    width: 15px;
    height: 100%;
    background: var(--green);
}

.gift-bow {
    position: absolute;
    top: -30px;
    left: 16px;
    color: var(--green-dark);
    font-size: 38px;
}

.floating-heart {
    position: absolute;
    top: 8px;
    right: 45%;
    color: var(--gold);
    font-size: 45px;
    animation: float 3s ease-in-out infinite;
}

.plant {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #477DBB;
    font-size: 55px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* =========================
   PRODUCTS SECTION
========================= */

.shop-section {
    margin: 40px 3%;
    padding: 35px 3% 55px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: linear-gradient(145deg, #EAF5F2, #FFFFFF);
}

.products-heading {
    margin-bottom: 30px;
    text-align: center;
}

.heading-label {
    display: inline-block;
    padding: 8px 23px;
    border-radius: 30px;
    background: var(--green);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
}

.products-heading h2 {
    margin-top: 12px;
    color: var(--green-dark);
    font-size: 36px;
    font-weight: 800;
}

.heading-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 5px;
    color: var(--gold);
    font-size: 21px;
}

.heading-line span {
    width: 75px;
    height: 2px;
    background: var(--gold);
}

/* =========================
   PRODUCTS GRID
========================= */

.products,
.products-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    max-width: 1500px;
    margin: auto;
    padding: 5px 0;
    direction: rtl;
}

/* =========================
   PRODUCT CARDS
========================= */

.product,
.product-card {
    position: relative;
    min-width: 0;
    padding: 11px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 7px 22px rgba(23,70,76,.07);
    text-align: right;
    direction: rtl;
    transition: .35s ease;
}

.product:hover,
.product-card:hover {
    transform: translateY(-7px);
    border-color: var(--green-light);
    box-shadow: 0 15px 32px rgba(23,70,76,.14);
}

.product img,
.product-card img {
    display: block;
    width: 100%;
    height: 240px;
    padding: 12px;
    border-radius: 14px;
    background: #EAF5F2;
    object-fit: contain;
    cursor: pointer;
    transition: .35s;
}

.product:hover img,
.product-card:hover img {
    transform: scale(1.04);
}

.product h3,
.product-card h3 {
    margin: 13px 7px 5px;
    color: var(--green-dark);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.8;
}

.product p,
.product-card p {
    margin: 5px 7px 12px;
    color: var(--green);
    font-size: 19px;
    font-weight: 800;
}

/* PRODUCT BUTTONS */

.product button,
.product-card button {
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: .3s;
}

/* =========================
   FOOTER
========================= */

.footer {
    padding: 40px 15px 25px;
    background: linear-gradient(120deg, var(--green-dark), var(--green));
    color: var(--white);
    text-align: center;
}

.footer h2 {
    font-size: 29px;
    font-weight: 800;
}

.footer h2 span {
    color: #D8B77F;
}

.footer p {
    margin: 8px 0 18px;
    color: var(--beige);
}

.footer-line {
    width: 65px;
    height: 3px;
    margin: 15px auto;
    border-radius: 10px;
    background: var(--gold);
}

.footer small {
    color: var(--beige);
    font-size: 12px;
}

/* FOOTER CONTACT */

.footer-contact {
    margin: 25px auto;
    width: 100%;
    max-width: 400px;
}

.footer-contact h3 {
    color: var(--white);
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 22px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 270px;
    min-height: 52px;
    margin: 12px auto;
    padding: 15px 18px;
    background: var(--white);
    color: var(--green-dark);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 16px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: all .3s ease;
}

.contact-item:hover {
    background: var(--green-light);
    color: var(--green-dark);
    border-color: var(--green-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.contact-item span:first-child {
    font-size: 21px;
}

.contact-item span[dir="ltr"] {
    direction: ltr;
    unicode-bidi: isolate;
}

/* =========================
   BACK TO TOP
========================= */

.back-to-top {
    position: fixed;
    z-index: 100;
    bottom: 22px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-size: 25px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(23,70,76,.25);
    transition: .3s;
}

.back-to-top:hover {
    background: var(--green-dark);
    transform: translateY(-5px);
}

/* =========================
   IMAGE VIEWER
========================= */

.viewer {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(15,39,42,.95);
    backdrop-filter: blur(8px);
}

.viewer img {
    max-width: 88%;
    max-height: 85vh;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    object-fit: contain;
    animation: appear .3s ease;
}

.viewer .close {
    position: absolute;
    top: 15px;
    right: 30px;
    color: var(--white);
    font-size: 48px;
    cursor: pointer;
    transition: .3s;
}

.viewer .close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

@keyframes appear {
    from {
        opacity: 0;
        transform: scale(.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .main-header {
        grid-template-columns: 115px minmax(0, 1fr);
        gap: 18px;
        padding: 22px 4%;
    }

    .store-logo {
        width: 110px;
        height: 110px;
    }

    .top-search {
        grid-column: 1 / -1;
        max-width: 550px;
        justify-self: center;
    }

    .hero {
        min-height: 340px;
    }

    .hero-illustration {
        transform: scale(.85);
    }

    .products,
    .products-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {


    /* HEADER - FRAMED DESIGN */

    .main-header {
        direction: ltr;
        display: grid;
        grid-template-columns: 90px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 17px 13px;
        margin: 12px;
        min-height: auto;

        background: linear-gradient(145deg, #FFFFFF, #F3F7FC);
        border: 3px solid #2863A6;
        border-radius: 28px;

        box-shadow:
            0 8px 20px rgba(40, 99, 166, .15),
            inset 0 0 0 3px #DFEAF6;

        overflow: hidden;
    }

    /* LOGO */

    .main-header .store-logo {
        display: block;
        width: 90px;
        height: 90px;
        max-width: 100%;
        padding: 5px;
        margin: 0;

        object-fit: contain;
        background: #FFFFFF;
        border: 3px solid #C69B64;
        border-radius: 50%;

        box-shadow: 0 4px 12px rgba(198, 155, 100, .20);
    }

    /* STORE NAME */

    .main-header .store-info {
        min-width: 0;
        direction: rtl;
        text-align: center;
    }

    .main-header .store-info h1 {
        color: #173B68;
        font-size: clamp(21px, 5.8vw, 28px);
        font-weight: 800;
        line-height: 1.5;
    }

    .main-header .store-info h1::after {
        width: 55px;
        height: 3px;
        margin: 5px auto;
        background: linear-gradient(90deg, #C69B64, #78A9DC);
    }

    .main-header .store-info p {
        margin-top: 5px;
        color: #64809F;
        font-size: 11px;
        line-height: 1.8;
    }

    /* SEARCH */

    .main-header .top-search {
        grid-column: 1 / -1;
        display: flex;
        direction: rtl;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-top: 13px;
    }

    .main-header .top-search input {
        flex: 1;
        width: 100%;
        min-width: 0;
        height: 54px;
        padding: 0 17px;

        background: #FFFFFF;
        border: 2px solid #2863A6;
        border-radius: 30px;

        color: #173B68;
        font-size: 14px;
        box-shadow: 0 4px 12px rgba(40, 99, 166, .08);
    }

    .main-header .top-search input:focus {
        border-color: #173B68;
        box-shadow: 0 0 0 3px rgba(40, 99, 166, .13);
    }

    .main-header .top-search button {
        flex-shrink: 0;
        width: 54px;
        height: 54px;
        border: none;
        border-radius: 50%;
        background: #2863A6;
        color: #FFFFFF;
        font-size: 25px;
    }

    .main-header .top-search button:hover {
        background: #173B68;
        transform: none;
    }

    /* CATEGORIES */

    .categories {
        width: 95%;
        margin: 13px auto 18px;
        padding: 8px;
        gap: 5px;
        border-radius: 18px;
    }

    .categories button {
        padding: 8px 11px;
        gap: 5px;
        font-size: 11px;
    }

    .categories button span {
        font-size: 14px;
    }

    /* HERO */

    .hero {
        min-height: 300px;
        margin: 15px 10px;
        padding: 28px 20px;
        border-radius: 23px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-label {
        padding: 7px 14px;
        font-size: 12px;
    }

    .hero-content h2 {
        margin: 14px 0 8px;
        font-size: 29px;
    }

    .hero-content p {
        font-size: 12px;
        line-height: 2;
    }

    .hero-button {
        margin-top: 18px;
        padding: 10px 18px;
        font-size: 13px;
    }

    .hero-illustration {
        display: none;
    }

    /* SHOP */

    .shop-section {
        margin: 20px 10px;
        padding: 24px 10px 35px;
        border-radius: 22px;
    }

    .products-heading {
        margin-bottom: 20px;
    }

    .products-heading h2 {
        font-size: 26px;
    }

    .heading-line span {
        width: 55px;
    }

    /* PRODUCTS */

    .products,
    .products-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
        padding: 0;
    }

    .product,
    .product-card {
        padding: 7px;
        border-radius: 14px;
    }

    .product img,
    .product-card img {
        height: 145px;
        padding: 6px;
        border-radius: 10px;
    }

    .product h3,
    .product-card h3 {
        margin: 8px 4px 3px;
        font-size: 13px;
    }

    .product p,
    .product-card p {
        margin: 4px;
        font-size: 15px;
    }

    /* FOOTER */

    .footer {
        padding: 35px 15px 25px;
    }

    .footer h2 {
        font-size: 23px;
    }

    .footer-contact {
        width: 100%;
        max-width: 100%;
    }

    .footer-contact h3 {
        font-size: 22px;
    }

    .contact-item {
        width: 100%;
        max-width: 290px;
        min-height: 52px;
        margin: 12px auto;
        font-size: 15px;
    }

    /* BACK TO TOP */

    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 14px;
        left: 12px;
        font-size: 22px;
    }

    /* VIEWER */

    .viewer img {
        max-width: 95%;
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 360px) {

     .main-header {
        grid-template-columns: 68px minmax(0, 1fr);
        padding: 13px 9px;
        gap: 10px;
    }

    .main-header .store-logo {
        width: 68px;
        height: 68px;
    }

    .main-header .store-info h1 {
        font-size: 21px;
    }

    .main-header .store-info p {
        font-size: 10px;
    }

    .store-info h1 {
        font-size: 21px;
    }

    .store-info p {
        font-size: 10px;
    }

    .categories button {
        padding: 7px 8px;
        font-size: 10px;
    }

    .hero-content h2 {
        font-size: 25px;
    }

    .products,
    .products-container {
        gap: 8px;
    }

    .product img,
    .product-card img {
        height: 125px;
    }
}

/* =========================
   FOCUS & SELECTION
========================= */

button:focus-visible,
input:focus-visible {
    outline: 2px solid #477DBB;
    outline-offset: 3px;
}

::selection {
    background: var(--green);
    color: var(--white);
}
