/**
 * Custom CSS Styles
 * Silk By Ali E-commerce Website
 */

/* Product Tabs */
.product-tabs-section .card {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-tabs-section .card-header {
    background-color: #f8f9fa;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

.product-tabs-section .card-header button {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    position: relative;
    border: none;
    background: none;
    font-size: 16px;
}

.product-tabs-section .card-header button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #fff;
}

.product-tabs-section .card-header button:focus {
    box-shadow: none;
    outline: none;
}

.product-tabs-section .card-header button .fa-chevron-down {
    transition: transform 0.3s ease;
}

.product-tabs-section .card-header button:not(.collapsed) .fa-chevron-down {
    transform: rotate(180deg);
}

/* Star Rating */
.rating-stars {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
}

.rating-stars i {
    margin-right: 5px;
    transition: color 0.2s;
}

.rating-stars i.hover,
.rating-stars i.active {
    color: #ffc107;
}

.rating-stars i.active {
    color: #ffc107;
}

/* Review Form */
.review-form {
    max-width: 800px;
    margin: 0 auto;
}

.review-form h5 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.review-form label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.review-form .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.review-form .btn-primary {
    padding: 10px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .product-tabs-section .card-header button {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .rating-stars {
        font-size: 20px;
    }
}

/* Global Styles */
:root {
    --primary-color: #e83e8c;
    --secondary-color: #6c757d;
    --accent-color: #f8f9fa;
    --text-color: #333;
    --light-pink: #fce4ec;
    --light-blue: #e3f2fd;
    --off-white: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #c71f70;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #c71f70;
    border-color: #c71f70;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Header Styles */
.top-bar {
    font-size: 14px;
}

.top-bar a {
    color: var(--text-color);
}

.top-bar a:hover {
    color: var(--primary-color);
}

.site-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.search-form .form-control {
    border-radius: 20px 0 0 20px;
    border-right: none;
}

.search-form .btn {
    border-radius: 0 20px 20px 0;
}

.cart-icon, .whatsapp-icon {
    font-size: 22px;
    color: var(--text-color);
    position: relative;
}

.cart-icon:hover, .whatsapp-icon:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar {
    padding: 0;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    max-width: 80%;
    z-index: 1;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Product Card */
.product-card {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-price .old-price {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-weight: normal;
    margin-right: 8px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

/* Category Card */
.category-card {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 25px;
    height: 200px;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

.category-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Testimonials */
.testimonial-card {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    height: 100%;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-meta h5 {
    margin-bottom: 5px;
}

.testimonial-meta p {
    margin-bottom: 0;
    color: var(--secondary-color);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 10px;
}

.testimonial-content {
    font-style: italic;
    color: #555;
}

/* Product Detail */
.product-detail-image {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.product-detail-info {
    padding: 20px;
}

.product-detail-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.product-detail-price {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-detail-price .old-price {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-weight: normal;
    margin-right: 10px;
    font-size: 18px;
}

.product-detail-meta {
    margin-bottom: 20px;
}

.product-detail-meta p {
    margin-bottom: 5px;
}

.product-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-input {
    width: 60px;
    text-align: center;
    margin: 0 10px;
}

.product-description {
    margin-top: 30px;
}

.product-thumbnails {
    display: flex;
    margin-top: 15px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    margin-right: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* Cart Page */
.cart-table th {
    font-weight: 600;
}

.cart-product {
    display: flex;
    align-items: center;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.cart-product-title {
    font-weight: 500;
}

.cart-quantity {
    width: 60px;
    text-align: center;
}

.cart-summary {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.cart-summary-title {
    font-size: 18px;
    margin-bottom: 15px;
}

.cart-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-summary-total {
    font-weight: 600;
    font-size: 18px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Checkout Page */
.checkout-form label {
    font-weight: 500;
}

.checkout-summary {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.payment-methods {
    margin-top: 20px;
}

.payment-method {
    margin-bottom: 15px;
}

/* Account Page */
.account-sidebar {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.account-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-menu li {
    margin-bottom: 10px;
}

.account-menu li a {
    display: block;
    padding: 10px;
    border-radius: 5px;
    color: var(--text-color);
}

.account-menu li a:hover,
.account-menu li a.active {
    background-color: var(--primary-color);
    color: white;
}

.account-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.order-card {
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.order-header {
    background-color: #f9f9f9;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.order-body {
    padding: 15px;
}

.order-products {
    margin-top: 15px;
}

.order-product {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-product:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.order-product-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.order-status-pending {
    background-color: #ffc107;
    color: white;
}

.order-status-processing {
    background-color: #17a2b8;
    color: white;
}

.order-status-shipped {
    background-color: #6610f2;
    color: white;
}

.order-status-delivered {
    background-color: #28a745;
    color: white;
}

.order-status-cancelled {
    background-color: #dc3545;
    color: white;
}

/* Contact Page */
.contact-info {
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
}

.contact-info-content h5 {
    margin-bottom: 5px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
.site-footer {
    color: var(--text-color);
}

.footer-heading {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-color);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #c71f70;
    color: white;
    transform: translateY(-3px);
}

.newsletter-form .form-control {
    border-radius: 20px 0 0 20px;
    border-right: none;
}

.newsletter-form .btn {
    border-radius: 0 20px 20px 0;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

.footer-bottom-links li {
    margin-left: 20px;
}

.footer-bottom-links a {
    color: var(--text-color);
    font-size: 14px;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* WhatsApp Chat Button */
.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-chat a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-chat a:hover {
    transform: scale(1.1);
    color: white;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .product-image {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        height: 400px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-bottom-links li {
        margin: 0 10px;
    }
}
