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

/* =====================================
   DIYARBOOK - GLOBAL
===================================== */

:root {
    --cream: #F8F3EB;
    --nude: #E8D8C8;
    --beige: #D4BBA5;
    --brown: #A67C62;
    --dark: #49372D;
    --white: #FFFDF9;
    --text: #5D4A3F;
    --shadow: 0 12px 35px rgba(73, 55, 45, 0.09);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--cream);
    color: var(--dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

/* =====================================
   HEADER
===================================== */

.header {
    width: 100%;
    background: rgba(255, 253, 249, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 20px rgba(73, 55, 45, 0.05);
}

.header-container {
    position: relative;
    max-width: 1250px;
    min-height: 85px;
    margin: auto;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.header-container .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
}

.header-container .logo img {
    width: 115px;
    height: 55px;
    object-fit: contain;
}

.navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: var(--white);
    padding: 15px;
    box-shadow: 0 5px 15px rgba(73, 55, 45, 0.05);
}

.navigation a {
    font-size: 14px;
    color: var(--text);
    transition: 0.3s;
}

.navigation a:hover,
.navigation a.active {
    color: var(--brown);
}

.desktop-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 6;
}

.mobile-auth {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 6;
}

.login-btn,
.register-btn,
.cart-btn {
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    transition: 0.3s;
}

.login-btn {
    border: 1px solid var(--beige);
}

.register-btn {
    background: var(--dark);
    color: white;
}

.cart-btn {
    background: var(--nude);
}

.login-btn:hover,
.register-btn:hover,
.cart-btn:hover {
    transform: translateY(-3px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 25px;
    color: var(--dark);
}

/* =====================================
   HERO
===================================== */

.hero {
    max-width: 1250px;
    min-height: 570px;
    margin: auto;
    padding: 80px 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label,
.section-subtitle {
    color: var(--brown);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: clamp(35px, 5vw, 60px);
    line-height: 1.6;
    margin: 15px 0;
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--brown);
    display: block;
}



.hero-search {
    margin-top: 20px;
    max-width: 480px;
    display: flex;
    position: relative;
    background: var(--white);
    padding: 7px;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px;
    font-size: 13px;
    color: var(--dark);
}

.hero-search button {
    border: none;
    background: var(--dark);
    color: white;
    padding: 12px 22px;
    border-radius: 10px;
    transition: 0.3s;
}

.hero-search button:hover {
    background: var(--brown);
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    color: var(--brown);
    font-weight: 600;
}

.hero-link span {
    transition: 0.3s;
}

.hero-link:hover span {
    transform: translateX(-5px);
}

/* =====================================
   SEARCH SUGGESTIONS
===================================== */

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: var(--white);
    border-radius: 13px;
    box-shadow: var(--shadow);
    z-index: 100;
    overflow: hidden;
    display: none;
    max-height: 350px;
    overflow-y: auto;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eee6dc;
    transition: 0.2s;
}

.suggestion-item:hover {
    background: var(--cream);
}

.suggestion-item img {
    width: 42px;
    height: 58px;
    object-fit: cover;
    border-radius: 5px;
}

.suggestion-item strong {
    display: block;
    font-size: 13px;
}

.suggestion-item small,
.no-suggestion {
    color: #998679;
    font-size: 11px;
}

.no-suggestion {
    padding: 15px;
    font-size: 13px;
}

/* =====================================
   HERO BOOKS
===================================== */

.hero-books {
    height: 420px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.floating-book {
    position: absolute;
    width: 185px;
    height: 270px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 12px 20px 35px rgba(45, 30, 20, 0.25);
    transition: transform 0.5s;
    background: var(--nude);
}

.floating-book img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-one {
    z-index: 3;
    transform: translateX(-10px) translateY(-10px) rotate(-5deg);
    animation: floatOne 5s ease-in-out infinite;
}

.book-two {
    z-index: 2;
    transform: translateX(130px) translateY(30px) rotate(9deg) scale(0.88);
    animation: floatTwo 6s ease-in-out infinite;
}

.book-three {
    z-index: 1;
    transform: translateX(-145px) translateY(35px) rotate(-12deg) scale(0.86);
    animation: floatThree 5.5s ease-in-out infinite;
}

.hero-books:hover .book-one {
    transform: translateX(-10px) translateY(-25px) rotate(-2deg) scale(1.04);
}

.hero-books:hover .book-two {
    transform: translateX(155px) translateY(25px) rotate(12deg) scale(0.92);
}

.hero-books:hover .book-three {
    transform: translateX(-170px) translateY(25px) rotate(-15deg) scale(0.9);
}

@keyframes floatOne {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -18px; }
}

