/* --------------------------------------------------
   Google Fonts
-------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');


/* --------------------------------------------------
   Design tokens
-------------------------------------------------- */

:root {
    --sharabeek-cream: #fffaf2;
    --sharabeek-purple: #59548b;
    --sharabeek-purple-dark: #4c4779;
    --sharabeek-blush: #f3d8d6;
    --sharabeek-lavender: #e9e3f1;
    --sharabeek-yellow: #fff0b8;
    --sharabeek-mauve: #8d7790;

    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-pill: 9999px;

    --shadow-sm: 0 1px 3px rgba(89,84,139,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(89,84,139,.10), 0 2px 6px rgba(0,0,0,.05);
    --shadow-lg: 0 12px 40px rgba(89,84,139,.14), 0 4px 12px rgba(0,0,0,.07);
}


/* --------------------------------------------------
   Base / Typography
-------------------------------------------------- */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif,
[class*="font-serif"] {
    font-family: 'Playfair Display', Georgia, serif;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* --------------------------------------------------
   Sharabeek artistic background
-------------------------------------------------- */

.site-background {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(
            ellipse 500px 380px at -5% 8%,
            rgba(243, 216, 214, 0.55),
            transparent 70%
        ),
        radial-gradient(
            ellipse 420px 500px at 105% 25%,
            rgba(255, 240, 184, 0.30),
            transparent 70%
        ),
        radial-gradient(
            ellipse 480px 420px at -8% 62%,
            rgba(233, 227, 241, 0.42),
            transparent 70%
        ),
        radial-gradient(
            ellipse 520px 400px at 105% 88%,
            rgba(243, 216, 214, 0.42),
            transparent 70%
        ),
        #fffaf2;
}


/* Fine handmade-looking curves */

.site-background::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse 500px 300px at -5% 15%,
            transparent 69%,
            rgba(180, 126, 135, 0.24) 69.5%,
            rgba(180, 126, 135, 0.24) 70%,
            transparent 70.5%
        ),
        radial-gradient(
            ellipse 650px 350px at 105% 85%,
            transparent 69%,
            rgba(180, 126, 135, 0.20) 69.5%,
            rgba(180, 126, 135, 0.20) 70%,
            transparent 70.5%
        );
}


/* Very subtle decorative dots */

.site-background::after {
    content: "";
    position: fixed;
    top: 180px;
    right: 5%;
    width: 90px;
    height: 90px;
    z-index: -1;
    pointer-events: none;

    background-image: radial-gradient(
        circle,
        rgba(89, 84, 139, 0.18) 2px,
        transparent 2.5px
    );

    background-size: 22px 22px;
    transform: rotate(12deg);
}


/* --------------------------------------------------
   Dark mode
-------------------------------------------------- */

.dark .site-background {
    background:
        radial-gradient(
            ellipse 500px 380px at -5% 8%,
            rgba(119, 83, 112, 0.16),
            transparent 70%
        ),
        radial-gradient(
            ellipse 420px 500px at 105% 25%,
            rgba(142, 122, 70, 0.10),
            transparent 70%
        ),
        radial-gradient(
            ellipse 480px 420px at -8% 62%,
            rgba(91, 82, 130, 0.15),
            transparent 70%
        ),
        radial-gradient(
            ellipse 520px 400px at 105% 88%,
            rgba(119, 83, 112, 0.12),
            transparent 70%
        ),
        #080b10;
}


.dark .site-background::before {
    opacity: 0.45;
}


.dark .site-background::after {
    opacity: 0.5;
}


/* --------------------------------------------------
   Crochet decorations
-------------------------------------------------- */

.crochet-decoration {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    color: var(--sharabeek-purple);
    opacity: 0.11;
}

.crochet-decoration svg {
    display: block;
    width: 100%;
    height: 100%;
}


/* Yarn ball — left side */

.crochet-yarn {
    left: -35px;
    top: 38%;
    width: 145px;
    height: 145px;
    transform: rotate(-12deg);
}


/* Crochet hook / thread — right side */

.crochet-hook {
    right: -25px;
    top: 68%;
    width: 150px;
    height: 150px;
    transform: rotate(15deg);
}


/* Dark mode */

.dark .crochet-decoration {
    color: #c8c2e0;
    opacity: 0.08;
}


/* Keep decorations smaller on phones */

@media (max-width: 640px) {
    .crochet-yarn {
        left: -45px;
        width: 110px;
        height: 110px;
    }

    .crochet-hook {
        right: -40px;
        width: 115px;
        height: 115px;
    }
}


/* --------------------------------------------------
   Forms & Inputs
-------------------------------------------------- */

.field-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5dede;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.75);
    font-family: inherit;
    font-size: 0.9375rem;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field-input::placeholder {
    color: #bbb;
}

.field-input:focus {
    border-color: var(--sharabeek-purple);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 0 0 3px rgba(89,84,139,0.10);
}

.dark .field-input {
    border-color: #3a3a4a;
    background: rgba(20,18,32,0.7);
    color: #f0eeff;
}

.dark .field-input:focus {
    border-color: #8880be;
    background: rgba(20,18,32,0.9);
    box-shadow: 0 0 0 3px rgba(89,84,139,0.18);
}

.field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.01em;
}

.dark .field-label {
    color: #c0bbd8;
}


/* --------------------------------------------------
   Buttons
-------------------------------------------------- */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-pill);
    background: var(--sharabeek-purple);
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 18px rgba(89,84,139,0.22);
    border: none;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
    background: var(--sharabeek-purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(89,84,139,0.30);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-pill);
    background: transparent;
    border: 1.5px solid #d4cce0;
    color: var(--sharabeek-purple);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.btn-secondary:hover {
    border-color: var(--sharabeek-purple);
    background: rgba(89,84,139,0.06);
    transform: translateY(-1px);
}

