/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background: linear-gradient(135deg, #f9f9f9, #e0e0e0);
}

h1, h2, h3 {
    font-weight: 700;
    color: #222;
    text-align: center;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: #2196F3;
    transform: translateY(-2px);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2196F3;
    color: white;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: #1976D2;
    transform: translateY(-3px);
}


/* Header */
.sticky-header {
    position: sticky;
    top: 0;
    background: rgba(40, 40, 40, 0.9); /* Semi-transparent dark background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure header stays on top */
    backdrop-filter: blur(10px);
    padding: 10px 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #2196F3;
}

/* logo for Header CSS */

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 40px; /* Adjust the width to your liking */
    height: 40px; /* Adjust the height to your liking */
    margin-right: 10px; /* Add some space between the logo and the text */
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #2196F3;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px; /* Space between links */
    margin: 0;
    padding: 0;
}

.nav-links li a {
    padding: 10px 15px;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

.nav-links li a:hover {
    background: rgba(255, 255, 255, 0.1); /* Light background on hover */
    color: #2196F3;
}

/* Cart Icon */
.cart-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-icon a {
    font-size: 20px;
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.cart-icon a:hover {
    color: #2196F3;
    transform: translateY(-2px);
}

.cart-icon #cart-count {
    background: #2196F3;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none; /* Hide by default */
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #2196F3;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show menu toggle on mobile */
    }

    .nav-links {
        display: none; /* Hide nav-links by default on mobile */
        flex-direction: column;
        gap: 10px;
        width: 100%;
        background: rgba(40, 40, 40, 0.9);
        padding: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        z-index: 999;
    }

    .nav-links.active {
        display: flex; /* Show nav-links when active */
    }

    .nav-links li a {
        width: 100%;
        text-align: center;
    }
}


/* Hero Section */
.hero {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    margin-top: 60px; /* Add margin to prevent overlap with header */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    color: white;
    margin: 0;
}

.hero p {
    font-size: 18px;
    margin: 10px 0 20px;
}

.shop-now-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.hero .btn {
    animation: fadeIn 3s ease-in-out;
}


/* Testimonials Section */
.testimonials {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.testimonials h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #222;
}

.testimonial-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
    text-align: left;
}

.testimonial-text {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.author-location {
    font-size: 14px;
    color: #777;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonial-container {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-card {
        max-width: 100%;
    }
}


/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Smaller product cards */
    gap: 20px;
    padding: 20px;
}

.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 150px; /* Smaller image height */
    object-fit: cover;
}

.product-card h3 {
    margin: 10px 0;
    font-size: 18px; /* Smaller font size */
    text-align: center;
}

.product-card p {
    padding: 0 10px 10px;
    color: #555;
    text-align: center;
    font-size: 14px; /* Smaller font size */
}