@keyframes floatTwo {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 15px; }
}

@keyframes floatThree {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -13px; }
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    background: var(--nude);
    opacity: 0.5;
}

.decoration-one {
    width: 300px;
    height: 300px;
}

.decoration-two {
    width: 360px;
    height: 360px;
    background: transparent;
    border: 1px solid var(--beige);
}

/* =====================================
   SECTIONS
===================================== */

.categories-section,
.products-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.categories-section {
    padding: 55px 0;
    overflow: hidden;
}

.products-section {
    padding: 65px 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 max(18px, calc((100% - 1190px) / 2));
}

.section-heading h2 {
    font-size: 25px;
    margin-top: 8px;
}

.view-all {
    color: var(--brown);
    font-size: 13px;
    font-weight: 600;
}

/* =====================================
   CATEGORIES
===================================== */

.categories-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
}

.categories {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 8px 0 15px;
    margin: 0;
    direction: rtl;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex: 0 0 155px;
    min-width: 155px;
    background: var(--white);
    border: 1px solid #eee5dc;
    border-radius: 15px;
    padding: 23px 10px;
    text-align: center;
    color: var(--dark);
    transition: 0.3s;
}

.category-card span {
    font-size: 30px;
    display: block;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 13px;
    font-weight: 500;
}

.category-card:hover,
.category-card.active {
    background: var(--dark);
    color: white;
    transform: translateY(-5px);
}

.category-arrow {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: var(--nude);
    color: var(--dark);
    font-size: 25px;
}

#categoryPrev {
    right: 5px;
}

#categoryNext {
    left: 5px;
}

/* =====================================
   HOMEPAGE PRODUCTS
===================================== */

.latest-section {
    background: rgba(232, 216, 200, 0.23);
}

.offers-section {
    background: var(--cream);
}

.product-slider {
    position: relative;
    width: 100%;
}

.products-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 0 20px;
    margin: 0;
    direction: rtl;
}

.products-grid::-webkit-scrollbar {
    display: none;
}

.product-slider .products-grid {
    width: 100%;
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--nude);
    color: var(--dark);
    font-size: 23px;
    cursor: pointer;
    opacity: 0.9;
    transition: 0.3s;
}

.slider-arrow:hover {
    background: var(--dark);
    color: white;
}

.slider-arrow:first-child {
    right: 6px;
}

.slider-arrow:last-child {
    left: 6px;
}

.empty-products {
    flex: 1 0 100%;
    padding: 35px;
    text-align: center;
    color: #998679;
}

/* =====================================
   PRODUCT CARDS
   Shared between homepage and store
===================================== */

.product-card {
    position: relative;
    flex: 0 0 240px;
    min-width: 240px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #E9DED2;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(73, 55, 45, 0.04);
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 12px 28px rgba(73, 55, 45, 0.10);
}

.product-image {
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
    background: transparent;
}

.product-image::before,
.product-image::after {
    display: none;
    content: none;
}

.product-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    object-position: center;
    transform: none;
    filter: drop-shadow(4px 6px 5px rgba(50, 35, 25, 0.12));
    transition: none;
}

.product-card:hover .product-image img {
    transform: none;
}

.product-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    background: var(--dark);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.product-info {
    padding: 16px;
    background: var(--white);
}

.product-info h3 {
    color: var(--dark);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.9;
    margin: 0 0 7px;
}

.product-author {
    color: #A18C7C;
    font-size: 11px;
    margin: 0 0 17px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #EEE5DC;
}

.product-price {
    color: var(--dark);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.add-to-cart {
    border: 1px solid var(--dark);
    border-radius: 9px;
    padding: 9px 13px;
    background: var(--dark);
    color: var(--white);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.add-to-cart:hover {
    background: var(--brown);
    border-color: var(--brown);
}

/* =====================================
   ABOUT
===================================== */

.about-section {
    margin: 50px auto;
    padding: 70px 25px;
    text-align: center;
    background: var(--nude);
}

.about-content {
    max-width: 750px;
    margin: auto;
}

.about-content h2 {
    font-size: 29px;
    margin: 15px 0;
}

.about-content p {
    font-size: 14px;
    line-height: 2.3;
    color: #756052;
}

.about-content .about-slogan {
    margin-top: 20px;
    color: var(--dark);
    font-weight: 700;
    font-size: 17px;
}

/* =====================================
   FOOTER
===================================== */

.footer {
    background: var(--dark);
    color: white;
    padding: 55px 30px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
}

.footer-brand h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--beige);
    margin-bottom: 12px;
}

