* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #111;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    cursor: pointer;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* Header */

.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 26px;
    font-weight: 700;
}

.navbar {
    display: flex;
    gap: 30px;
}

.navbar a {
    font-size: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions button {
    background: none;
    font-size: 18px;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;

    width: 18px;
    height: 18px;

    background: #111;
    color: white;

    border-radius: 50%;

    font-size: 11px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Hero */

.hero {
    min-height: 600px;

    background: #f2f2f2;

    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-label {
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 600;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.05;
    margin: 20px 0;
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.primary-btn {
    display: inline-block;

    background: #111;
    color: white;

    padding: 15px 30px;

    border-radius: 4px;
}


/* Sections */

.categories,
.products {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading span {
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 600;
}

.section-heading h2 {
    font-size: 40px;
    margin-top: 12px;
}


/* Categories */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    text-align: center;
}

.category-image {
    height: 250px;
    background: #eee;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
}


/* Products */

.products {
    background: #f8f8f8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
}

.product-image {
    height: 300px;
    background: #eee;

    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
}

.price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.add-cart-btn {
    background: #111;
    color: white;

    padding: 11px 18px;

    border-radius: 4px;
}


/* Footer */

.footer {
    background: #111;
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-content h2,
.footer-content h3 {
    margin-bottom: 20px;
}

.footer-content p {
    color: #aaa;
    line-height: 1.6;
}

.footer-content a {
    display: block;
    color: #aaa;
    margin-bottom: 10px;
}

.copyright {
    border-top: 1px solid #333;
    margin-top: 50px;
    padding-top: 20px;

    text-align: center;
    color: #888;
    font-size: 14px;
}

/* Cart Page */

.cart-page {
    padding: 80px 0 100px;
}


.cart-layout {
    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 40px;

    align-items: start;
}


/* Cart Items */

.cart-items {
    display: flex;

    flex-direction: column;

    gap: 15px;
}


.cart-item {
    background: #fff;

    border: 1px solid #eee;

    padding: 20px;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr auto;

    align-items: center;

    gap: 20px;
}


.cart-product {
    display: flex;

    align-items: center;

    gap: 20px;
}


.cart-product img {
    width: 100px;

    height: 100px;

    object-fit: cover;

    background: #eee;
}


.cart-product h3 {
    margin-bottom: 10px;
}


.cart-product p {
    font-weight: bold;
}


/* Quantity */

.quantity-control {
    display: flex;

    align-items: center;

    gap: 12px;
}


.quantity-control button {
    width: 32px;

    height: 32px;

    background: #eee;

    font-size: 18px;
}


.quantity-control span {
    min-width: 20px;

    text-align: center;

    font-weight: bold;
}


/* Remove */

.remove-btn {
    background: none;

    color: #d00;

    font-size: 14px;
}


/* Summary */

.cart-summary {
    background: #f7f7f7;

    padding: 30px;

    position: sticky;

    top: 20px;
}


.cart-summary h2 {
    margin-bottom: 25px;
}


.summary-row,
.summary-total {
    display: flex;

    justify-content: space-between;

    margin-bottom: 20px;
}


.summary-total {
    font-size: 20px;

    margin-top: 20px;
}


.cart-summary hr {
    border: none;

    border-top: 1px solid #ddd;
}


.checkout-btn {
    width: 100%;

    background: #111;

    color: white;

    padding: 15px;

    margin-top: 20px;

    font-size: 15px;
}


.continue-shopping {
    display: block;

    text-align: center;

    margin-top: 20px;

    font-size: 14px;
}


/* Empty Cart */

.empty-cart {
    text-align: center;

    padding: 80px 20px;

    border: 1px solid #eee;
}


.empty-cart p {
    margin: 15px 0 25px;

    color: #666;
}


.empty-cart a {
    display: inline-block;

    background: #111;

    color: white;

    padding: 12px 25px;
}

/* Shop Page */

.shop-page {
    padding: 80px 0 100px;
}


/* Shop Controls */

.shop-controls {
    margin-bottom: 50px;
}


.shop-search {
    margin-bottom: 25px;
}


.shop-search input {
    width: 100%;

    padding: 15px 20px;

    border: 1px solid #ddd;

    outline: none;

    font-size: 15px;
}


.shop-search input:focus {
    border-color: #111;
}


/* Category Filter */

.category-filter {
    display: flex;

    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;
}


.filter-btn {
    background: #f1f1f1;

    padding: 11px 22px;

    border-radius: 4px;

    font-size: 14px;
}


.filter-btn.active {
    background: #111;

    color: white;
}


/* Shop Product Grid */

.shop-product-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}


.shop-product-grid .product-card {
    overflow: hidden;

    border: 1px solid #eee;
}


.shop-product-grid .product-image {
    height: 320px;
}


.shop-product-grid .product-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


/* No Products */

.no-products {
    grid-column: 1 / -1;

    text-align: center;

    padding: 80px 20px;
}


.no-products h2 {
    margin-bottom: 10px;
}


.no-products p {
    color: #666;
}

/* Product Details */

.product-details-page {
    padding: 100px 0;
}


.product-details {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}


.product-detail-image {
    width: 100%;

    height: 550px;

    background: #f5f5f5;
}


.product-detail-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


.product-detail-info {
    max-width: 500px;
}


.product-category {
    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: #777;
}


.product-detail-info h1 {
    font-size: 48px;

    line-height: 1.1;

    margin: 15px 0 20px;
}


.product-detail-price {
    font-size: 26px;

    font-weight: bold;

    margin-bottom: 25px;
}


.product-description {
    color: #666;

    line-height: 1.8;

    margin-bottom: 30px;
}


/* Quantity */

.detail-quantity {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-bottom: 25px;
}


.detail-quantity button {
    width: 40px;

    height: 40px;

    background: #eee;

    font-size: 20px;
}


.detail-quantity span {
    font-weight: bold;

    min-width: 20px;

    text-align: center;
}


/* Add Cart */

.detail-add-cart {
    width: 100%;

    padding: 16px;

    background: #111;

    color: white;

    font-size: 16px;

    margin-bottom: 20px;
}


.back-to-shop {
    display: inline-block;

    font-size: 14px;
}


/* Product Not Found */

.product-not-found {
    text-align: center;

    padding: 100px 20px;
}


.product-not-found h2 {
    margin-bottom: 15px;
}


.product-not-found p {
    color: #666;

    margin-bottom: 25px;
}


.product-not-found a {
    display: inline-block;

    background: #111;

    color: white;

    padding: 12px 25px;
}

/* Product Gallery */

.product-gallery {
    width: 100%;
}


.main-product-image {
    width: 100%;
    height: 500px;
    background: #f5f5f5;
    overflow: hidden;
}


.main-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}


.thumbnail {
    width: 80px;
    height: 80px;
    padding: 0;
    border: 2px solid #111;
    background: #f5f5f5;
    overflow: hidden;
}


.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Product Options */

.product-option {
    margin-bottom: 20px;
}


.product-option label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}


.product-option select {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    background: white;
    font-size: 14px;
    outline: none;
}


.product-option select:focus {
    border-color: #111;
}

/* =========================
   CHECKOUT PAGE
========================= */

.checkout-header {
    text-align: center;
    padding: 70px 20px 45px;
}

.checkout-header span {
    font-size: 12px;
    letter-spacing: 5px;
    font-weight: 600;
}

.checkout-header h1 {
    font-size: 38px;
    margin-top: 8px;
}


.checkout-container {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;

    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}


.checkout-form,
.checkout-summary {
    border: 1px solid #e5e5e5;
    padding: 30px;
}


.checkout-form h2,
.checkout-summary h2 {
    margin-top: 0;
    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%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}


.form-group textarea {
    min-height: 110px;
    resize: vertical;
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: #111;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}


.payment-title {
    margin-top: 35px !important;
}


.payment-option {
    border: 1px solid #ddd;
    padding: 18px;
    margin-bottom: 25px;
}


.payment-option label {
    font-weight: 600;
}


.payment-option p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #666;
}


.place-order-btn {
    width: 100%;
    border: none;
    background: #111;
    color: white;
    padding: 16px;
    font-size: 15px;
    cursor: pointer;
}


.place-order-btn:hover {
    background: #222;
}


.place-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}



/* Checkout Products */

.checkout-product {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    padding: 15px 0;

    border-bottom: 1px solid #e5e5e5;
}


.checkout-product-info {
    display: flex;
    gap: 14px;
}


.checkout-product-info img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}


