/* Global Styles */
:root {
    --primary-color: #1D2939;
    --secondary-color: #D2C4B0;
    --accent-color: #0F2D52;
    --light-color: #F8F9FA;
    --dark-color: #212529;
    --gray-color: #6C757D;
    --border-color: #E9ECEF;
    --success-color: #28A745;
}

body {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
    background-color: #f5f5f5;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(114, 106, 106, 0.05);
}

header .logo h1 {
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    color: #555454;
}

.navbar {
    padding: 1rem 0;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
}

/* Product Container Styles */
.product-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8f8f8;
}

.product-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    border: none;
    position: absolute;
}

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

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(100);
    width: 20px;
    height: 20px;
}

.product-thumbnails {
    gap: 10px;
}

.thumbnail-item {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail-item.active {
    border-color: var(--primary-color);
}

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

/* Product Details Styles */
.product-details {
    height: 100%;
}

.brand-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-color);
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option.active {
    border-color: var(--dark-color);
    transform: scale(1.1);
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: transparent;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover {
    background-color: #f8f9fa;
}

.size-option.active {
    background-color: var(--dark-color);
    color: white;
    border-color: var(--dark-color);
}

.size-guide {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.buy-now-btn {
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.buy-now-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wishlist-btn {
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background-color: #f8f9fa;
    color: #dc3545;
    transform: scale(1.05);
}

/* Model Picks Section Styles */
.section-title {
    position: relative;
    font-weight: 700;
    margin-bottom: 2rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Enhanced Creative Card Styles for Model Picks */
.model-pick-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.model-pick-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.model-pick-card:hover .card-image::before {
    opacity: 1;
}

.card-image img {
    transition: transform 0.8s ease;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

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

.card-info {
    padding: 1.25rem;
    position: relative;
    transition: all 0.3s ease;
    background-color: white;
}

.model-pick-card:hover .card-info {
    background-color: #f8f9fa;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.model-pick-card:hover .card-title {
    color: var(--accent-color);
}

.card-description {
    color: var(--gray-color);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.price {
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.model-pick-card:hover .price {
    color: var(--accent-color);
}

.rating {
    color: #ffc107;
}

.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 2;
}

.model-pick-card .wishlist-btn {
    width: 36px;
    height: 36px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.9;
    z-index: 2;
}

.model-pick-card .wishlist-btn:hover {
    color: #dc3545;
    transform: scale(1.2) rotate(10deg);
}

/* Quick View Button */
.quick-view-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: var(--dark-color);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0;
}

.model-pick-card:hover .quick-view-btn {
    bottom: 20px;
    opacity: 1;
}

.quick-view-btn:hover {
    background-color: var(--dark-color);
    color: white;
}

/* Checkout Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

.order-summary {
    border: 1px solid var(--border-color);
}

/* Updated Checkout Form Styles */
.checkout-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.checkout-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.form-control {
    border-radius: 4px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(29, 41, 57, 0.1);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    background-color: #f1f3f5;
}

.payment-option.active {
    border-color: var(--primary-color);
    background-color: rgba(29, 41, 57, 0.05);
}

.payment-option input[type="radio"] {
    margin-right: 1rem;
}

.payment-option-label {
    font-weight: 500;
    margin-bottom: 0;
}

.payment-option-description {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Confirmation Modal Styles */
#confirmationModal .fa-circle-check {
    animation: checkmark 0.8s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 991.98px) {
    .product-container {
        padding: 1rem;
    }
    
    .product-details {
        margin-top: 1.5rem;
    }
    
    .size-options {
        justify-content: center;
    }
    
    .size-option {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767.98px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .model-pick-card .card-image img {
        height: 250px;
    }
    
    .checkout-section {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .product-container {
        padding: 0.75rem;
    }
    
    .product-title {
        font-size: 1.25rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
    
    .size-option {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .model-pick-card .card-image img {
        height: 200px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-header, .modal-footer {
        padding: 1rem;
    }
    
    .checkout-section-title {
        font-size: 1.1rem;
    }
    
    .form-control {
        padding: 0.6rem 0.75rem;
    }
}
/* Container & Tabs */
.container {
    max-width: 960px;
    margin: auto;
}

/* Tabs */
.nav-tabs .nav-link {
    font-weight: 600;
    color: #333;
    border: none;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}
.nav-tabs .nav-link.active {
    color: #000;
    border-bottom: 3px solid #000;
}
.tab-content {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Overall Rating Section */
.review-summary {
    background: #fefefe;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rating-number {
    font-size: 3rem;
    font-weight: bold;
    color: #111;
}

.stars i {
    color: #f5c518;
    font-size: 1.3rem;
}

.review-count {
    font-size: 0.95rem;
    color: #666;
}

/* Ratings Breakdown */
.rating-breakdown .rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.rating-breakdown .progress {
    flex-grow: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}
.rating-breakdown .progress-bar {
    background-color: #ffc107;
}

/* Review Items */
.review-item {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: 0.3s ease-in-out;
}
.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.07);
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.reviewer-info h5 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.review-rating i {
    color: #f5c518;
    font-size: 1rem;
}
.review-date {
    font-size: 0.85rem;
    color: #999;
}
.review-text {
    margin-top: 10px;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

/* Load More Button */
.btn-outline-primary {
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-outline-primary:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* --- FIX: REMOVE BLUE BORDER ON CLICK --- */
/* This removes the blue glow (box-shadow) and outline that appears on elements when you click them.
   It's generally not recommended to remove focus styles completely for accessibility reasons,
   as it helps keyboard users see which element is active.
*/
a:focus,
button:focus,
.btn:focus,
input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.nav-link:focus,
.nav-tabs .nav-link:focus,
.dropdown-item:focus {
    outline: none !important;
    box-shadow: none !important;
}