.footer-brand span {
    color: #c8b9ac;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-links h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 12px;
    color: #d1c2b6;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    padding-top: 20px;
    color: #c8b9ac;
    font-size: 11px;
}

/* =====================================
   STORE PAGE
===================================== */

.products-page {
    min-height: 70vh;
    padding: 55px 0 80px;
    background: var(--cream);
}

.products-page .section-heading {
    margin-bottom: 30px;
}

.products-page .section-heading h1 {
    color: var(--dark);
    font-size: 32px;
    margin-top: 10px;
}

/* Store toolbar */

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    margin: 30px 0 15px;
    background: var(--white);
    border: 1px solid var(--nude);
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(73, 55, 45, 0.05);
}

.products-search {
    flex: 1;
    min-width: 0;
}

.products-search input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid var(--nude);
    border-radius: 12px;
    background: var(--cream);
    color: var(--dark);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.25s;
}

.products-search input:focus {
    border-color: var(--brown);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(166, 124, 98, 0.12);
}

.products-filters {
    display: flex;
    gap: 12px;
}

.products-filters select {
    height: 52px;
    min-width: 170px;
    padding: 0 15px;
    border: 1px solid var(--nude);
    border-radius: 12px;
    background: var(--cream);
    color: var(--dark);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: 0.25s;
}

.products-filters select:hover,
.products-filters select:focus {
    border-color: var(--brown);
    background: var(--white);
}

.products-result {
    color: var(--brown);
    font-size: 13px;
    margin: 20px 5px;
}

.products-empty {
    text-align: center;
    padding: 55px 15px;
    background: var(--white);
    border-radius: 16px;
    color: var(--brown);
    font-size: 15px;
    margin-top: 20px;
}

/* Store product grid */

#categoryProducts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    overflow: visible;
    padding: 20px 0;
}

#categoryProducts .product-card {
    width: 100%;
    min-width: 0;
    flex: initial;
}

/* =====================================
   CART PAGE
===================================== */

.cart-page {
    min-height: 75vh;
    padding: 65px 20px;
    background: var(--cream);
}

.cart-container {
    max-width: 1100px;
    margin: auto;
}

.cart-container > h1 {
    color: var(--dark);
    font-size: 30px;
    margin-bottom: 12px;
    font-weight: 800;
}

.cart-subtitle {
    color: #8b786b;
    font-size: 15px;
    margin-bottom: 35px;
}

#cartItems {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-item {
    background: var(--white);
    border: 1px solid #eee4d9;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 5px 20px rgba(73, 55, 45, 0.04);
    transition: 0.25s ease;
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(73, 55, 45, 0.08);
}

.cart-item > img {
    width: 105px;
    height: 145px;
    object-fit: cover;
    border-radius: 9px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-size: 19px;
    color: var(--dark);
    margin-bottom: 12px;
}

.cart-item-info > p {
    font-size: 15px;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 18px;
}

/* Quantity */

.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background: var(--cream);
    border: 1px solid var(--nude);
    border-radius: 10px;
    padding: 5px 10px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: var(--nude);
    color: var(--dark);
    font-size: 20px;
    transition: 0.2s;
}

.quantity-control button:hover {
    background: var(--brown);
    color: white;
}

.quantity-control span {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Remove */

.remove-cart-item {
    border: none;
    background: #f8e9e5;
    color: #b65345;
    padding: 10px 16px;
    border-radius: 9px;
    font-family: inherit;
    transition: 0.2s;
}

.remove-cart-item:hover {
    background: #b65345;
    color: white;
}

/* Summary */

.cart-summary {
    margin-top: 30px;
    background: var(--white);
    border: 1px solid #eee4d9;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 5px 20px rgba(73, 55, 45, 0.04);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 22px;
    border-bottom: 1px solid #eee4d9;
    margin-bottom: 22px;
    color: var(--dark);
    font-size: 17px;
}

.cart-total strong {
    color: var(--brown);
    font-size: 22px;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--dark);
    color: white;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    transition: 0.25s;
}

.checkout-btn:hover {
    background: var(--brown);
    transform: translateY(-2px);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: var(--brown);
    font-size: 14px;
    font-weight: 600;
}

