@import url('https://fonts.googleapis.com/css2?family=Alegreya&family=Playfair+Display:wght@500&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #b01302;
    --secondary-color: #056db6;
    --accent-red: #b01302;
    --accent-blue: #056db6;
    --dark-color: #222222;
    --light-color: #f8f9fa;
    --text-gray: #666;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.3rem, 2vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: 1.2rem;
    font-weight: 500;
}

h5 {
    font-size: 1rem;
    font-weight: 400;
}

h6 {
    color: #d8d8d8;
}

/* Buttons */
button {
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    border: none;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    display: inline-block;
}

button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(176, 19, 2, 0.3);
}

/* Navigation Improvements */
.navbar {
    font-size: 16px;
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-brand-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar .brand {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
    white-space: nowrap;
}

.logo {
    width: 80px;
    height: 70px;
    object-fit: contain;
    margin-right: 15px;
}

.navbar-collapse {
    flex-grow: 0;
}

.navbar-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navigation-links {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 20px;
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-light .navbar-nav .nav-link {
    padding: 8px 0;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

.icon-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.icon-link i {
    font-size: 1.3rem;
    transition: color 0.3s ease;
    cursor: pointer;
    color: #333;
}

.icon-link:hover,
.icon-link:hover i {
    color: var(--secondary-color);
}


.cart-quantity {
    background-color: var(--secondary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 0.75rem;
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    text-align: center;
}

/* Home Section Improvements */
#home {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../imgs/as.jpeg');
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-top: 75px;
    position: relative;
}

#home .container {
    position: relative;
    z-index: 2;
    padding: 20px;
}

#home h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

#home h1 {
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#home h1 span {
    color: var(--primary-color);
}

#home p {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Brand Section */
#brand {
    padding: 60px 0;
}

#brand img {
    height: 150px;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

#brand img:hover {
    transform: scale(1.1);
}

/* New Products Section */
#new {
    margin: 40px 0;
}

#new .one {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

#new .one img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#new .one:hover img {
    transform: scale(1.1);
}

#new .one .details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(176, 19, 2, 0.9), rgba(5, 109, 182, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#new .one:hover .details {
    opacity: 1;
}

#new .one .details h2 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

#new .one .details button {
    background-color: white;
    color: var(--secondary-color);
}

/* Product Cards Improvements */
.product {
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.product:hover {
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}

.product:hover img {
    opacity: 0.9;
}

.product h5 {
    font-weight: 600;
    margin: 15px 0 10px 0;
    color: #333;
    min-height: 48px;
}

.product h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.product .buy-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 5px;
    border: none;
}

.product:hover .buy-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Featured Sections */
#featured {
    padding: 60px 0 40px 0;
}

/* Reduce spacing between sections */
#featured.my-4,
#featured.my-3 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

#shoes.my-3 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

#watches.my-3 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* First section (Our Products) gets a bit more space from banner */
#featured.my-4.pb-4 {
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
}

#featured h3 {
    color: #333;
    margin-bottom: 10px;
}

#featured hr {
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    margin: 0 auto 20px auto;
    opacity: 1;
}

#featured p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-gray);
    text-align: center;
    line-height: 1.8;
}

/* Reduce header padding for all product sections */
#featured .container.text-center,
#shoes .container.text-center,
#watches .container.text-center {
    padding-top: 40px !important;
    padding-bottom: 20px !important;
}

/* Center product grids with less than 4 items */
#featured .row,
#shoes .row,
#watches .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    padding: 0 15px;
}

#featured .product,
#shoes .product,
#watches .product {
    flex: 0 1 calc(25% - 20px);
    max-width: 280px;
    min-width: 250px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    #featured .product,
    #shoes .product,
    #watches .product {
        flex: 0 1 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    #featured .product,
    #shoes .product,
    #watches .product {
        flex: 0 1 calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    #featured .product,
    #shoes .product,
    #watches .product {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

/* Special handling for rows with less than 4 items */
.product-row-1 .product {
    flex: 0 1 280px !important;
}

.product-row-2 .product {
    flex: 0 1 calc(40% - 20px) !important;
    max-width: 350px !important;
}

.product-row-3 .product {
    flex: 0 1 calc(30% - 20px) !important;
    max-width: 320px !important;
}

@media (max-width: 992px) {
    .product-row-2 .product,
    .product-row-3 .product {
        flex: 0 1 calc(45% - 20px) !important;
    }
}

@media (max-width: 768px) {
    .product-row-2 .product,
    .product-row-3 .product {
        flex: 0 1 calc(50% - 20px) !important;
    }
}

