/* --------------------------------------------------
   GLOBAL RESET
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: #fafafa;
    color: #333;
    line-height: 1.6;
}

/* --------------------------------------------------
   PREMIUM NAVBAR
-------------------------------------------------- */
.main-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 35px 40px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    min-height: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    font-size: 1rem;
    color: #888;
    pointer-events: none;
}

.navbar-search {
    width: 240px;
    padding: 8px 14px 8px 34px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.navbar-search:focus {
    outline: none;
    border-color: #ff7f50;
    box-shadow: 0 0 4px rgba(255,127,80,0.4);
}

.navbar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar-brand {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.navbar-headings {
    display: flex;
    gap: 35px;
}

.navbar-headings a {
    text-decoration: none;
    font-size: 1.15rem;
    color: #333;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.navbar-headings a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: #ff7f50;
    transition: width 0.25s ease;
}

.navbar-headings a:hover::after {
    width: 100%;
}

.navbar-right {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    align-items: center;
}

.navbar-right a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.account-dropdown {
    position: relative;
}

.account-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 28px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 160px;
}

.account-dropdown:hover .dropdown-menu {
    display: block;
}
/* Style the individual links inside the dropdown */
.account-dropdown .dropdown-menu a {
    display: block;
    padding: 10px 20px; /* Gives text breathing room on the left and right */
    font-size: 1rem;    /* Makes the dropdown text slightly cleaner/smaller than main nav */
    color: #333;
    text-align: left;
    white-space: nowrap; /* Prevents text from wrapping awkwardly */
    transition: background 0.2s ease;
}

/* Add a nice hover effect when selecting items */
.account-dropdown .dropdown-menu a:hover {
    background: #ffe6dd; /* Light orange tint matching your brand */
    color: #ff7f50;      /* Coral color matching your hover underlines */
}

/* Remove the underline effect from inheriting here */
.account-dropdown .dropdown-menu a::after {
    display: none;
}
/* MOBILE */
.mobile-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    justify-self: end;
}

@media (max-width: 768px) {
    .main-header {
        grid-template-columns: auto auto auto;
    }

    .navbar-left {
        display: none;
    }

    .navbar-center {
        grid-column: span 3;
    }

    .navbar-headings {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .navbar-right {
        display: none;
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .mobile-toggle {
        display: block;
    }
}

/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #ffe3ec, #fff);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta {
    display: inline-block;
    padding: 12px 24px;
    background: #d17ba3;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.cta:hover {
    background: #b9658c;
}

/* --------------------------------------------------
   FEATURED PATTERNS
-------------------------------------------------- */
.featured {
    padding: 60px 40px;
}

.featured h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pattern-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    padding-bottom: 20px;
}

.pattern-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.pattern-card h3 {
    margin-top: 15px;
    font-size: 1.2rem;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
    text-align: center;
    padding: 20px;
    background: white;
    border-top: 1px solid #e5e5e5;
    margin-top: 60px;
}

/* --------------------------------------------------
   CATEGORY CARDS
-------------------------------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 40px;
}

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.category-card h3 {
    padding: 15px;
    font-size: 1.2rem;
}

/* --------------------------------------------------
   PAGINATION
-------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1rem;
}

.pagination button.active {
    background: #ff7f50;
    color: white;
    border-color: #ff7f50;
}

.pagination button:hover {
    background: #ffe6dd;
}

/* --------------------------------------------------
   UNIVERSAL PATTERN GRIDS
-------------------------------------------------- */
#trendingGrid,
#categoriesGrid,
#newReleasesGrid,
#seasonalGrid,
#productsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* --------------------------------------------------
   PRODUCTS PAGE (ONLY)
-------------------------------------------------- */
#productsGrid {
    max-width: 1200px;
    margin: 30px auto 0 auto;
}

#productsGrid .pattern-card {
    width: 250px;
    margin: auto;
}
/* --------------------------------------------------
   DASHBOARD & ACCOUNT PAGES
-------------------------------------------------- */
.dashboard-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.dashboard-container h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: #333;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* Dashboard Cards */
.dashboard-container .card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e5e5e5;
}

.dashboard-container .card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.dashboard-container .card p {
    color: #666;
    margin-bottom: 15px;
}

/* Dashboard Links & Buttons */
.dashboard-container .card a {
    display: inline-block;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: #d17ba3;
    margin-bottom: 15px;
}

.dashboard-container .card a.active {
    color: #b9658c;
    border-bottom: 2px solid #b9658c;
}

.dashboard-container button, 
.dashboard-container .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ff7f50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dashboard-container button:hover, 
.dashboard-container .btn:hover {
    background: #e66e40;
}

/* Recent Downloads List */
#recentDownloads {
    list-style: none;
    margin-top: 10px;
    padding-left: 0;
}

#recentDownloads li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}