.continue-shopping:hover {
    color: var(--dark);
}

.empty-cart {
    background: var(--white);
    border: 1px solid #eee4d9;
    border-radius: 20px;
    padding: 65px 20px;
    text-align: center;
}

.empty-cart > div {
    font-size: 55px;
    margin-bottom: 20px;
}

.empty-cart h2 {
    color: var(--dark);
    font-size: 23px;
    margin-bottom: 12px;
}

.empty-cart p {
    color: #8b786b;
    margin-bottom: 25px;
}

.empty-cart a {
    display: inline-block;
    padding: 13px 28px;
    background: var(--dark);
    color: white;
    border-radius: 10px;
    transition: 0.2s;
}

.empty-cart a:hover {
    background: var(--brown);
}

/* =====================================
   CHECKOUT PAGE
===================================== */

.checkout-page {
    min-height: 80vh;
    padding: 60px 20px;
    background: var(--cream);
}

.checkout-container {
    max-width: 1150px;
    margin: auto;
}

.checkout-container > h1 {
    color: var(--dark);
    font-size: 30px;
    margin-bottom: 10px;
}

.checkout-description {
    color: #8b786b;
    margin-bottom: 35px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    align-items: start;
}

.checkout-form-section,
.checkout-summary {
    background: var(--white);
    border: 1px solid #eee4d9;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(73, 55, 45, 0.04);
}

.checkout-form-section h2,
.checkout-summary h2 {
    color: var(--dark);
    font-size: 20px;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 9px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--nude);
    border-radius: 10px;
    background: var(--white);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brown);
    box-shadow: 0 0 0 3px rgba(166, 124, 98, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.place-order-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 11px;
    background: var(--dark);
    color: white;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    transition: 0.25s;
}

.place-order-btn:hover {
    background: var(--brown);
    transform: translateY(-2px);
}

.checkout-summary {
    position: sticky;
    top: 25px;
}

.checkout-product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #eee4d9;
}

.checkout-product img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 7px;
}

.checkout-product-info {
    flex: 1;
}

.checkout-product-info h3 {
    color: var(--dark);
    font-size: 14px;
    margin-bottom: 8px;
}

.checkout-product-info p {
    color: var(--brown);
    font-size: 13px;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee4d9;
    color: var(--dark);
    font-weight: 700;
}

.checkout-total strong {
    color: var(--brown);
    font-size: 19px;
}

/* =====================================
   LOGIN PAGE
===================================== */

.login-page {
    min-height: 85vh;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--nude) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 460px;
    margin: auto;
}

.login-brand {
    text-align: center;
    margin-bottom: 30px;
}

.login-brand img {
    width: 125px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 15px;
}

.login-brand h1 {
    color: var(--dark);
    font-size: 27px;
    font-weight: 800;
    margin-bottom: 10px;
}

.login-brand p {
    color: var(--brown);
    font-size: 14px;
}

.login-card {
    background: var(--white);
    border: 1px solid rgba(212, 187, 165, 0.5);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 15px 45px rgba(73, 55, 45, 0.08);
}

.login-card h2 {
    color: var(--dark);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.login-description {
    color: #8b786b;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 30px;
}

.login-form-group {
    margin-bottom: 22px;
}

.login-form-group label {
    display: block;
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--nude);
    border-radius: 12px;
    background: var(--cream);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.25s;
}

.login-form-group input:focus {
    border-color: var(--brown);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(166, 124, 98, 0.08);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-left: 65px;
}

.toggle-password {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--brown);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 12px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8b786b;
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--brown);
}

.forgot-password {
    color: var(--brown);
    font-weight: 700;
}

.forgot-password:hover {
    color: var(--dark);
}

.login-submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--dark);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    transition: 0.3s;
}

.login-submit-btn:hover {
    background: var(--brown);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 124, 98, 0.2);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: #b8a596;
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee4d9;
}

.register-prompt {
    text-align: center;
    font-size: 13px;
    color: #8b786b;
}

.register-prompt a {
    color: var(--brown);
    font-weight: 800;
    margin-right: 5px;
}

.register-prompt a:hover {
    color: var(--dark);
}

/* =====================================
   REGISTER PAGE
===================================== */

.register-page {
    min-height: 85vh;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--nude) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-container {
    width: 100%;
    max-width: 510px;
    margin: auto;
}

.register-brand {
    text-align: center;
    margin-bottom: 30px;
}

.register-brand img {
    width: 125px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 15px;
}

