/* ==============================
   GOOGLE FONT
================================= */

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

body{
    background:#f2e9de;
    font-family: Georgia, 'Times New Roman', serif;
    overflow-x:hidden;
}

/* ==============================
   NAVBAR
================================= */

.navbar{
    background:#8a7d75;
    padding:0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand{
    display: none;
}

.navbar .container {
    max-width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
}

.navbar-nav .nav-item{
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item:nth-child(4) {
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 8px 12px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.navbar-toggler:hover, .navbar-toggler:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.15) !important;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.nav-link{
    color:#eae0d5 !important;
    font-size:1.02rem;
    padding: 16px 28px !important;
    transition: background 0.3s, color 0.3s;
    text-decoration: none;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active{
    background: rgba(255, 255, 255, 0.08);
    color:#ffffff !important;
}

.signup-btn, .login-btn{
    background:#3d312a !important;
    color:#eae0d5 !important;
    border:1px solid #4a3e36 !important;
    border-radius:8px !important;
    padding:8px 28px !important;
    font-size:0.95rem !important;
    transition:all .3s ease !important;
    margin-left: 12px;
}

.signup-btn:hover, .login-btn:hover{
    background:#524239 !important;
    color:#ffffff !important;
    transform:translateY(-1px);
}

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

.hero{
    display:flex;
    align-items:stretch;
    justify-content:space-between;
    min-height:calc(100vh - 60px);
    background:#f2e9de;
}

/* LEFT */

.hero-left{
    width:50%;
    padding: 60px 100px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
}

.brand-logo{
    width:280px;
    margin-bottom: 50px;
}

.hero-left h1{
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size:3rem;
    color:#6e6158;
    line-height:1.3;
    font-weight:400;
    margin-bottom:40px;
    text-align:left;
}

.buy-btn{
    display:inline-block;
    width:140px;
    text-align:center;
    background:#a3968e;
    color:white;
    text-decoration:none;
    padding:10px 0;
    border-radius:25px;
    font-size:1.1rem;
    transition:all .3s ease;
}

.buy-btn:hover{
    background:#8e8179;
    color:white;
    transform:scale(1.03);
}

/* RIGHT */

.hero-right{
    width:50%;
}

.hero-right img{
    width:100%;
    height:100%;
    object-fit:cover;
}

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

@media(max-width:992px){

.navbar-collapse {
    background: #8e827b;
    padding: 15px 0;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.navbar-nav {
    width: 100%;
    flex-direction: column;
}

.navbar-nav .nav-item {
    border-left: none !important;
    border-right: none !important;
    margin: 8px 0 !important;
    width: 100%;
    justify-content: center;
}

.navbar-nav .nav-item.ms-lg-3,
.navbar-nav .nav-item.ms-lg-2 {
    margin-left: 0 !important;
}

.signup-btn, .login-btn {
    display: inline-block !important;
    width: 80%;
    max-width: 250px;
    text-align: center;
    margin-left: 0 !important;
}

.hero{
    flex-direction:column;
    height:auto;
}

.hero-left{
    width:100%;
    text-align:center;
    padding:50px 30px;
    align-items:center;
}

.hero-right{
    width:100%;
    height:400px;
}

.brand-logo{
    width:220px;
    margin:0 auto 35px auto;
}

.hero-left h1{
    font-size:2.2rem;
    text-align:center;
    margin-bottom:30px;
}

.buy-btn{
    margin:0 auto;
}

}

@media(max-width:576px){

.hero-left h1{
    font-size:1.8rem;
}

.hero-right{
    height:300px;
}

.buy-btn{
    width:130px;
    font-size:1rem;
}
}
/* Cart Icon Button */
.cart-icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #eae0d5;
    cursor: pointer;
}

/* Side Cart Drawer */
.side-cart {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden off-screen initially */
    width: 350px;
    max-width: 100%;
    height: 100vh;
    background: #f2e9de; 
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.side-cart.open {
    right: 0; /* Slides it in */
}

/* Dark Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none; 
}
.cart-overlay.open {
    display: block;
}

/* Cart Interiors */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #8a7d75;
    color: #eae0d5;
}
.close-cart {
    background: none;
    border: none;
    color: #eae0d5;
    font-size: 1.5rem;
    cursor: pointer;
}
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #d4c8bd;
    padding-bottom: 10px;
}
.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}
.remove-item {
    background: #b30000;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    margin-left: auto;
}
.cart-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #d4c8bd;
    text-align: center;
}
.checkout-btn {
    display: inline-block;
    background: #3d312a;
    color: #eae0d5;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    width: 100%;
}