.checkout-product h3 {
    margin: 0 0 6px;
    font-size: 15px;
}


.checkout-product p {
    margin: 2px 0;
    font-size: 12px;
    color: #666;
}


.checkout-product > strong {
    white-space: nowrap;
}


.summary-line,
.summary-total {
    display: flex;
    justify-content: space-between;
}


.summary-line {
    padding: 15px 0;
}


.summary-total {
    border-top: 1px solid #ddd;
    margin-top: 10px;
    padding-top: 20px;
    font-size: 20px;
}


.checkout-empty {
    text-align: center;
    padding: 20px 0;
}


.checkout-empty a {
    color: #111;
}



@media (max-width: 768px) {

    .checkout-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }


    .form-row {
        grid-template-columns: 1fr;
    }


    .checkout-header h1 {
        font-size: 30px;
    }

}

/* Checkout Button */

.checkout-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #111;
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 16px;
    font-size: 15px;
    margin-top: 25px;
}

.checkout-btn:hover {
    background: #222;
}

/* =========================
   ORDER SUCCESS PAGE
========================= */

.success-page {
    max-width: 700px;
    margin: 80px auto;
    padding: 60px 30px;
    text-align: center;
    border: 1px solid #e5e5e5;
}


.success-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #111;
    border-radius: 50%;

    font-size: 35px;
    font-weight: 700;
}


.success-label {
    font-size: 11px;
    letter-spacing: 5px;
    font-weight: 600;
}


.success-page h1 {
    font-size: 38px;
    margin: 15px 0;
}


.success-message {
    max-width: 520px;
    margin: 0 auto 35px;

    color: #666;
    line-height: 1.7;
}


.order-details {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;

    padding: 20px 0;
    margin-bottom: 30px;
}


.order-details p {
    display: flex;
    justify-content: space-between;

    max-width: 400px;
    margin: 12px auto;
}


.success-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}


.success-btn {
    display: inline-block;

    background: #111;
    color: #fff;

    padding: 14px 25px;

    text-decoration: none;
}


.success-btn:hover {
    background: #222;
}


.back-home-btn {
    display: inline-block;

    border: 1px solid #111;
    color: #111;

    padding: 14px 25px;

    text-decoration: none;
}


.back-home-btn:hover {
    background: #111;
    color: #fff;
}


@media (max-width: 600px) {

    .success-page {
        margin: 40px 20px;
        padding: 40px 20px;
    }


    .success-page h1 {
        font-size: 28px;
    }


    .success-actions {
        flex-direction: column;
    }


    .order-details p {
        max-width: 100%;
    }

}

/* ==========================================
   ADMIN PANEL BUTTON
   ========================================== */

.admin-panel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    background: #111;
    color: #fff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    border-radius: 6px;

    white-space: nowrap;

    transition: 0.2s ease;
}


.admin-panel-btn:hover {
    background: #333;
    color: #fff;
}