* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* Notice Bar */

.notice-bar {
    background: #111;
    color: #fff;
    overflow: hidden;
    height: 38px;
    display: flex;
    align-items: center;
}

.notice-content {
    display: flex;
    gap: 15px;
    white-space: nowrap;
    animation: movingNotice 15s linear infinite;
}

.notice-content span:first-child {
    font-weight: bold;
}

@keyframes movingNotice {

    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }

}

/* Navbar */

.site-header {
    position: relative;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
}

.navbar-inner {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    font-size: 27px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a:hover {
    text-decoration: underline;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-link {
    font-weight: bold;
}

.login-link {
    font-weight: 600;
    color: #111;
    padding: 8px 16px;
    border: 1px solid #111;
    border-radius: 50px;
    transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.login-link:hover {
    background: #111;
    color: #fff;
    text-decoration: none;
}

/* Search Box (now floating on the hero) */

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.search-box:hover,
.search-box:focus-within {
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.search-box input {
    flex: 1;
    min-width: 220px;
    padding: 12px 18px;
    border: none;
    border-radius: 50px;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.search-box button {
    padding: 12px 22px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.search-box button:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.05);
}

.search-box button:active {
    transform: scale(0.97);
}

/* Profile Dropdown */

.profile-dropdown {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.profile-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    transition: border-color 0.2s ease;
}

.profile-btn:hover .profile-img {
    border-color: #111;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
    display: none;
    z-index: 10000;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #111;
    font-size: 15px;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

.profile-dropdown:hover .dropdown-menu,
.profile-dropdown:focus-within .dropdown-menu {
    display: block;
}


/* Hero */

.hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;

    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url("../images/hero.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #fff;
}

.hero-search {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    z-index: 5;
}

.hero-content {
    padding: 60px 0;
}

.hero-text {
    max-width: 600px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Sections */

.categories-section,
.products-section {
    padding: 60px 0;
}

.categories-section h2,
.products-section h2 {
    text-align: center;
    margin-bottom: 35px;
}


/* Categories */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.category-card {
    background: #fff;
    padding: 40px 25px;
    text-align: center;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}


/* Products */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
}

.product-card > a {
    display: block;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #eee;
}

.product-card > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-info {
    padding: 18px;
}

.product-info h3 {
    margin-bottom: 10px;
}

.product-info p {
    color: #666;
    margin-bottom: 12px;
}

.product-buttons {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}

.cart-btn {
    padding: 12px;
    border: 1px solid #111;
    background: #fff;
    cursor: pointer;
}


/* Footer */

.site-footer {
    background: #111;
    color: #fff;
    margin-top: 50px;
}

.footer-content {
    padding: 50px 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.footer-content h3,
.footer-content h4 {
    margin-bottom: 15px;
}

.footer-content a {
    display: block;
    margin-bottom: 8px;
}

.copyright {
    text-align: center;
    padding: 18px;
    border-top: 1px solid #333;
}


/* Responsive */

@media (max-width: 900px) {

    .navbar-inner {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .hero h1 {
        font-size: 34px;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .nav-actions {
        width: 100%;
    }

    .search-box {
        flex: 1;
    }

    .search-box input {
        width: 100%;
    }

}

.product-image {
    height: 240px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info small {
    display: block;
    margin-bottom: 8px;
    color: #777;
}

.product-info h3 {
    margin-bottom: 10px;
}

.product-info h3 a:hover {
    text-decoration: underline;
}

.product-info strong {
    display: block;
    font-size: 20px;
    margin-top: 8px;
}

.product-info del {
    color: #888;
    font-size: 14px;
}

.no-products {
    text-align: center;
    padding: 50px;
    background: #fff;
    border: 1px solid #ddd;
}

/* Product Details */

.product-details {
    padding: 60px 0;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-details-image img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 8px;
}

.product-details-info h1 {
    font-size: 38px;
    margin: 10px 0 20px;
}

.product-category {
    font-size: 14px;
    color: #777;
    text-transform: uppercase;
}

.product-short-description {
    font-size: 17px;
    line-height: 1.6;
}

.product-price {
    margin: 25px 0;
}

.current-price {
    font-size: 28px;
    font-weight: bold;
}

.old-price {
    font-size: 18px;
    color: #888;
    text-decoration: line-through;
    margin-right: 12px;
}

.product-stock {
    margin-bottom: 20px;
}

.quantity-box {
    margin-bottom: 20px;
}

.quantity-box input {
    width: 70px;
    padding: 10px;
    margin-left: 10px;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
}

.order-btn {
    background: #c00;
}

.product-description {
    border-top: 1px solid #ddd;
    padding-top: 25px;
}

.product-description h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.product-description p {
    line-height: 1.8;
}


/* Mobile */

@media (max-width: 768px) {

    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-details-info h1 {
        font-size: 30px;
    }

    .product-actions {
        flex-direction: column;
    }

}

/* Cart */

.cart-section {
    padding: 60px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.cart-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 15px;
}

.cart-image {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    background: #eee;
}

.cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-info h3 {
    margin-bottom: 10px;
}

.cart-info strong {
    display: block;
    margin-top: 10px;
    font-size: 18px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 20px;
}

.remove-item {
    display: inline-block;
    margin-top: 12px;
    color: #c00;
}

.cart-summary {
    background: #fff;
    border: 1px solid #ddd;
    padding: 25px;
    height: fit-content;
}

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    margin: 18px 0;
}

.summary-total {
    font-size: 21px;
}

.checkout-btn {
    display: block;
    text-align: center;
    margin-top: 25px;
}

.empty-cart {
    text-align: center;
    background: #fff;
    padding: 60px 20px;
    margin-top: 30px;
}


/* Mobile */

@media (max-width: 768px) {

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        padding: 15px;
    }

    .cart-image {
        width: 100px;
        height: 100px;
    }

}

/* Checkout */

.checkout-section {
    padding: 60px 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
    margin-top: 30px;
}

.checkout-form,
.checkout-summary {
    background: #fff;
    border: 1px solid #ddd;
    padding: 30px;
}

.checkout-form h2,
.checkout-summary h2 {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.payment-methods {
    margin-bottom: 25px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ddd;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
}

.payment-option input {
    width: auto;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.checkout-item p {
    margin: 5px 0 0;
    color: #777;
}

.checkout-summary .summary-row,
.checkout-summary .summary-total {
    display: flex;
    justify-content: space-between;
    margin: 18px 0;
}

.checkout-summary .summary-total {
    font-size: 21px;
}

.place-order-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
}


/* Mobile */

@media (max-width: 768px) {

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-form,
    .checkout-summary {
        padding: 20px;
    }

}

/* Order Success */

.order-success {
    padding: 80px 0;
}

.success-box {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    padding: 50px 30px;
}

.success-box h1 {
    margin-bottom: 15px;
}

.order-number {
    margin: 30px 0;
    padding: 20px;
    background: #f5f5f5;
}

.order-number span {
    display: block;
    margin-bottom: 8px;
}

.order-number strong {
    font-size: 24px;
}
.cart-count {
    color: #e60000;
    font-weight: bold;
}

/* Order Success Details */

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
}

.success-details {
    margin: 30px auto;
    max-width: 500px;
    border-top: 1px solid #ddd;
}

.success-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.success-row span {
    color: #666;
}

.success-row strong {
    text-align: right;
}

.success-total {
    font-size: 20px;
    font-weight: bold;
    border-top: 2px solid #222;
}

.success-message {
    margin: 25px 0;
    line-height: 1.6;
}

/* Payment Instructions */

.payment-instructions {
    margin-top: 20px;
}


.payment-info {
    display: none;
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 18px;
    margin-bottom: 20px;
    line-height: 1.7;
}


.payment-info strong {
    font-size: 17px;
}


.payment-info p {
    margin: 8px 0;
}

/* Order Filters */

.order-filters {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.order-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.order-filters input,
.order-filters select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.order-filters input {
    min-width: 280px;
}

.order-filters select {
    min-width: 180px;
}

.order-filters .admin-btn {
    border: none;
    cursor: pointer;
}


/* Mobile */

@media (max-width: 700px) {

    .order-filters form {
        flex-direction: column;
    }

    .order-filters input,
    .order-filters select,
    .order-filters .admin-btn {
        width: 100%;
    }

}

/* Contact Page */

.contact-section {
    padding: 60px 0;
}

.contact-title {
    text-align: center;
    margin-bottom: 40px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.contact-info,
.contact-form {
    background: #fff;
    border: 1px solid #ddd;
    padding: 30px;
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 20px;
}

.contact-info > p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.contact-item {
    border-top: 1px solid #eee;
    padding: 15px 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 6px;
}

.contact-item p {
    color: #666;
    margin: 4px 0;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    width: auto;
}


/* Contact Mobile */

@media (max-width: 768px) {

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 20px;
    }

}

