/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Custom CSS */
.link-none{
    text-decoration: none;
}
input, textarea{
    outline: none;
}

a {
    text-decoration: none;
    color: #007bff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: flex;
    margin: 0 -10px;
}

.form-row .form-group {
    flex: 1;
    padding: 0 10px;
}

/* Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 28px;
    color: #007bff;
}

.search-box {
    flex: 1;
    margin: 0 30px;
}

.search-box form {
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.search-box button {
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.user-actions a {
    display: flex;
    align-items: center;
    color: #333;
    font-weight: 600;
}

.user-actions a i {
    margin-right: 5px;
}

.btn-cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav {
    border-top: 1px solid #ddd;
}

.main-nav ul {
    display: flex;
    justify-content: center;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover {
    color: #007bff;
}

/* Hero Section */
.hero {
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: white;
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Featured Products Section */
.featured-products {
    padding: 60px 0;
}

.featured-products h2,
.categories h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* .product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

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

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.price {
    color: #007bff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
}

.old-price {
    color: #dc3545;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.product-actions .btn {
    padding: 8px 12px;
    font-size: 14px;
} */

/* Categories Section */
.categories {
    padding: 60px 0;
    background-color: #f1f3f5;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 200px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    text-align: center;
}

.category-name a {
    color: white;
    font-weight: 600;
}

/* Footer Styles */
footer {
    background-color: #343a40;
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p {
    margin-bottom: 20px;
}

.contact span {
    display: block;
    margin-bottom: 10px;
}

.socials {
    margin-top: 20px;
}

.socials a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
}

.footer-section.links ul li {
    margin-bottom: 10px;
}

.footer-section.links ul li a {
    color: white;
}

.footer-section.contact-form .text-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
}

.footer-bottom {
    background-color: #212529;
    padding: 20px 0;
    text-align: center;
}

/* Shop Page Styles */
.shop-container {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.products-container {
    flex: 1;
}

.categories-box,
.price-filter {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.categories-box h3,
.price-filter h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.categories-box ul li {
    margin-bottom: 10px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-inputs input {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sorting select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Product Detail Page */
.product-detail {
    padding: 60px 0;
}

/* .product-container {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.product-images {
    width: 50%;
    flex: 1 1 400px;
} */

.main-image {
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top:15px;
    flex-wrap: wrap;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.product-info {
    width: 50%;
    flex: 1 1 400px;
}

.product-info h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 30px;
}

.quantity {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity label {
    margin-right: 10px;
}

.quantity input {
    width: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-add-to-cart {
    padding: 12px 30px;
}

.product-meta {
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.product-meta p {
    margin-bottom: 10px;
}

.product-tabs {
    margin-bottom: 60px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
}

/* Order Detail Page */
.order-detail {
    padding: 60px 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.order-info-card {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.order-info-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.order-items-section {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.order-items-section h2 {
    margin-bottom: 20px;
}

.product-info {
    display: flex;
    align-items: center;
}

.product-image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    margin-right: 15px;
    border-radius: 4px;
}

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

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background-color: #ffeeba;
    color: #856404;
}

.status-processing {
    background-color: #b8daff;
    color: #004085;
}

.status-shipped {
    background-color: #c3e6cb;
    color: #155724;
}

.status-delivered {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.empty-state {
    text-align: center;
    padding: 40px 0;
}

.empty-state i {
    color: #6c757d;
    margin-bottom: 20px;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 18px;
}

/* Responsive fixes for account page */
@media (max-width: 768px) {
    .account-container {
        flex-direction: column;
    }

    .account-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }
}


.tab-btn.active {
    border-bottom-color: #007bff;
    color: #007bff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.related-products h2 {
    margin-bottom: 30px;
    font-size: 24px;
}

/* Cart Page */
.cart {
    padding: 60px 0;
}

.cart h1 {
    margin-bottom: 30px;
}

.cart-container {
    display: flex;
    gap: 30px;
}

.cart-items {
    flex: 1;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.product-info {
    display: flex;
    align-items: center;
}

.product-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
}

.quantity-form input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
}

.cart-summary {
    width: 350px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    align-self: flex-start;
}

.cart-summary h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-row.total {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    font-weight: 700;
    font-size: 18px;
}

.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.empty-cart {
    text-align: center;
    padding: 50px 0;
}

.empty-cart i {
    color: #6c757d;
    margin-bottom: 20px;
}

.empty-cart p {
    margin-bottom: 20px;
    font-size: 18px;
}

/* Checkout Page */
.checkout {
    padding: 60px 0;
}

.checkout h1 {
    margin-bottom: 30px;
}

.checkout-container {
    display: flex;
    gap: 30px;
}

.checkout-form {
    flex: 1;
}

.form-section {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.form-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method {
    display: flex;
    align-items: center;
}

.payment-method input {
    margin-right: 10px;
}

.credit-card-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.order-summary {
    width: 350px;
    align-self: flex-start;
}

.order-summary h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.order-items {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.order-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    margin-right: 15px;
}

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

.item-details {
    flex: 1;
}

.item-details h4 {
    margin-bottom: 5px;
}

.item-total {
    font-weight: 700;
}

.order-total {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Auth Pages (Login/Register) */
.login,
.register {
    padding: 60px 0;
}

.auth-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.auth-form h1 {
    margin-bottom: 30px;
    text-align: center;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #007bff;
}

/* Account Page */
.account {
    padding: 60px 0;
}

.account-container {
    display: flex;
    gap: 30px;
}

.account-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.account-nav {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.account-nav ul li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    color: #333;
    font-weight: 600;
}

.account-nav ul li a.active {
    background-color: #007bff;
    color: white;
}

.account-content {
    flex: 1;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.account-content h2 {
    margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-top {
        flex-direction: column;
        gap: 20px;
    }

    .search-box {
        margin: 15px 0;
        width: 100%;
    }

    .shop-container,
    .product-container,
    .cart-container,
    .checkout-container,
    .account-container {
        flex-direction: column;
    }

    .sidebar,
    .cart-summary,
    .order-summary,
    .account-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
    }

    .product-actions {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
/* Additional Responsive Styles */

/* Base responsiveness improvements */
img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Product cards and grids responsiveness */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-image {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }

    .header-top {
        flex-wrap: wrap;
    }

    .search-box {
        order: 3;
        width: 100%;
        margin: 10px 0;
    }

    .checkout-form .form-row {
        flex-direction: column;
    }

    .checkout-form .form-group {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .price-inputs {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-inputs input {
        width: 100%;
    }

    .auth-form {
        padding: 20px 15px;
    }
}

/* Navigation menu responsiveness */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .main-nav ul.show {
        display: flex;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li a {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
}

.product-detail .product-images {
    flex: 0 0 40%;
}

.product-detail .product-info {
    flex: 0 0 55%;
    padding-left: 5%;
}

.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    gap: 10px;
}

.product-thumbnails .thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid #ddd;
    cursor: pointer;
    overflow: hidden;
}

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

.product-thumbnails .thumbnail.active {
    border-color: #4CAF50;
}

.additional-image {
    display: inline-block;
    margin: 10px;
    position: relative;
}

.delete-image {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
}

.delete-image:hover {
    background: rgba(255, 0, 0, 1);
}

/* Responsive styles for product detail page */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }

    .product-images,
    .product-info {
        width: 100%;
    }

    .product-images {
        margin-bottom: 20px;
    }

    .product-thumbnails {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .product-info h1 {
        font-size: 24px;
    }

    .product-info p {
        font-size: 16px;
    }

    .product-meta p {
        font-size: 14px;
    }

    .tabs-nav {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
        margin-bottom: 10px;
    }
}