/* Banner Section Fix */
#banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../imgs/as.jpeg');
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    margin: 80px 0;
    position: relative;
}

#banner .container {
    position: relative;
    z-index: 2;
}

#banner h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

#banner h1 {
    color: white;
    margin-bottom: 30px;
}

#banner button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 700;
    border: 2px solid transparent;
}

#banner button:hover {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Team Section */
#team-section {
    background-color: var(--light-color);
    padding: 80px 0;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.text-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    flex: 1 1 300px;
    max-width: 350px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.text-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.imge {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--primary-color);
}

.text-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Footer Improvements */
footer {
    background-color: var(--dark-color);
    padding: 50px 0 30px 0;
    color: white;
}

footer h5 {
    color: white;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

footer li {
    padding-bottom: 10px;
    list-style: none;
}

footer li a {
    font-size: 0.9rem;
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer li a:hover {
    color: var(--primary-color);
}

footer .copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #444;
}

footer .copyright a {
    color: var(--dark-color);
    height: 40px;
    width: 40px;
    background-color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin: 0 5px;
    text-decoration: none;
}

footer .copyright a:hover {
    color: white;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-nav-wrapper {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        gap: 20px;
    }
    
    .navigation-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        width: 100%;
    }
    
    .navbar-icons {
        justify-content: center;
        gap: 25px;
    }
    
    .navbar-collapse {
        width: 100%;
    }
    
    #home {
        min-height: 80vh;
    }
    
    #home h1 {
        font-size: 2rem;
    }
    
    .cards {
        flex-direction: column;
        align-items: center;
    }
    
    .product img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .navbar .brand {
        font-size: 1.4rem;
    }
    
    #home {
        min-height: 70vh;
        background-position: center;
    }
    
    #home h1 {
        font-size: 1.8rem;
    }
    
    #home p {
        font-size: 1rem;
    }
    
    #new .one {
        margin-bottom: 20px;
    }
    
    #new .one img {
        height: 300px;
    }
    
    .product {
        margin-bottom: 20px;
    }
    
    #featured {
        padding: 60px 0;
    }
    
    #banner {
        min-height: 300px;
        margin: 60px 0;
    }
}

@media (max-width: 768px) {
    .navbar .brand {
        font-size: 1.4rem;
    }
    
    .logo {
        width: 60px;
        height: 50px;
    }
    
    /* Contact Page Mobile */
    #contact-hero {
        padding: 120px 0 80px 0;
    }
    
    .contact-form-wrapper,
    .map-wrapper {
        padding: 30px 20px;
    }
    
    .contact-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .navbar .brand {
        font-size: 1.2rem;
    }
    
    .logo {
        width: 50px;
        height: 40px;
    }
    
    #home h1 {
        font-size: 1.5rem;
    }
    
    button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .product h5 {
        font-size: 0.9rem;
    }
    
    .product h4 {
        font-size: 1.1rem;
    }
}

/* Animation Classes */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Additional Product Page Styles */
.single-product img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.small-img-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.small-img-col {
    flex: 1;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.small-img-col:hover {
    transform: scale(1.05);
}

/* Cart Styles */
.cart table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.cart th {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px;
    text-align: left;
}

.cart td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart td img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* Form Styles */
#login-form, #register-form, #account-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#login-form input, #register-form input, #account-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

#login-form input:focus, #register-form input:focus, #account-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Contact Page Styles */
#contact-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 150px 0 100px 0;
    margin-top: 75px;
    color: white;
    text-align: center;
}

.contact-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

#contact-info {
    background-color: white;
    position: relative;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 1.8rem;
    color: white;
}

.contact-card h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-card p {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--secondary-color);
}

/* Contact Form & Map Section */
#contact-form-map {
    background-color: #f8f9fa;
}

.contact-form-wrapper,
.map-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-form-wrapper h3,
.map-wrapper h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.contact-form-wrapper p,
.map-wrapper p {
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(176, 19, 2, 0.1);
    background-color: white;
}

.btn-submit {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(176, 19, 2, 0.3);
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.map-container {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FAQ Section */
#contact-faq {
    background-color: var(--light-color);
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.accordion-button {
    background-color: white;
    color: #333;
    font-weight: 600;
    padding: 20px 25px;
    border: none;
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.accordion-body {
    padding: 20px 25px;
    background-color: white;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Additional Shop Page Styles */
.shop-buy-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 1;
    color: white;
    text-decoration: none;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
}

.shop-buy-btn:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(176, 19, 2, 0.3);
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 40px;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
}