body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: #fdfcf0;
    color: #3c2f25;
}

/* Unify Header with Home Page Style */
header {
    background: #fdfcf0;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-box img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

header h1 {
    color: #333;
    font-size: 22px;
    margin: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    padding: 2px 20px;
    margin: 0 15px;
}

.search-box input {
    border: none;
    outline: none;
    padding: 8px;
    width: 220px;
    font-size: 14px;
    color: #333;
}

nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav a {
    color: #555;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.nav-icon {
    position: relative;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.cart-count {
    background: #064e3b;
    color: #fdfcf0;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 10px;
    position: absolute;
    top: -8px;
    right: -10px;
    font-weight: bold;
    border: 1px solid #fdfcf0;
}

.order-link {
    display: flex;
    align-items: center;
    gap: 5px;
    #fdfcf0-space: nowrap;
}

.user-name {
    color: #555;
    font-weight: 700;
    margin: 0 10px;
    font-size: 15px;
}

.logout-btn {
    background: #064e3b !important;
    color: #fdfcf0 !important;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s;
}

.logout-btn:hover {
    background: #059669 !important;
    transform: scale(1.05);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    z-index: 1001;
    border-radius: 8px;
    top: 100%;
    padding: 5px 0;
}

.dropdown-content a {
    color: black !important;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    margin: 0;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-content.show-dropdown {
    display: block !important;
}

.cart-count {
    background: red;
    color: #555;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 11px;
    vertical-align: top;
    margin-left: -5px;
}

.search-box input {
    border: none;
    padding: 6px 8px;
    outline: none;
    width: 120px;
    font-size: 12px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
}

/* Hero / Heading strip */

.page-body {
    padding-bottom: 50px;
}

.hero-strip {
    text-align: center;
    padding: 35px 10px 10px;
}

.hero-strip.small {
    padding-bottom: 0;
}

.hero-title {
    font-size: 22px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 13px;
    color: #8f7d6b;
}

/* Product grid */

.product-grid {
    width: 90%;
    margin: 30px auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: #f4ede7;
    padding: 25px 25px 30px;
    text-align: center;
}

.product-card img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    background: #fdfcf0;
    padding: 10px;
}

.product-category {
    margin-top: 16px;
    font-size: 12px;
    color: #9d8f84;
}

.product-title {
    margin: 6px 0;
    font-size: 16px;
    letter-spacing: 0.08em;
}

.product-price {
    margin-bottom: 10px;
    color: #c09b62;
    font-weight: 600;
}

.add-btn {
    padding: 10px 28px;
    background: #c09b62;
    border: none;
    color: #fdfcf0;
    letter-spacing: 0.08em;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
}

.add-btn.large {
    padding: 12px 32px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.details-link {
    font-size: 12px;
    color: #3c2f25;
}

.empty-text {
    text-align: center;
    margin-top: 40px;
}

/* Detail page */

.detail-wrapper {
    width: 80%;
    margin: 30px auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.detail-image-block img {
    width: 100%;
    max-width: 380px;
    background: #fdfcf0;
    padding: 20px;
}

.detail-price {
    font-size: 20px;
    color: #c09b62;
    margin: 10px 0;
}

.detail-desc {
    font-size: 14px;
    color: #6e5a4a;
    margin-bottom: 18px;
}

.back-link a {
    font-size: 13px;
}

/* Cart */

.cart-table {
    width: 80%;
    margin: 30px auto 10px;
    border-collapse: collapse;
    background: #fdfcf0;
}

.cart-table th,
.cart-table td {
    border: 1px solid #e0d4c8;
    padding: 10px 12px;
    text-align: left;
}

.cart-summary {
    width: 80%;
    margin: 10px auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-btn {
    padding: 10px 25px;
    background: #3c2f25;
    color: #fdfcf0;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.08em;
}

/* Forms */

.form-wrapper {
    width: 60%;
    max-width: 520px;
    margin: 25px auto 40px;
    background: #fdfcf0;
    padding: 25px 30px;
}

.bk-form p {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.bk-form label {
    font-size: 13px;
    margin-bottom: 3px;
}

.bk-form input,
.bk-form select,
.bk-form textarea {
    padding: 7px 8px;
    border: 1px solid #d5c9bd;
    font-size: 13px;
    border-radius: 3px;
}

.error-text {
    color: #b13b3b;
    margin-bottom: 10px;
}

.small-link {
    font-size: 13px;
    margin-top: 10px;
}

/* Success */

.success-box {
    width: 60%;
    max-width: 520px;
    margin: 30px auto 40px;
    background: #fdfcf0;
    padding: 25px 30px;
    text-align: center;
}

/* Footer */

.footer {
    background: #fdfcf0;
    border-top: 1px solid #e8dfd5;
    padding: 15px 0;
}

.footer-inner {
    text-align: center;
    font-size: 12px;
    color: #8f7d6b;
}

/* Responsive */

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .cart-table,
    .cart-summary {
        width: 98%;
    }
    .cart-table th,
    .cart-table td {
        padding: 8px 6px;
        font-size: 13px;
    }
    .detail-wrapper {
        width: 95%;
    }
    .form-wrapper,
    .success-box {
        width: 95%;
        padding: 15px 18px;
    }
    .product-grid {
        width: 96%;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-card img {
        width: 100%;
        height: 180px;
    }
    .hero-strip {
        padding: 20px 10px 10px;
    }
    .hero-title {
        font-size: 18px;
    }
}
/* Product Detail Page - Premium Redesign */

.product-detail-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.product-main-section {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
    display: flex;
    gap: 15px;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #eee;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
}

.thumb.active {
    border-color: #064e3b;
}

.main-image-wrapper {
    flex: 1;
    position: relative;
    background: #fdfdfd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-wrapper img {
    max-width: 100%;
    max-height: 400px;
}

.badge-bestseller {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #064e3b;
    color: #555;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Info Section */
.product-details-info {
    flex: 1;
    min-width: 300px;
}

.product-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.product-rating {
    margin-bottom: 15px;
}

.stars {
    color: #064e3b;
    margin-right: 8px;
}

.rating-text {
    font-size: 14px;
    color: #4caf50;
    font-weight: 500;
}

.product-price-large {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.product-description {
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

/* Customizations */
.custom-section {
    margin-bottom: 25px;
}

.custom-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}

.weight-selector {
    display: flex;
    gap: 10px;
}

.weight-btn {
    padding: 8px 18px;
    border: 1px solid #ddd;
    background: #fdfcf0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.weight-btn.active {
    border-color: #064e3b;
    color: #064e3b;
    background: #f0fff4;
}

.custom-checkbox {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 3px;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #064e3b;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fdfcf0;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.msg-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.message-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.buy-now-btn {
    flex: 1;
    padding: 15px;
    background: #064e3b;
    color: #555;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.buy-now-btn:hover {
    background: #059669;
}

.wishlist-btn {
    width: 50px;
    border: 1px solid #ddd;
    background: #fdfcf0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
}

/* Reviews Section */
.reviews-section {
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 25px;
    color: #064e3b;
}

.review-form-container {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.review-input, .review-textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.review-textarea {
    height: 100px;
}

.submit-review-btn {
    background: #064e3b;
    color: #555;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.1s;
}

.star-rating-input label:before {
    content: '★';
}

.star-rating-input input:checked ~ label {
    color: #064e3b;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #064e3b;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #f9f9f9;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-rating {
    color: #064e3b;
    margin-bottom: 10px;
}

.review-text {
    color: #444;
    line-height: 1.5;
}

.no-reviews {
    color: #999;
    font-style: italic;
}

@media (max-width: 768px) {
    .product-gallery {
        flex-direction: column-reverse;
    }
    .thumbnail-list {
        flex-direction: row;
        overflow-x: auto;
    }
}
