@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", serif;
}

body {
    height: auto;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #111;
}

/* --- HEADER & NAV --- */
header {
    position: sticky;
    top: 0;
    background: #fff;
    color: #111;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    z-index: 1000;
}

nav {
    position: sticky !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: #fff;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #555;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111;
    padding-left: 30px;
    padding-top: 10px;
    letter-spacing: 4px;
}

.nav-button {
    background-color: #111;
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    transition: background 0.3s;
}

.nav-button:hover {
    background-color: #444 !important;
}

/* --- FORMS (login/register page) --- */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: #f5f5f5;
}

.form-box {
    display: none;
    margin-left: 500px;
    margin-right: 500px;
}

.form-box.active {
    display: block !important;
}

h2 {
    font-size: 34px;
    text-align: center;
    margin-bottom: 20px;
    color: #111;
}

input, select {
    width: 100%;
    padding: 12px;
    background: #ebebeb;
    border-radius: 6px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 16px;
    color: #111;
    margin-bottom: 20px;
    transition: border 0.2s;
}

input:focus, select:focus {
    border-color: #111;
    background: #fff;
}

button {
    width: 100%;
    padding: 12px;
    background: #111;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 20px;
    transition: background 0.3s;
}

button:hover {
    background: #333;
}

p {
    font-size: 14.5px;
    text-align: center;
    margin-bottom: 10px;
    color: #555;
}

p2 {
    font-family: "Times New Roman", Times, serif;
    font-size: 30px;
    font-weight: 200;
    color: #444;
}

p a {
    color: #111;
    text-decoration: none;
    font-weight: 500;
}

p a:hover {
    text-decoration: underline;
}

/* --- GLOBAL SECTION STYLES --- */
html {
    height: auto;
    margin: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

section {
    padding: 80px 10%;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #111;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- HERO SECTION --- */
#hero {
    padding: 120px 20px;
    text-align: center;
    background: #111;
    color: #fff;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
}

#hero p {
    color: #aaa;
    font-size: 1.1rem;
}

/* --- FEATURES SECTION --- */
#features {
    display: flex;
    justify-content: space-around;
    padding: 50px 10%;
    gap: 20px;
    background: #fff;
}

.feature-item {
    text-align: center;
    flex: 1;
    color: #444;
}

.feature-item h3 {
    color: #111;
}

/* --- ABOUT SECTION --- */
#about {
    background-color: #f5f5f5;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
}

/* --- PRODUCTS SECTION --- */
#products {
    background-color: #fff;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    margin-bottom: 15px;
    overflow: hidden;
}

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

.product-card h3 {
    margin: 10px 0;
    color: #111;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-card .price {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
    margin: 15px 0;
}

.product-card button {
    width: 100%;
    padding: 10px;
    background-color: #111;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-card button:hover {
    background-color: #333;
}

/* --- GALLERY SECTION --- */
#gallery {
    background-color: #f5f5f5;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 280px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    overflow: hidden;
    background-color: #ddd;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- CONTACT SECTION --- */
#contact {
    background: #111;
    color: #fff;
}

#contact h2 {
    color: #fff;
}

.contact-info i {
    color: #aaa;
    margin-left: 45%;
    margin-right: 35px;
    width: 0;
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #ccc;
}

footer {
    margin-top: 40px;
    color: #666;
    font-size: 0.9rem;
}

/* --- CART DRAWER --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 370px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 20px rgba(0,0,0,0.12);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 16px;
    margin-bottom: 8px;
}

.cart-header h2 {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #111;
    width: auto;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.close-btn:hover {
    background: transparent;
    color: #555;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-footer {
    border-top: 1px solid #e8e8e8;
    padding-top: 16px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 8px;
}

.cart-grand-total {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    letter-spacing: 0.5px;
    border-top: 1px solid #e8e8e8;
    padding-top: 10px;
    margin-top: 4px;
    margin-bottom: 14px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background-color: #111;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background-color: #333;
}

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

/* --- PRODUCT CARD LINK --- */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-link:hover h3 {
    text-decoration: underline;
}

/* --- PRODUCT DETAIL PAGE --- */
#product-detail {
    padding: 40px 8% 80px;
    background: #fff;
    min-height: 80vh;
    text-align: left;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #111;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

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

.product-detail-info {
    position: sticky;
    top: 100px;
}

.brand-label {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
    text-align: left;
}

.product-detail-info h1 {
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 12px;
    font-weight: 500;
}

.detail-price {
    font-size: 1.1rem;
    color: #111;
    font-weight: 500;
    margin-bottom: 32px;
    text-align: left;
}

.detail-add-btn {
    width: 100%;
    padding: 16px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 40px;
    transition: background 0.3s;
    border-radius: 0;
}

.detail-add-btn:hover {
    background: #333;
}

/* --- ACCORDION --- */
.accordion {
    border-top: 1px solid #e0e0e0;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111;
    font-weight: 500;
    margin: 0;
    transition: color 0.2s;
}

.accordion-header:hover {
    background: transparent;
    color: #555;
}

.accordion-icon {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1;
}

.accordion-body {
    display: none;
    padding: 0 0 20px 0;
}

.accordion-body p {
    text-align: left;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
}

.accordion-item.open .accordion-body {
    display: block;
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-detail-info {
        position: static;
    }
}