.product-options {
    padding: 0 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-options label {
    font-weight: 600;
    color: #333;
    font-size: 14px; /* Smaller font size */
}

.product-options input,
.product-options select {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    font-size: 14px; /* Smaller font size */
}

.product-options input:focus,
.product-options select:focus {
    border-color: #2196F3;
    outline: none;
}

.product-card .btn {
    margin: 10px;
    width: calc(100% - 20px);
    font-size: 14px; /* Smaller font size */
}


/* Footer */
footer {
    background: #222;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px; /* Adjust the max-width to a smaller value */
    margin: 0 auto;
}

.footer-section {
    text-align: left;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2196F3;
}

.footer-section form {
    display: flex;
    gap: 10px;
}

.footer-section input {
    padding: 10px;
    border: none;
    border-radius: 4px;
    width: 100%;
    max-width: 200px;
}

.footer-section button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer-section button:hover {
    background: #1976D2;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #bbb;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


/* Cart Page Styles */
.cart {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cart h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
}

/* Cart Items Container */
#cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Reduced spacing between cart items */
}

.cart-item {
    display: flex;
    align-items: center; /* Center items vertically */
    border-bottom: 1px solid #ddd;
    padding: 15px; /* Reduced padding */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 120px; /* Reduced height */
    overflow: hidden; /* Prevent content overflow */
}

.cart-item img {
    width: 80px; /* Reduced image size */
    height: 80px;
    object-fit: cover;
    margin-right: 15px; /* Reduced margin */
    border-radius: 8px;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reduced spacing between elements */
}

.cart-item-details h3 {
    margin: 0;
    font-size: 1.2em; /* Slightly smaller font size */
    color: #333;
}

.cart-item-details p {
    margin: 0;
    font-size: 0.9em; /* Slightly smaller font size */
    color: #666;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced spacing between label and input */
}

.quantity-control label {
    font-size: 0.9em; /* Slightly smaller font size */
    color: #333;
}

.quantity-control input {
    width: 50px; /* Reduced input width */
    padding: 4px; /* Reduced padding */
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9em; /* Slightly smaller font size */
}

.btn-remove {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 6px 12px; /* Reduced padding */
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8em; /* Slightly smaller font size */
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align remove button to the top */
}

.btn-remove:hover {
    background-color: #ff1a1a;
}

.cart-summary {
    margin-top: 20px; /* Reduced margin */
    padding: 15px; /* Reduced padding */
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-summary h3 {
    margin-top: 0;
    font-size: 1.3em; /* Slightly smaller font size */
    color: #333;
}

.cart-summary p {
    margin: 8px 0; /* Reduced margin */
    font-size: 1em; /* Slightly smaller font size */
    color: #555;
}

.cart-summary .btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #28a745;
    color: white;
    padding: 10px; /* Reduced padding */
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px; /* Reduced margin */
    font-size: 1em; /* Slightly smaller font size */
    transition: background-color 0.3s ease;
}

.cart-summary .btn:hover {
    background-color: #218838;
}

/* Thank You Page Styles */
.thank-you {
    padding: 60px 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 40px auto;
}

.thank-you h1 {
    font-size: 36px;
    color: #28a745; /* Green color for success */
    margin-bottom: 20px;
}

.thank-you p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.thank-you .btn {
    background-color: #2196F3;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.thank-you .btn:hover {
    background-color: #1976D2;
}

/* Checkout Button Styles */
#checkout-button {
    background-color: #28a745; /* Green color for checkout */
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

#checkout-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* Loading State for Checkout Button */
#checkout-button.loading {
    background-color: #6c757d; /* Gray color for disabled state */
    cursor: not-allowed;
    position: relative;
}

#checkout-button.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* About Page Formatting */
.about {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
}

.section-description {
    font-size: 18px;
    margin-bottom: 40px;
    text-align: center;
}

.mission-container, .turban-styles-container, .turban-materials-container, .safa-styles-container, .safa-materials-container {
    margin-bottom: 60px;
}

.subsection-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.subsection-description {
    font-size: 16px;
    margin-bottom: 20px;
}

.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.styled-list li {
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.styled-list li:last-child {
    border-bottom: none;
}

.table-container {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.comparison-table th, .comparison-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.comparison-table th {
    background-color: #f0f0f0;
}

/* Tying Page CSS */
.tying-services {
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.background-banner {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.background-banner h1 {
    font-size: 36px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.services-content {
    padding: 20px;
    text-align: center;
}

.section-description {
    font-size: 18px;
    margin-bottom: 40px;
}

.services-list-container, .booking-container {
    margin-bottom: 40px;
}

.subsection-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.subsection-description {
    font-size: 16px;
    margin-bottom: 20px;
}

.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.styled-list li {
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.styled-list li:last-child {
    border-bottom: none;
}

/* Contact Page CSS */
.contact {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-info-container {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-info-container p {
    margin-bottom: 20px;
}

/* Return Page CSS */
.returns {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    margin-bottom: 40px;
}

.return-policy-container, .return-process-container {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.subsection-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.styled-list li {
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.styled-list li:last-child {
    border-bottom: none;
}
