/* 
* BadAssApparel - Custom CSS Styles
* Mobile-friendly e-commerce website for sports t-shirts
*/

/* General Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ff5722;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --danger-color: #dc3545;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .nav-link {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

.section-title {
    margin-bottom: 2rem;
    position: relative;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
}

.btn {
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 0;
}

/* Header Styles */
.top-bar {
    font-size: 0.875rem;
}

.site-logo img {
    max-height: 60px;
}

.navbar {
    padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 1rem 1.2rem;
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white;
    background-color: rgba(0, 0, 0, 0.1);
}

.dropdown-menu {
    border-radius: 0;
    padding: 0.5rem 0;
    margin-top: 0;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
}

.header-actions .btn-link {
    padding: 0;
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 2rem;
}

.carousel-item {
    height: 500px;
    overflow: hidden;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    bottom: 4rem;
    border-left: 5px solid var(--primary-color);
}

.carousel-caption h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Categories Section */
.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card .card {
    border: none;
    border-radius: 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: 100%;
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Products Section */
.product-card {
    border: none;
    border-radius: 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 125%; /* 4:5 Aspect Ratio */
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Features Section */
.features-section .feature-item {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.features-section .feature-item:hover {
    transform: translateY(-5px);
}

/* Newsletter Section */
.newsletter-form .form-control {
    border-radius: 0;
    height: 3rem;
}

.newsletter-form .btn {
    border-radius: 0;
    height: 3rem;
}

/* Instagram Section */
.instagram-item {
    position: relative;
    display: block;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
}

.instagram-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.instagram-overlay i {
    color: white;
    font-size: 2rem;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

/* Footer */
.site-footer {
    border-top: 5px solid var(--primary-color);
}

.footer-social a {
    display: inline-block;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
    color: var(--accent-color) !important;
}

.site-footer ul li a {
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.site-footer ul li a:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}

/* Product Detail Page */
.product-detail .product-images {
    position: relative;
}

.product-detail .thumbnail-slider {
    margin-top: 1rem;
}

.product-detail .thumbnail-item {
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.product-detail .thumbnail-item.active,
.product-detail .thumbnail-item:hover {
    opacity: 1;
}

.product-detail .product-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-detail .product-price {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-detail .product-description {
    margin-bottom: 2rem;
}

.product-detail .product-meta {
    margin-bottom: 2rem;
}

.product-detail .quantity-input {
    width: 5rem;
    text-align: center;
}

/* Cart Page */
.cart-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.cart-item .cart-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.cart-item .cart-product-title {
    font-weight: 500;
}

.cart-item .cart-quantity {
    width: 5rem;
}

.cart-item .cart-remove {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.2rem;
    color: var(--danger-color);
}

.cart-summary {
    background-color: var(--light-color);
    padding: 1.5rem;
}

/* Checkout Page */
.checkout-steps {
    display: flex;
    margin-bottom: 2rem;
}

.checkout-step {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background-color: var(--light-color);
    position: relative;
}

.checkout-step.active {
    background-color: var(--primary-color);
    color: white;
}

.checkout-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    transform: translateY(-50%);
    z-index: 1;
}

/* Account Pages */
.account-sidebar {
    background-color: var(--light-color);
    padding: 1.5rem;
}

.account-sidebar .list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    background-color: transparent;
}

.account-sidebar .list-group-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* Admin Dashboard */
.admin-sidebar {
    background-color: var(--dark-color);
    min-height: calc(100vh - 56px);
    padding: 1.5rem 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
}

.admin-content {
    padding: 1.5rem;
}

.admin-card {
    border-radius: 0;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.admin-card.sales {
    border-left-color: var(--success-color);
}

.admin-card.orders {
    border-left-color: var(--primary-color);
}

.admin-card.products {
    border-left-color: var(--accent-color);
}

.admin-card.customers {
    border-left-color: var(--secondary-color);
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        bottom: 2rem;
        padding: 1.5rem;
    }
    
    .carousel-caption h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 1rem;
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 575px) {
    .carousel-item {
        height: 250px;
    }
    
    .carousel-caption {
        bottom: 0.5rem;
        padding: 0.75rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-caption .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
    
    .product-card .card-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
}