.register-brand h1 {
    color: var(--dark);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.register-brand p {
    color: var(--brown);
    font-size: 14px;
}

.register-card {
    background: var(--white);
    border: 1px solid rgba(212, 187, 165, 0.5);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 15px 45px rgba(73, 55, 45, 0.08);
}

.register-card h2 {
    color: var(--dark);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.register-description {
    color: #8b786b;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 28px;
}

.register-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.register-form-group {
    margin-bottom: 20px;
}

.register-form-group label {
    display: block;
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.register-form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--nude);
    border-radius: 12px;
    background: var(--cream);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: 0.25s;
}

.register-form-group input:focus {
    border-color: var(--brown);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(166, 124, 98, 0.08);
}

.register-password-field {
    position: relative;
}

.register-password-field input {
    padding-left: 65px;
}

.register-password-field button {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--brown);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
}

.register-terms {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #8b786b;
    font-size: 12px;
    margin: 5px 0 25px;
    cursor: pointer;
}

.register-terms input {
    accent-color: var(--brown);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.register-submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--dark);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    transition: 0.3s;
}

.register-submit-btn:hover {
    background: var(--brown);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 124, 98, 0.2);
}

.register-login-prompt {
    text-align: center;
    font-size: 13px;
    color: #8b786b;
    margin-top: 25px;
}

.register-login-prompt a {
    color: var(--brown);
    font-weight: 800;
    margin-right: 5px;
}

.register-login-prompt a:hover {
    color: var(--dark);
}

/* =====================================
   PRODUCT DETAILS
===================================== */

.product-details-page {
    min-height: 80vh;
    padding: 55px 20px;
    background: var(--cream);
}

.product-details-container {
    max-width: 1100px;
    margin: auto;
}

.product-details-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 55px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: 22px;
    border: 1px solid #eee4d9;
    box-shadow: 0 10px 35px rgba(73, 55, 45, 0.05);
}

.product-details-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-details-image img {
    width: 100%;
    max-width: 300px;
    height: 400px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.15));
    transition: 0.3s;
}

.product-details-image img:hover {
    transform: translateY(-7px);
}

.product-details-label {
    display: inline-block;
    color: var(--brown);
    background: var(--cream);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 20px;
}

.product-details-info h1 {
    color: var(--dark);
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 18px;
}

.detail-author {
    color: #8b786b;
    font-size: 15px;
}

.detail-author span {
    color: var(--dark);
    font-weight: 700;
}

.detail-divider {
    height: 1px;
    background: #eee4d9;
    margin: 28px 0;
}

.detail-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
    margin-bottom: 22px;
}

.detail-price strong {
    color: var(--brown);
    font-size: 25px;
}

.detail-stock {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #66845e;
    font-size: 13px;
    margin-bottom: 25px;
}

.stock-dot {
    width: 9px;
    height: 9px;
    background: #78a66c;
    border-radius: 50%;
}

.detail-add-btn {
    width: 100%;
    padding: 16px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    transition: 0.25s;
}

.detail-add-btn:hover {
    background: var(--brown);
    transform: translateY(-2px);
}

.detail-cart-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: var(--brown);
    font-size: 14px;
    font-weight: 700;
}

.product-description-section {
    margin-top: 30px;
    padding: 30px;
    background: var(--white);
    border: 1px solid #eee4d9;
    border-radius: 20px;
    line-height: 2.2;
}

.product-description-section h2 {
    color: var(--dark);
    font-size: 21px;
    margin-bottom: 18px;
}

.product-description-section p {
    color: #78675c;
    font-size: 14px;
}

/* =====================================
   CART TOAST
===================================== */

#cartToast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: var(--dark);
    color: var(--white);
    padding: 15px 24px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    text-align: center;
    width: max-content;
    max-width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

#cartToast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* =====================================
   TABLET RESPONSIVE
===================================== */