.dark .btn-secondary {
    border-color: #5a5475;
    color: #c8c2e0;
}

.dark .btn-secondary:hover {
    border-color: #9990c8;
    background: rgba(89,84,139,0.18);
    color: #fff;
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background: #111;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.15s ease;
}

.btn-dark:hover {
    background: #222;
    transform: translateY(-1px);
}

.btn-dark:disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
    transform: none;
}


/* --------------------------------------------------
   Cards
-------------------------------------------------- */

.card {
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(234,223,216,0.7);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.dark .card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}


/* --------------------------------------------------
   Badges
-------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.badge-neutral {
    background: rgba(0,0,0,0.06);
    color: #555;
}

.badge-sold {
    background: rgba(255,255,255,0.92);
    color: #333;
    backdrop-filter: blur(8px);
}

.badge-sale {
    background: #e5484d;
    color: #fff;
}

.badge-green {
    background: #ecfdf5;
    color: #166534;
}

.dark .badge-neutral {
    background: rgba(255,255,255,0.10);
    color: #c0bbd8;
}

.dark .badge-green {
    background: rgba(22,101,52,0.25);
    color: #86efac;
}


/* --------------------------------------------------
   Page headers (shop/events/category)
-------------------------------------------------- */

.page-header {
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid rgba(234,223,216,0.6);
}

.dark .page-header {
    border-color: rgba(255,255,255,0.07);
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 600;
    color: #1a1a24;
    letter-spacing: -0.025em;
}

.dark .page-header h1 {
    color: #f0eeff;
}

.page-header p {
    margin-top: 0.6rem;
    font-size: 1rem;
    color: #777;
    max-width: 40ch;
}

.dark .page-header p {
    color: #a09ab8;
}


/* --------------------------------------------------
   Product card polish
-------------------------------------------------- */

.product-card-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #f0ebe6;
}

.dark .product-card-image {
    background: #1e1c2a;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(.4,0,.2,1);
}

.product-card-image:hover img {
    transform: scale(1.05);
}

.product-card-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1a1a24;
    transition: color 0.15s ease;
}

.dark .product-card-name {
    color: #e8e4f8;
}

.product-card-category {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sharabeek-mauve);
}

.dark .product-card-category {
    color: #9990c0;
}

.product-card-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a24;
}

.dark .product-card-price {
    color: #e8e4f8;
}


/* --------------------------------------------------
   Section dividers
-------------------------------------------------- */

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sharabeek-mauve);
}

.dark .section-label {
    color: #aaa3c2;
}

.section-title {
    margin-top: 0.6rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: #1a1a24;
    line-height: 1.15;
}

.dark .section-title {
    color: #f0eeff;
}


/* --------------------------------------------------
   Breadcrumb
-------------------------------------------------- */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #999;
}

.breadcrumb a {
    color: #888;
    transition: color 0.15s ease;
}

.breadcrumb a:hover {
    color: var(--sharabeek-purple);
}

.dark .breadcrumb {
    color: #6b6585;
}

.dark .breadcrumb a {
    color: #7a7498;
}

.dark .breadcrumb a:hover {
    color: #c8c2e0;
}


/* --------------------------------------------------
   Responsive container utility
-------------------------------------------------- */

.container-site {
    width: 100%;
    max-width: 80rem;   /* 1280px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-site {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-site {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}


/* --------------------------------------------------
   Filter pill (shop page)
-------------------------------------------------- */

.filter-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid #e2d9e8;
    font-size: 0.8125rem;
    color: #666;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    user-select: none;
}

.filter-pill:hover {
    border-color: var(--sharabeek-purple);
    color: var(--sharabeek-purple);
}

.filter-pill.active,
input[type="radio"]:checked + .filter-pill {
    border-color: #1a1a24;
    background: #1a1a24;
    color: #fff;
}

.dark .filter-pill {
    border-color: #3a3650;
    color: #a09ab8;
}

.dark .filter-pill:hover {
    border-color: #8880be;
    color: #c8c2e0;
}

.dark .filter-pill.active,
.dark input[type="radio"]:checked + .filter-pill {
    border-color: #f0eeff;
    background: #f0eeff;
    color: #1a1a24;
}


/* --------------------------------------------------
   Smooth focus ring (accessibility)
-------------------------------------------------- */

:focus-visible {
    outline: 2px solid var(--sharabeek-purple);
    outline-offset: 3px;
    border-radius: 4px;
}


/* --------------------------------------------------
   Transitions
-------------------------------------------------- */

a, button {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}


/* --------------------------------------------------
   Messages / alerts
-------------------------------------------------- */

.alert {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-success {
    background: #ecfdf5;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-info {
    background: rgba(233,227,241,0.7);
    color: #4c3d6d;
    border-color: rgba(89,84,139,0.2);
}

.dark .alert-success {
    background: rgba(22,101,52,0.18);
    color: #86efac;
    border-color: rgba(22,101,52,0.35);
}

.dark .alert-error {
    background: rgba(153,27,27,0.18);
    color: #fca5a5;
    border-color: rgba(153,27,27,0.35);
}

.dark .alert-info {
    background: rgba(89,84,139,0.18);
    color: #c8c2e0;
    border-color: rgba(89,84,139,0.30);
}


/* --------------------------------------------------
   Scrollbar (webkit)
-------------------------------------------------- */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(89,84,139,0.25);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(89,84,139,0.45);
}