@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #c5a059;
    --accent-color: #e5e5e5;
    --text-color: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #121212;
    --error-color: #d9534f;
    --success-color: #5cb85c;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-icons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-icons i {
    font-size: 20px;
    cursor: pointer;
}

.nav-icons i:hover {
    color: var(--secondary-color);
}

/* Sticky Header */
header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Hover Underline */
.hover-underline {
    position: relative;
    text-decoration: none;
    padding-bottom: 5px;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.hover-underline:hover::after,
.has-dropdown:hover>.hover-underline::after {
    width: 100%;
}

/* Mega Menu */
.has-dropdown {
    position: relative;
    padding: 20px 0;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    background: var(--white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 40px;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-column h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
}

.mega-column a {
    display: block;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 14px;
}

.mega-column a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('uploads/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 80px;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1.2s ease;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 13px;
    border-radius: 0;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
}

/* Section Styling */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* Categories Grid */
.category-card {
    position: relative;
    overflow: hidden;
    height: 500px;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: var(--white);
    z-index: 2;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.8));
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    transition: var(--transition);
}

.product-img {
    height: 400px;
    background: #f4f4f4;
    position: relative;
    overflow: hidden;
}

.product-img img.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: block;
}

/* Hover image overlay */
.product-img img.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Product Detail Page Image Zoom */
.product-gallery .main-img {
    overflow: hidden;
    cursor: crosshair;
}

.product-gallery .main-img img {
    transition: transform 0.4s ease;
}

.product-gallery .main-img:hover img {
    transform: scale(1.5);
    transform-origin: center center;
}

.product-card:hover .product-img img.main-img {
    transform: scale(1.05);
    /* Zoom main image by default */
}

.product-card:hover .product-img:has(.hover-img) img.main-img {
    opacity: 0;
    /* Hide main image ONLY if hover-img is present */
}

.product-card:hover .product-img img.hover-img {
    opacity: 1;
    transform: scale(1.05);
    /* Slight zoom on hover, as requested */
}

.product-actions {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 15px;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    gap: 15px;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-info {
    padding: 20px 0;
    text-align: left;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.product-price {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

.price-old {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 14px;
    margin-right: 10px;
    font-weight: 400;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--accent-color);
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: var(--transition);
    border-radius: 0;
}

input:focus,
textarea:focus {
    border-color: var(--secondary-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col p {
    color: #999;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 15px;
    color: #999;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #222;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Table Design (Cart/Orders) */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 20px;
    background: var(--bg-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

td {
    padding: 20px;
    border-bottom: 1px solid var(--bg-light);
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(150px);
    transition: var(--transition);
    z-index: 10000;
    font-weight: 600;
    letter-spacing: 1px;
}

.notification.show {
    transform: translateY(0);
}

.notification.success {
    border-left: 5px solid var(--success-color);
}

.notification.error {
    border-left: 5px solid var(--error-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Suggestions */
#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--accent-color);
    box-shadow: var(--shadow);
    display: none;
    z-index: 1000;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-light);
}

.suggestion-item:hover {
    background: var(--bg-light);
}

.suggestion-item img {
    width: 60px;
    height: 70px;
    object-fit: cover;
    margin-right: 20px;
}