@media (max-width: 950px) {

    .navigation {
        gap: 15px;
    }

    .header-container {
        gap: 12px;
    }

    .floating-book {
        width: 150px;
        height: 225px;
    }

    #categoryProducts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

/* =====================================
   MOBILE RESPONSIVE
===================================== */

@media (max-width: 700px) {

    /* Header */

    .header-container {
        min-height: 70px;
        padding: 10px 16px;
        flex-wrap: nowrap;
    }

    .menu-toggle {
        display: block;
        z-index: 10;
    }

    .header-container .logo img {
        width: 90px;
        height: 45px;
    }

    .desktop-auth {
        display: none;
    }

    .navigation {
        display: none !important;
        flex-direction: column;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 12px 18px !important;
        border-radius: 0 0 15px 15px;
    }

    .navigation.show {
        display: flex !important;
    }

    .mobile-auth {
        display: flex;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid #eee5dc;
        margin-bottom: 8px;
    }

    .mobile-auth a {
        flex: 1;
        text-align: center;
        padding: 10px;
        border-radius: 9px;
        background: var(--nude);
    }

    .navigation > a {
        padding: 12px;
        border-bottom: 1px solid #eee5dc;
    }

    .header-actions {
        gap: 6px;
    }

    .login-btn,
    .register-btn,
    .cart-btn {
        padding: 7px 10px;
        font-size: 11px;
    }

    .cart-btn span {
        display: none;
    }

    /* Hero */

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 55px 20px 30px;
        gap: 15px;
    }

    .hero-content p {
        margin: auto;
    }

    .hero-search {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-books {
        height: 330px;
    }

    .floating-book {
        width: 130px;
        height: 195px;
    }

    .book-two {
        transform: translateX(90px) translateY(20px) rotate(9deg) scale(0.85);
    }

    .book-three {
        transform: translateX(-90px) translateY(20px) rotate(-12deg) scale(0.85);
    }

    .hero-books:hover .book-two {
        transform: translateX(100px) translateY(15px) rotate(12deg) scale(0.88);
    }

    .hero-books:hover .book-three {
        transform: translateX(-100px) translateY(15px) rotate(-15deg) scale(0.88);
    }

    /* Sections */

    .categories-section {
        padding: 45px 0;
    }

    .products-section {
        padding: 45px 0;
    }

    .categories {
        padding: 8px 0 15px;
    }

    .section-heading {
        padding: 0 18px;
    }

    .section-heading h2 {
        font-size: 20px;
    }

    /* Homepage product cards */

    .product-card {
        flex: 0 0 175px;
        min-width: 175px;
        border-radius: 15px;
    }

    .product-image {
        height: 205px;
        padding: 12px;
    }

    .product-image img {
        max-height: 160px;
    }

    .product-info {
        padding: 13px 11px;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .product-author {
        font-size: 10px;
        margin-bottom: 13px;
    }

    .product-price {
        font-size: 11px;
    }

    .add-to-cart {
        padding: 9px 10px;
        font-size: 10px;
    }

    .slider-arrow {
        width: 29px;
        height: 29px;
        font-size: 19px;
    }

    /* Store */

    .products-page {
        padding: 35px 0 55px;
    }

    .products-page .section-heading h1 {
        font-size: 25px;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 12px;
    }

    .products-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .products-filters select {
        width: 100%;
        min-width: 0;
        height: 45px;
        font-size: 11px;
        padding: 0 8px;
    }

    #categoryProducts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    #categoryProducts .product-image {
        height: 180px;
    }

    #categoryProducts .product-image img {
        max-height: 155px;
    }

    /* Footer */

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    /* Cart */

    .cart-page {
        padding: 35px 14px;
    }

    .cart-container > h1 {
        font-size: 24px;
    }

    .cart-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .cart-item {
        padding: 13px;
        gap: 13px;
        border-radius: 14px;
        flex-wrap: wrap;
    }

    .cart-item > img {
        width: 85px;
        height: 120px;
    }

    .cart-item-info h3 {
        font-size: 15px;
    }

    .cart-item-info > p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .quantity-control {
        gap: 10px;
    }

    .remove-cart-item {
        margin-right: auto;
        font-size: 12px;
        padding: 8px 12px;
    }

    .cart-summary {
        padding: 20px;
        border-radius: 15px;
    }

    .cart-total {
        font-size: 15px;
    }

    .cart-total strong {
        font-size: 18px;
    }

}

