/* Custom Styles for Gentleman's Shirts E-commerce */

/* Modern Hero Section */
.hero-section-modern {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80') center/cover;
    opacity: 0.2;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-section-modern .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out 0.3s both;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.6s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Cards */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.category-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 30px;
    color: white;
    transition: background 0.3s ease;
}

.category-overlay h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.category-overlay p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Features Grid */
.features-grid {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-item {
    padding: 40px 20px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Product Price Styling */
.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #007bff;
}

.original-price {
    font-size: 1rem;
    color: #6c757d;
    text-decoration: line-through;
}

/* Sale Badge for Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Product Cards - Updated */
.product-card {
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

.clickable-product {
    cursor: pointer;
}

.clickable-product:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.clickable-product:hover .product-image {
    transform: scale(1.05);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #007bff;
}

.btn-add-cart {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 8px 20px;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
}

/* Privacy Policy Page */
.privacy-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.privacy-content h3 {
    color: #333;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.privacy-content ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}

.privacy-content ul li {
    margin-bottom: 0.5rem;
}

.privacy-content strong {
    color: #007bff;
}

/* Filter Pills */
.filter-btn {
    border-radius: 25px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.form-control {
    border-radius: 25px;
    padding: 12px 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background-color: rgba(33, 37, 41, 0.95) !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff !important;
}

.cart-count {
    position: absolute;
    font-size: 0.65rem;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 1px 4px;
    min-width: 18px;
    text-align: center;
    line-height: 1.3;
    font-weight: 600;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.product-image {
    height: 300px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

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

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #007bff;
}

.btn-add-cart {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
}

/* Product Detail Page */
.product-image-container {
    position: relative;
}

.product-detail-main-image {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-detail-main-image:hover {
    transform: scale(1.02);
}

#image-gallery {
    margin-top: 15px;
}

#image-gallery .col-3 {
    padding: 0 5px;
}

#image-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#image-gallery img:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#image-gallery img.border-primary {
    border-color: #007bff !important;
    transform: scale(1.05);
}

#image-gallery img.border-secondary {
    border-color: #dee2e6 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-detail-main-image {
        height: 350px;
    }
    
    #image-gallery img {
        height: 80px;
    }
    
    #image-gallery .col-3 {
        padding: 0 3px;
    }
}

@media (max-width: 576px) {
    .product-detail-main-image {
        height: 280px;
    }
    
    #image-gallery img {
        height: 70px;
    }
}

.size-selector {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.size-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.size-btn.selected {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

/* Shopping Cart */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 20px 0;
}

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

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.quantity-btn:hover {
    background: #f8f9fa;
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 100px 0;
}

.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #007bff;
}

/* Contact Page */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
}

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

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

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #007bff, #0056b3);
}

footer .list-unstyled li a {
    transition: all 0.3s ease;
    padding: 5px 0;
    display: block;
}

footer .list-unstyled li a:hover {
    color: #007bff !important;
    transform: translateX(5px);
}

footer .newsletter-form .form-control {
    border-radius: 25px 0 0 25px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

footer .newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

footer .newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

footer .btn-primary {
    border-radius: 0 25px 25px 0;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    transition: all 0.3s ease;
}

footer .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
}

footer .social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

footer .social-links a:hover {
    color: #007bff !important;
    transform: translateY(-3px);
}

footer .contact-info p {
    transition: all 0.3s ease;
}

footer .contact-info p:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

footer .text-white-50 {
    transition: color 0.3s ease;
}

footer .text-white-50:hover {
    color: #ffffff !important;
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        text-align: center;
    }
    
    footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    footer .social-links {
        text-align: center;
    }
    
    footer .contact-info p {
        text-align: center;
    }
    
    footer .col-md-6.text-md-end {
        text-align: center !important;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
}

.custom-toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}
