
/* =================================
   EMR SHOPR - MAIN STYLESHEET
================================= */

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0b0911;
    color: #ffffff;
    font-family: Tahoma, sans-serif;
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* VARIABLES */

:root {
    --main: #a855f7;
    --secondary: #d946ef;
    --background: #0b0911;
    --card: #171321;
    --text-muted: #a49bb3;
    --border: #30233e;
}

/* HEADER */

.header {
    width: 100%;
    min-height: 85px;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 12, 23, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.logo {
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo span {
    color: var(--main);
}

.navbar {
    display: flex;
    gap: 30px;
}

.navbar a {
    color: #c5bdd0;
    font-size: 14px;
    transition: 0.3s;
}

.navbar a:hover {
    color: var(--main);
}

.cart-button {
    background: linear-gradient(120deg, #9333ea, #c026d3);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    transition: 0.3s;
}

.cart-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px #a855f755;
}

.cart-button span {
    background: white;
    color: #8b35c9;
    border-radius: 20px;
    padding: 3px 7px;
    margin-right: 5px;
}

/* HERO */

.hero {
    min-height: 520px;
    padding: 80px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background:
        radial-gradient(circle at 80% 40%, #61238c33, transparent 35%),
        linear-gradient(120deg, #100b18, #0b0911);
}

.hero-content {
    max-width: 600px;
}

.hero-label {
    color: #c084fc;
    font-size: 12px;
    letter-spacing: 3px;
}

.hero h1 {
    font-size: 45px;
    line-height: 1.7;
    margin: 20px 0;
}

.hero h1 span {
    color: var(--main);
    display: block;
}

.hero p {
    color: var(--text-muted);
    line-height: 2;
    font-size: 15px;
    margin-bottom: 30px;
}

.hero-button {
    display: inline-block;
    background: linear-gradient(120deg, #9333ea, #c026d3);
    padding: 14px 28px;
    border-radius: 10px;
    transition: 0.3s;
}

.hero-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px #a855f755;
}

.hero-icon {
    font-size: 150px;
    filter: drop-shadow(0 0 35px #a855f777);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* SERVICES */

.services {
    padding: 90px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title span,
.about > span,
.contact > span {
    color: var(--main);
    font-size: 11px;
    letter-spacing: 3px;
}

.section-title h2,
.about h2,
.contact h2 {
    font-size: 30px;
    margin: 15px 0;
}

.section-title p,
.about p,
.contact p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 2;
}

/* CATEGORIES */

.category-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.category {
    background: #171321;
    border: 1px solid var(--border);
    color: #c5bdd0;
    padding: 12px 23px;
    border-radius: 10px;
    transition: 0.3s;
}

.category:hover,
.category.active {
    background: linear-gradient(120deg, #9333ea, #c026d3);
    border-color: transparent;
    color: white;
}

/* PRODUCT LIST */

.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* PRODUCT CARD */

.product {
    background: linear-gradient(145deg, #1c1727, #13101b);
    border: 1px solid var(--border);
    padding: 30px 22px;
    border-radius: 18px;
    text-align: center;
    transition: 0.3s;
}

.product:hover {
    transform: translateY(-8px);
    border-color: var(--main);
    box-shadow: 0 12px 35px #a855f722;
}

.product > div {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    background: #342044;
    border-radius: 18px;
}

.product h3 {
    margin: 20px 0 12px;
    font-size: 18px;
}

.product p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 2;
}

.product h4 {
    color: #c084fc;
    font-size: 18px;
    margin: 20px 0;
}

.product button {
    width: 100%;
    background: linear-gradient(120deg, #9333ea, #c026d3);
    color: white;
    border: none;
    padding: 13px;
    border-radius: 10px;
    transition: 0.3s;
}

.product button:hover {
    box-shadow: 0 5px 20px #a855f755;
    filter: brightness(1.15);
}

/* ABOUT */

.about {
    text-align: center;
    padding: 85px 10%;
    background: #15101e;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about p {
    max-width: 650px;
    margin: auto;
}

/* CONTACT */

.contact {
    text-align: center;
    padding: 90px 10%;
}

.contact a {
    display: inline-block;
    margin-top: 25px;
    background: #22202e;
    border: 1px solid var(--main);
    padding: 13px 30px;
    border-radius: 10px;
    transition: 0.3s;
}

.contact a:hover {
    background: var(--main);
}

/* CART OVERLAY */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: #0009;
    backdrop-filter: blur(3px);
    z-index: 1998;

    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* CART */

.cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    padding: 25px;
    background: #15111e;
    border-left: 1px solid var(--border);
    z-index: 1999;

    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    visibility: hidden;
    transition: 0.35s ease;
}

.cart.active {
    transform: translateX(0);
    visibility: visible;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.cart-header span {
    font-size: 10px;
    color: var(--main);
    letter-spacing: 2px;
}

.cart-header h2 {
    margin-top: 10px;
}

.close-cart {
    background: #30243c;
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 25px;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-product {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 14px;
}

.cart-product-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-product-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #342044;
    border-radius: 10px;
    font-size: 22px;
}

.cart-product-info {
    flex: 1;
}

.cart-product-info h4 {
    font-size: 13px;
    margin-bottom: 5px;
}

.cart-product-info p {
    color: var(--main);
    font-size: 11px;
}

.remove-product {
    background: #49212e;
    color: #ff758e;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 20px;
}

.cart-product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 8px;
}

.cart-product-bottom strong {
    font-size: 12px;
    color: #c084fc;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #30243c;
    padding: 5px 10px;
    border-radius: 8px;
}

.quantity-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
}

.quantity-controls span {
    font-size: 12px;
}

.cart-footer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.total-row strong {
    color: #c084fc;
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(120deg, #9333ea, #c026d3);
    color: white;
    font-size: 14px;
    transition: 0.3s;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px #a855f755;
}

/* EMPTY CART */

.empty-cart {
    text-align: center;
    padding: 45px 10px;
    background: var(--card);
    border: 1px dashed #53366d;
    border-radius: 15px;
}

.empty-cart span {
    font-size: 45px;
}

.empty-cart h3 {
    margin: 15px 0 8px;
    font-size: 15px;
}

.empty-cart p {
    color: var(--text-muted);
    font-size: 12px;
}

/* FOOTER */

.footer {
    background: #100d16;
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 40px 20px;
}

.footer h3 {
    color: var(--main);
    margin-bottom: 12px;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.footer small {
    color: #777;
    font-size: 11px;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .header {
        padding: 20px 5%;
        flex-wrap: wrap;
        gap: 20px;
    }

    .navbar {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero-icon {
        font-size: 100px;
    }

}

@media (max-width: 600px) {

    .header {
        min-height: 75px;
    }

    .logo {
        font-size: 20px;
    }

    .navbar {
        gap: 15px;
    }

    .navbar a {
        font-size: 12px;
    }

    .hero {
        padding: 65px 7%;
        min-height: 450px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-icon {
        display: none;
    }

    .services {
        padding: 65px 5%;
    }

    .product-list {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 25px;
    }

    .cart {
        width: 100%;
    }

}