/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width: 380px) {

    .product-card {
        flex-basis: 160px;
        min-width: 160px;
    }

    .product-image {
        height: 180px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

}

/* =====================================
   CHECKOUT RESPONSIVE
===================================== */

@media (max-width: 800px) {

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

}

@media (max-width: 500px) {

    .checkout-page {
        padding: 35px 14px;
    }

    .checkout-form-section,
    .checkout-summary {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .checkout-container > h1 {
        font-size: 24px;
    }

    .login-page,
    .register-page {
        padding: 35px 14px;
    }

    .login-card,
    .register-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .login-brand h1 {
        font-size: 23px;
    }

    .login-card h2,
    .register-card h2 {
        font-size: 19px;
    }

    .login-options {
        flex-wrap: wrap;
    }

    .register-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .register-brand h1 {
        font-size: 22px;
    }

}

/* =====================================
   PRODUCT DETAILS RESPONSIVE
===================================== */

@media (max-width: 750px) {

    .product-details-page {
        padding: 30px 14px;
    }

    .product-details-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 22px;
    }

    .product-details-image img {
        max-width: 220px;
        height: 290px;
    }

    .product-details-info h1 {
        font-size: 24px;
    }

    .detail-price strong {
        font-size: 21px;
    }

    .product-description-section {
        padding: 22px;
    }

}

/* =====================================
   ACCESSIBILITY
===================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}
/* =========================================
   DIYARBOOK - PREMIUM CATEGORY CARDS
========================================= */

.categories-section {
    padding: 65px 5%;
    overflow: hidden;
}

.categories-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: 30px;
}

.categories {
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    padding: 18px 8px 25px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.categories::-webkit-scrollbar {
    display: none;
}

/* CATEGORY CARD */

.category-card {
    position: relative;
    isolation: isolate;
    flex: 0 0 155px;
    min-width: 155px;
    height: 165px;
    padding: 22px 14px;
    border: 1px solid rgba(166, 124, 98, 0.17);
    border-radius: 22px;
    background: linear-gradient(
        145deg,
        #fffdf9 0%,
        #f5ede3 100%
    );
    color: #49372D;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 17px;
    cursor: pointer;
    scroll-snap-align: start;
    box-shadow: 0 5px 18px rgba(73, 55, 45, 0.055);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
    font-family: inherit;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(212, 187, 165, 0.27),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-7px);
    border-color: rgba(166, 124, 98, 0.5);
    box-shadow: 0 14px 28px rgba(73, 55, 45, 0.12);
}

.category-card:hover::before {
    opacity: 1;
}

/* ICON AREA */

.category-card .category-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    background: #EDE1D4;
    color: #8D6850;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.category-card .category-icon svg {
    width: 31px;
    height: 31px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-card:hover .category-icon {
    transform: scale(1.09);
    background: #A67C62;
    color: #fffdf9;
}

/* CATEGORY TITLE */

.category-card h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
    color: #49372D;
}

/* ALL BOOKS CARD */

.category-card:first-child {
    background: linear-gradient(
        145deg,
        #A67C62,
        #80604D
    );
    border-color: transparent;
    color: #fffdf9;
}

.category-card:first-child h3 {
    color: #fffdf9;
}

.category-card:first-child .category-icon {
    background: rgba(255, 253, 249, 0.18);
    color: #fffdf9;
}

.category-card:first-child:hover {
    box-shadow: 0 14px 28px rgba(128, 96, 77, 0.25);
}

/* ACTIVE CATEGORY */

.category-card.active {
    border: 2px solid #A67C62;
    box-shadow: 0 8px 22px rgba(166, 124, 98, 0.18);
}

.category-card.active .category-icon {
    background: #A67C62;
    color: #fffdf9;
}

/* SLIDER ARROWS */

.category-arrow {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(166, 124, 98, 0.25);
    border-radius: 50%;
    background: #fffdf9;
    color: #80604D;
    font-size: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(73, 55, 45, 0.08);
    transition: all 0.25s ease;
}

.category-arrow:hover {
    background: #A67C62;
    color: #fffdf9;
    border-color: #A67C62;
    transform: scale(1.08);
}

.category-arrow:active {
    transform: scale(0.94);
}

/* LOADING */

.categories-loading {
    width: 100%;
    text-align: center;
    color: #8D7767;
    padding: 25px;
}

/* TABLET */

@media (max-width: 900px) {

    .categories-section {
        padding: 50px 4%;
    }

    .category-card {
        flex-basis: 140px;
        min-width: 140px;
        height: 150px;
    }

    .categories {
        gap: 14px;
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .categories-section {
        padding: 38px 15px;
    }

    .categories-wrapper {
        gap: 5px;
    }

    .categories {
        gap: 12px;
        padding: 15px 5px 22px;
    }

    .category-card {
        flex-basis: 125px;
        min-width: 125px;
        height: 140px;
        border-radius: 19px;
        gap: 12px;
        padding: 15px 10px;
    }

    .category-card .category-icon {
        width: 53px;
        height: 53px;
        border-radius: 16px;
    }

    .category-card .category-icon svg {
        width: 27px;
        height: 27px;
    }

    .category-card h3 {
        font-size: 12px;
    }

    .category-arrow {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 21px;
    }

    .category-card:hover {
        transform: translateY(-3px);
    }

}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .category-card,
    .category-card::before,
    .category-card .category-icon,
    .category-arrow {
        transition: none;
    }

}
.cart-btn {
    position: relative;
}

