:root {
    --primary-blue: #0d6efd;
    --primary-yellow: #ffc107;
    --primary-black: #212529;
    --primary-white: #ffffff;
    --light-bg: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--primary-white);
    color: var(--primary-black);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Pre-header */
.pre-header {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 8px 0;
    font-size: 14px;
}
.pre-header a {
    color: var(--primary-yellow);
    text-decoration: none;
}
.pre-header a:hover {
    color: var(--primary-white);
}

/* Header */
.navbar {
    background-color: var(--primary-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 15px 0;
}
.navbar-brand img {
    max-height: 50px;
}
.nav-link {
    color: var(--primary-black) !important;
    font-weight: 500;
}
.nav-link:hover {
    color: var(--primary-blue) !important;
}

/* Featured Products Carousel */
.featured-products {
    padding: 60px 0;
    background-color: var(--light-bg);
}
.product-card {
    background: var(--primary-white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.product-card .img-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background-color: #fff;
    display: block;
}
.product-card .img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps ratio without breaking/stretching */
    padding: 10px;
}
.product-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    text-decoration: none;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
    margin-top: auto;
}
.product-card .product-price del {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
    margin-right: 8px;
}

.btn.checkout {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.2s;
    text-transform: uppercase;
    font-size: 14px;
}
.btn.checkout:hover {
    background-color: #e0a800;
}

/* Carousel Overrides */
.carousel-control-prev, .carousel-control-next {
    width: 5%;
    color: var(--primary-black);
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1);
}

/* Footer */
footer {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 50px 0 20px;
    margin-top: auto;
}
footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
footer a:hover {
    color: var(--primary-white);
}
.bottom-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
    font-size: 14px;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* Checkout Form */
.checkout-form-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.btn#purchase {
    background-color: var(--primary-blue);
    color: var(--primary-white);
    font-weight: 600;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 6px;
    border: none;
    width: 100%;
}
.btn#purchase:hover {
    background-color: #0b5ed7;
}

/* Product Description Constraints */
.product-description img {
    max-width: 100%;
    height: auto;
}
.product-description img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}
.product-description svg {
    max-width: 32px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}
