/* ======================= */
/* MEN'S PAGE SPECIFIC STYLES */
/* ======================= */

/* This file contains only page-specific overrides */
/* Main styles are inherited from ../style.css */

/* Hero section adjustments for selection pages */
.hero-section {
    padding: 60px 0;
    background-color: var(--off-white);
}

.section-title-wrapper p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-top: 20px;
}

/* Product grid section - use dark background like homepage */
.new-arrival-section {
    background-color: var(--primary-dark);
    padding: 80px 0;
    color: var(--text-light);
}

/* Ensure product cards display properly */
.product-card {
    display: flex !important;
    flex-direction: column !important;
}

.product-info {
    flex-grow: 1 !important;
}

/* Shop Now button styling for product cards */
.shop-now-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: calc(100% - 32px) !important;
    padding: 15px 30px !important;
    margin: 0 16px 16px 16px !important;
    background-color: var(--primary-dark) !important;
    color: #FFFFFF !important;
    border: 1px solid transparent !important;
    border-radius: 50px !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.shop-now-btn:hover {
    background-color: #333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.3) !important;
}

.shop-now-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(26, 26, 26, 0.2) !important;
}

.shop-now-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ============================================
   CHECKOUT POPUP STYLES
   ============================================ */

.checkout-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-popup-overlay.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.checkout-popup {
    background: #FFFFFF;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-popup-overlay.show .checkout-popup {
    transform: scale(1);
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    background: none;
    border: none;
    width: auto;
    height: auto;
    border-radius: 0;
}

.popup-close-btn:hover {
    color: #333;
    background: none;
    transform: none;
}

.checkout-popup h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 10px 0 15px 0;
}

.popup-subtitle {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px; /* Prevent iOS zoom */
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Coupon Input Group */
.coupon-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.apply-coupon-btn {
    background-color: var(--primary-gold);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    min-height: 44px;
}

.apply-coupon-btn:hover {
    background-color: var(--primary-gold-dark);
}

.apply-coupon-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.coupon-message {
    margin-top: 8px;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 4px;
    display: none;
}

.coupon-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.coupon-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.make-payment-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    background-color: var(--primary-dark);
    color: #FFFFFF;
    font-family: var(--font-body);
    margin-top: 10px;
    min-height: 44px;
}

.make-payment-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.4);
}

.make-payment-btn:active {
    transform: translateY(0);
}

.make-payment-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Validation styles */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #27ae60;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet styles */
@media (max-width: 992px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .new-arrival-section {
        padding: 60px 0;
    }
    
    .section-title-wrapper h1 {
        font-size: 2.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .section-title-wrapper {
        text-align: center;
        padding: 0 20px;
    }
    
    .section-title-wrapper h1 {
        font-size: 2rem;
    }
    
    .section-title-wrapper p {
        font-size: 1rem;
    }
    
    .new-arrival-section {
        padding: 40px 0;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .product-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .shop-now-btn {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        margin: 0 16px 16px 16px !important;
    }
    
    /* Checkout popup mobile fixes */
    .checkout-popup {
        padding: 25px 20px;
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }

    .checkout-popup h2 {
        font-size: 1.6rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px; /* Prevent iOS zoom */
    }

    .make-payment-btn {
        padding: 15px 24px;
        font-size: 1rem;
    }

    .coupon-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .coupon-input-group input {
        margin-bottom: 0;
    }
    
    .apply-coupon-btn {
        width: 100%;
    }
}

/* Small mobile styles */
@media (max-width: 576px) {
    .section-title-wrapper h1 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 20px 0;
    }
    
    .new-arrival-section {
        padding: 30px 0;
    }
    
    .product-grid {
        padding: 0 15px;
        gap: 15px;
    }
    
    .checkout-popup {
        padding: 20px 15px;
        width: calc(100% - 20px);
        margin: 10px;
    }

    .checkout-popup h2 {
        font-size: 1.4rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevent iOS zoom */
    }

    .make-payment-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .shop-now-btn {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .product-grid {
        padding: 0 10px;
    }
    
    .checkout-popup {
        width: calc(100% - 10px);
        margin: 5px;
        padding: 15px 10px;
    }
}