/* =====================================
   CART BADGE
===================================== */

.cart-btn {
    position: relative;
}

.cart-count {
    display: inline-flex !important;
    position: absolute;
    top: -7px;
    left: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #c0392b;
    color: #fffdf9;
    font-size: 12px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cart-count[hidden] {
    display: none !important;
}
/* USER ACCOUNT */
.user-name {
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
}

.logout-btn {
    background: var(--nude);
    color: var(--dark);
    border: 1px solid var(--beige);
    border-radius: 8px;
    padding: 9px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: 0.3s;
}

.logout-btn:hover {
    background: var(--brown);
    color: white;
}
/* ACCOUNT DROPDOWN */
.account-dropdown {
    position: relative;
    display: inline-block;
    font-family: inherit;
}

.account-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--nude);
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: 0.25s;
}

.account-trigger:hover {
    background: var(--cream);
    border-color: var(--brown);
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: var(--nude);
    border-radius: 50%;
}

.account-arrow {
    font-size: 18px;
    transition: transform 0.25s;
}

.account-dropdown.open .account-arrow {
    transform: rotate(180deg);
}

.account-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 190px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--nude);
    border-radius: 13px;
    box-shadow: 0 10px 30px rgba(73, 55, 45, 0.12);
    z-index: 1000;
}

.account-dropdown.open .account-menu {
    display: block;
    animation: accountFade 0.2s ease;
}

.account-menu a,
.account-menu .logout-btn {
    display: block;
    width: 100%;
    padding: 11px 12px;
    color: var(--dark);
    background: transparent;
    border: none;
    border-radius: 8px;
    text-align: right;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    box-sizing: border-box;
}

.account-menu a:hover {
    background: var(--cream);
}

.account-menu .logout-btn {
    color: #a34d45;
}

.account-menu .logout-btn:hover {
    background: #f9eeeb;
}

@keyframes accountFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* MOBILE ACCOUNT FIX */
@media (max-width: 700px) {

    .navigation.show .mobile-auth {
        display: flex !important;
        width: 100%;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 20;
    }

    .mobile-auth .account-dropdown {
        display: block;
        width: 100%;
    }

    .mobile-auth .account-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 12px;
    }

    .mobile-auth .account-menu {
        position: relative;
        top: 8px;
        right: 0;
        width: 100%;
        margin-bottom: 10px;
    }
    /* =================================
   DIYARBOOK MOBILE BOTTOM NAV
================================= */

.bottom-nav {
    display: none;
}

@media (max-width: 768px) {

    body {
        padding-bottom: 95px !important;
    }

    .bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;
        height: 76px !important;

        padding: 8px 8px env(safe-area-inset-bottom) !important;
        box-sizing: border-box !important;

        justify-content: space-around !important;
        align-items: center !important;

        background: #FFFDF9 !important;
        border-top: 1px solid #E8D8C8 !important;
        border-radius: 18px 18px 0 0;

        box-shadow: 0 -5px 25px rgba(73, 55, 45, 0.10) !important;

        z-index: 999999 !important;
    }

    /* هر گزینه */
    .bottom-nav-item {
        flex: 1 !important;

        display: flex !important;
        flex-direction: column !important;

        justify-content: center !important;
        align-items: center !important;

        gap: 6px !important;

        color: #A89588 !important;
        text-decoration: none !important;

        font-size: 11px !important;
        font-weight: 600 !important;

        transition: all 0.25s ease;
    }

    /* محفظه آیکون */
    .bottom-nav-icon {
        width: 32px !important;
        height: 30px !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        font-size: 0 !important;
    }

    /* آیکون SVG */
    .bottom-nav-icon svg {
        display: block !important;

        width: 24px !important;
        height: 24px !important;

        fill: none !important;
        stroke: currentColor !important;

        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;

        overflow: visible !important;
    }

    /* گزینه فعال */
    .bottom-nav-item.active {
        color: #8B6048 !important;
    }

    .bottom-nav-item.active .bottom-nav-icon {
        transform: translateY(-2px);
    }

    .bottom-nav-item.active span:last-child {
        font-weight: 800 !important;
    }

}

}
