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

:root {
    --primary: #111827;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --bg-light: #f9fafb;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --header-height: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
}

/* Header & Nav */
.modern-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modern-header.scrolled {
    box-shadow: var(--shadow-md);
}

.modern-header.scrolled .top-bar {
    display: none;
}

.modern-header .top-bar {
    background: var(--primary);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.modern-header .main-header {
    padding: 15px 0;
}

.modern-logo img {
    height: 40px;
    width: auto;
}

.modern-search .form-group {
    position: relative;
    margin-bottom: 0;
}

.modern-search input {
    border-radius: 25px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    width: 100%;
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.modern-search input:focus {
    border-color: var(--accent);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modern-nav-icons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
}

.modern-nav-icons a {
    color: var(--primary);
    font-size: 20px;
    position: relative;
}

.modern-nav-icons a .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Hero Section */
.modern-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.modern-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 150px;
}

.modern-hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.modern-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

.btn-modern {
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-modern-primary {
    background: var(--primary);
    color: #fff;
}

.btn-modern-primary:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* Product Cards */
.modern-product-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.modern-product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.modern-product-card .image-wrapper {
    position: relative;
    padding-top: 125%; /* 4:5 aspect ratio */
    overflow: hidden;
}

.modern-product-card .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-product-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.modern-product-card .content {
    padding: 15px;
}

.modern-product-card .p-name {
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
    color: var(--primary);
}

.modern-product-card .price-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-product-card .current-price {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.modern-product-card .old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 14px;
}

.modern-product-card .add-to-cart-btn {
    margin-top: 15px;
    width: 100%;
}

/* Grid layout */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Footer */
.modern-footer {
    background: var(--bg-light);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-widget h4 {
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: var(--accent);
}

.newsletter-box input {
    border-radius: var(--radius);
    padding: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    margin-bottom: 10px;
}

/* Breadcrumbs */
.modern-breadcrumb {
    padding: 20px 0;
    font-size: 14px;
}

.modern-breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-breadcrumb ul li {
    color: var(--text-muted);
}

.modern-breadcrumb ul li a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.modern-breadcrumb ul li a:hover {
    color: var(--accent);
}

.modern-breadcrumb ul li:after {
    content: "/";
    margin-left: 10px;
}

.modern-breadcrumb ul li:last-child:after {
    content: none;
}

.modern-breadcrumb ul li:last-child {
    color: var(--primary);
    font-weight: 500;
}

/* Product Detail Page */
.product-detail-container {
    padding: 40px 0;
}

.product-image-gallery {
    margin-bottom: 30px;
}

.main-image-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.main-image-wrapper img {
    width: 100%;
    display: block;
}

.thumb-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    object-fit: cover;
}

.product-info-col h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-meta {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.modern-rating {
    color: #fbbf24;
    font-size: 14px;
}

.modern-rating .review-count {
    color: var(--text-muted);
    margin-left: 5px;
}

.product-price-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-price-large .old-price {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

.product-description-short {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.selection-group {
    margin-bottom: 25px;
}

.selection-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.modern-select {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: #fff;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    width: fit-content;
    margin-bottom: 30px;
}

.qty-btn {
    padding: 10px 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.modern-tabs {
    margin-top: 60px;
}

.modern-tabs .nav-tabs {
    border-bottom: 2px solid var(--border-color);
    gap: 40px;
}

.modern-tabs .nav-link {
    border: none;
    padding: 15px 0;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
}

.modern-tabs .nav-link.active {
    color: var(--primary);
    background: none;
}

.modern-tabs .nav-link.active:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.modern-tabs .tab-content {
    padding: 30px 0;
    line-height: 1.8;
}

/* Modern Sidebar */
.modern-sidebar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.menu-item-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    flex-grow: 1;
    padding: 4px 0;
}

.menu-link:hover {
    color: var(--primary-color);
}

.toggle-icon {
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.toggle-icon[aria-expanded="true"] {
    transform: rotate(90deg);
}

.sidebar-submenu {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    border-left: 1px solid var(--border-color);
}

/* Category Page Header */
.category-header {
    padding: 60px 0 40px;
    background: #f8f9fa;
    margin-bottom: 40px;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.category-breadcrumb {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.category-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.category-breadcrumb span {
    margin: 0 8px;
}

/* Footer Styles */
.modern-footer {
    background-color: #f8f9fa;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-widget h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
}

.newsletter-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    outline: none;
}

.social-icons a {
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: var(--primary-color) !important;
}

/* Section Headlines */
.headline {
    text-align: center;
    margin-bottom: 50px;
}

.headline h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: none;
    margin-bottom: 10px;
}

.headline h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0;
}

/* Service Section */
.service .item {
    text-align: center;
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service .item .photo {
    margin-bottom: 25px;
}

.service .item .photo img {
    width: 64px !important;
    height: auto;
}

.service .item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service .item p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* General Layout Tweaks */
.bg-gray {
    background: #f8f9fa !important;
}

.pt_70 { padding-top: 70px !important; }
.pb_70 { padding-bottom: 70px !important; }
.pt_40 { padding-top: 40px !important; }
.pb_40 { padding-bottom: 40px !important; }

/* Responsiveness */
@media (max-width: 768px) {
    .modern-hero h1 {
        font-size: 2.5rem;
    }
}
