
/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
* {
    margin: 0;
    padding: 0;
    font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */
html,
body {
    /* height: 100%; */
}

body {
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    width: 100%;
    padding-top: 70px; /* Default for desktop */
}

@media (max-width: 799px) {
    body {
        padding-top: 100px; /* Increase for mobile to account for potentially taller navbar */
    }
}
:root{
        --cm:#006dFF;
    --button-radius:.5em;
    --cart-opacity:0;
    --cart-animation:initial;
  
  
    --complementary:#a84009;
    --crba:rgb(46,48,459);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-modal: 1050;
    --z-tooltip: 1080;

    /* Breakpoints (for reference, not used in CSS directly) */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
  }

/* custom settings styles moved to component-specific CSS */

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
    max-width: 100%;
    display: block;
}
/* sticky navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    transition: top 0.3s ease;
}

/* Add to Cart Button */
.add-btn {
    background-color: #006dFF;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

.add-btn:hover {
    background-color: #0056b3;
}

/* Cart Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: grid;
    place-items: center;
    z-index: 1000;
}

.modal-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #e0e0e0;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
    text-align: center;
}

.modal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.modal-content li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
}

.modal-content li:last-child {
    border-bottom: none;
}

.item-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.item-name {
    font-weight: 500;
    color: #333;
}

.item-price {
    color: #006dFF;
    font-weight: 600;
}

.item-controls {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 0.5rem;
    align-items: center;
}

.qty-btn {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #333;
}

.qty-btn:hover {
    background-color: #e0e0e0;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.25rem;
    font-size: 1rem;
}

.qty-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    width: 60px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.25rem;
    background-color: #fff;
}

/* Hide number input spinner arrows */
.qty-display::-webkit-outer-spin-button,
.qty-display::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-display {
    -moz-appearance: textfield;
}

.delete-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.delete-btn:hover {
    background-color: #cc0000;
}

.total {
    font-size: 1.2rem;
    font-weight: 600;
    color: #006dFF;
    text-align: center;
    margin: 1rem 0;
}

.close-btn {
    background-color: #006dFF;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: block;
    margin: 0 auto;
}

.close-btn:hover {
    background-color: #0056b3;
}

