:root {
    --steel-gray: #71797E;
    --swiss-red: #FF0000;
    --tech-black: #2C2C2C;
    --light-gray: #F8F9FA;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-gray);
    color: var(--tech-black);
}

.navbar {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1030;
    padding: 0.75rem 0;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--swiss-red) !important;
    letter-spacing: -0.5px;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    text-align: center;
}

.nav-link:hover {
    color: var(--swiss-red) !important;
}

.btn-link {
    color: var(--tech-black);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
    position: relative;
}

.btn-link:hover {
    color: var(--swiss-red);
}

.snipcart-items-count {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

.snipcart-items-count:empty {
    display: none;
}

.snipcart-checkout .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carousel Styles */
#heroCarousel {
    margin-top: 0;
}

.carousel-slide-wrapper {
    height: 600px;
    min-height: 500px;
    position: relative;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .carousel-slide-wrapper {
        height: 400px;
        min-height: 400px;
    }
    
    .carousel-content h1,
    .carousel-content h2 {
        font-size: 2rem !important;
    }
    
    .carousel-content .lead {
        font-size: 1rem !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

.carousel-content {
    max-width: 800px;
    padding: 2rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--swiss-red);
    border-color: var(--swiss-red);
    transform: scale(1.2);
}

/* Carousel Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

.breadcrumb {
    background: transparent;
    padding: 1rem 0;
}

.breadcrumb a {
    color: var(--swiss-red);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.form-control {
    border-radius: 20px 0 0 20px;
    border: 1px solid rgba(0,0,0,0.1);
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--swiss-red);
}

.btn-outline-secondary {
    border-radius: 0 20px 20px 0;
    border: 1px solid rgba(0,0,0,0.1);
    border-left: none;
}

.btn-outline-secondary:hover {
    background-color: var(--swiss-red);
    border-color: var(--swiss-red);
    color: white;
}

footer {
    border-top: 1px solid rgba(0,0,0,0.05);
}

footer h5 {
    color: var(--swiss-red);
    font-family: 'Poppins', sans-serif;
}

/* Product Images - Adaptive and Same Size */
.card-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.card-img-top:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .card-img-top {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 200px;
    }
}

/* Product detail page images */
.container .img-fluid {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.container .row .col-md-6 img.img-fluid {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .container .row .col-md-6 img.img-fluid {
        max-height: 400px;
    }
}
