*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, sans-serif;
}

body{
background:#f5f5f5;
color:#222;
}

header{
background:linear-gradient(to right,#fcfcfc,hsl(0, 33%, 99%));
padding:12px 5%;
display:flex;
justify-content:space-between;
align-items:center;
position:sticky;
top:0;
z-index:75;
gap:20px;
}

.brand-mark{
display:inline-flex;
align-items:center;
justify-content:center;
width:150px;
height:80px;
padding:5px 10px;
background:transparent;
border-radius:8px;
text-decoration:none;
flex:0 0 auto;
}

.brand-logo{
max-width:100%;
max-height:100%;
width:100%;
height:auto;
object-fit:contain;
display:block;
}

nav{
display:flex;
align-items:center;
gap:18px;
flex-wrap:wrap;
}

nav a{
color:rgb(0, 0, 0);
text-decoration:none;
margin-left:0;
padding:10px 12px;
font-weight:bold;
font-size:16px;
transition:.3s;
border-radius:12px;
}

.cart-icon{
position:relative;
cursor:pointer;
margin-left:0;
color:black;
transition:.3s;
}

.cart-icon:hover{
color:gold;
}

.cart-icon svg{
width:28px;
height:28px;
fill:currentColor;
}

@media (max-width: 900px) {
  header {
    padding:16px 5%;
    gap:16px;
  }

  .brand-mark {
    width:120px;
    height:60px;
    padding:5px 8px;
  }

  nav {
    width:100%;
    justify-content:flex-end;
    gap:14px;
  }

  nav a {
    font-size:15px;
    padding:9px 11px;
  }

  .cart-icon svg {
    width:26px;
    height:26px;
  }
}

@media (max-width: 640px) {
  header {
    flex-direction:column;
    align-items:stretch;
    padding:14px 5%;
  }

  .brand-mark {
    width:100%;
    max-width:240px;
    height:100px;
    margin:0 auto;
  }

  nav {
    justify-content:center;
    gap:12px;
  }

  nav a {
    font-size:14px;
    padding:10px 12px;
  }

  .cart-icon {
    margin-top:12px;
    align-self:center;
  }
}

.cart-count{
position:absolute;
top:-8px;
right:-8px;
background:red;
color:white;
border-radius:50%;
padding:2px 6px;
font-size:12px;
font-weight:bold;
min-width:18px;
text-align:center;
}

nav a:hover,
.cart-icon:hover{
color:gold;
}

.hero{
height:90vh;
background:url('Perfum for men.png') center/cover;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
color:white;
position:relative;
}

.hero-content{
background:rgba(0,0,0,0.6);
padding:50px;
border-radius:20px;
position:relative;
}

.hero h1{
font-size:60px;
margin-bottom:20px;
}

.hero p{
font-size:22px;
margin-bottom:30px;
}




.btn{
background:gold;
padding:15px 35px;
border:none;
border-radius:30px;
font-weight:bold;
cursor:pointer;
transition:.3s;
}

.btn:hover{
background:#fff;
}

.btn:disabled{
opacity:.7;
cursor:not-allowed;
}

section{
padding:80px 8%;
}

.section-title{
text-align:center;
font-size:42px;
margin-bottom:50px;
color:#0d1b2a;
}

.products{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:30px;
}

.card{
background:white;
border-radius:20px;
overflow:hidden;
box-shadow:0 5px 20px rgba(0,0,0,.1);
transition:.3s;
}

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

.product-image{
position:relative;
cursor:pointer;
overflow:hidden;
}

.product-image img{
width:100%;
height:260px;
object-fit:cover;
transition:transform .3s ease;
}

.product-image:hover img{
transform:scale(1.03);
}

.image-overlay-label{
position:absolute;
bottom:14px;
left:14px;
background:rgba(0,0,0,.66);
color:white;
padding:8px 12px;
border-radius:999px;
font-size:13px;
font-weight:700;
}

.product-overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,.9);
display:flex;
justify-content:center;
align-items:center;
z-index:999;
padding:24px;
}

.product-overlay.hidden{
display:none;
}

.overlay-panel{
position:relative;
max-width:1000px;
width:100%;
max-height:90vh;
overflow:hidden;
}

.overlay-image-wrapper{
position:relative;
background:#111;
display:flex;
justify-content:center;
align-items:center;
}

.overlay-image-wrapper img{
max-width:100%;
max-height:84vh;
width:auto;
height:auto;
object-fit:contain;
}

.overlay-close{
position:absolute;
top:14px;
right:14px;
background:rgba(255,255,255,.95);
border:none;
width:42px;
height:42px;
border-radius:50%;
font-size:28px;
line-height:1;
cursor:pointer;
box-shadow:0 10px 24px rgba(0,0,0,.4);
}

.overlay-nav{
position:absolute;
top:50%;
transform:translateY(-50%);
background:rgba(255,255,255,.9);
border:none;
width:52px;
height:52px;
border-radius:50%;
font-size:28px;
cursor:pointer;
box-shadow:0 10px 24px rgba(0,0,0,.35);
}

.overlay-nav.prev{
left:18px;
}

.overlay-nav.next{
right:18px;
}

.overlay-indicator{
margin-top:12px;
color:white;
font-size:16px;
text-align:center;
}

.card img{
width:100%;
height:260px;
object-fit:cover;
}

.card-content{
padding:25px;
text-align:center;
}

.card h3{
margin-bottom:15px;
font-size:28px;
}

.price{
color:#c89b00;
font-size:22px;
font-weight:bold;
margin-bottom:15px;
}

.original-price{
text-decoration: line-through;
color: #999;
font-size: 18px;
margin-left: 10px;
}

.discount-badge{
position: absolute;
top: 10px;
right: 10px;
background: red;
color: white;
padding: 5px 10px;
border-radius: 15px;
font-size: 12px;
font-weight: bold;
z-index: 10;
}

.product-image{
position: relative;
}

.description{
font-size:16px;
color:#666;
line-height:1.5;
margin-bottom:20px;
}

.card-buttons{
display:flex;
gap:10px;
justify-content:center;
}

.add-to-cart-btn{
background:#28a745;
color:white;
border:none;
padding:12px 20px;
border-radius:25px;
cursor:pointer;
font-weight:bold;
transition:.3s;
}

.add-to-cart-btn:hover{
background:#218838;
}

.buy-btn{
background:#0d1b2a;
color:white;
border:none;
padding:12px 28px;
border-radius:25px;
cursor:pointer;
}

.buy-btn:hover{
background:gold;
color:#000;
}

.about{
background:#0d1b2a;
color:white;
text-align:center;
line-height:1.8;
}

.about-title{
color:gold;
}

.contact{
text-align:center;
scroll-margin-top:110px;
}

.selected-product-note{
display:none;
margin:0 auto 18px;
padding:12px 18px;
max-width:600px;
border-radius:14px;
background:#fff7d1;
color:#0d1b2a;
font-weight:bold;
box-shadow:0 4px 14px rgba(0,0,0,.08);
}

.selected-product-note.is-visible{
display:block;
}

.contact-info{
margin-bottom:10px;
font-size:18px;
}

.contact-info a{
color:#0d1b2a;
font-weight:bold;
text-decoration:none;
}

.contact-actions{
display:flex;
justify-content:center;
gap:15px;
flex-wrap:wrap;
margin:25px 0 35px;
}

.contact-btn{
display:inline-block;
text-decoration:none;
display:inline-flex;
align-items:center;
gap:10px;
}

.whatsapp-btn{
background:#25d366;
color:#fff;
}

.whatsapp-btn:hover{
background:#1ebe5d;
color:#fff;
}

.email-btn{
background:#0d1b2a;
color:#fff;
}

.email-btn:hover{
background:#243b55;
color:#fff;
}

.contact-icon{
display:inline-flex;
align-items:center;
justify-content:center;
width:22px;
height:22px;
}

.contact-icon svg{
width:22px;
height:22px;
fill:currentColor;
}

@media(max-width:768px){
.brand-mark{
width:96px;
height:60px;
}

.hero h1{
font-size:42px;
}

.hero-content{
padding:30px;
}

section{
padding:60px 4%;
}

.products{
gap:20px;
grid-template-columns:1fr;
}

.card-content{
padding:20px;
}

.card h3{
font-size:24px;
}

.price{
font-size:20px;
}

.description{
font-size:14px;
margin-bottom:15px;
}

.card-buttons{
flex-direction:column;
gap:8px;
}

.add-to-cart-btn,
.buy-btn{
width:100%;
padding:14px;
font-size:16px;
}

.overlay-nav{
width:44px;
height:44px;
font-size:24px;
}

.overlay-close{
width:36px;
height:36px;
font-size:24px;
}

.overlay-indicator{
font-size:14px;
}

.cart-modal-content{
width:90%;
max-width:400px;
}

.contact-actions{
flex-direction:column;
gap:10px;
}

.contact-btn{
justify-content:center;
padding:12px 20px;
font-size:16px;
}
}

@media (max-width: 480px) {
.hero h1{
font-size:32px;
}

.hero p{
font-size:18px;
}

.section-title{
font-size:32px;
margin-bottom:30px;
}

.card h3{
font-size:22px;
}

.price{
font-size:18px;
}

.description{
font-size:13px;
}
}

.contact-form{
display:flex;
flex-direction:column;
align-items:center;
}

input,
select,
textarea{
width:70%;
max-width:600px;
padding:15px;
margin:10px 0;
border-radius:10px;
border:1px solid #ccc;
font:inherit;
}

textarea{
height:120px;
resize:vertical;
}

.form-status{
margin-top:15px;
min-height:24px;
color:#0d1b2a;
font-weight:bold;
}

.form-status.success{
  color:#0a6f2d;
}

.order-success{
  width:100%;
  padding:20px;
  margin:0 auto 20px;
  border-radius:15px;
  background:#e6ffed;
  border:1px solid #8ee0b1;
  color:#064e2f;
  text-align:center;
}

.order-success h2{
  margin:0 0 10px;
  font-size:1.6rem;
}

.order-success p{
  margin:8px 0;
}

footer{
background:#111;
color:white;
text-align:center;
padding:20px;
margin-top:50px;
}

.footer-content{
max-width:1200px;
margin:0 auto;
}

.footer-contact{
margin-top:15px;
padding-top:15px;
border-top:1px solid #444;
}

.footer-contact p{
margin:5px 0;
}

.footer-contact a{
color:#ffd700;
text-decoration:none;
}

.footer-contact a:hover{
text-decoration:underline;
}

.checkout-page{
padding:80px 8%;
max-width:1200px;
margin:0 auto;
}

.cart-modal{
display:none;
position:fixed;
z-index:100;
left:0;
top:0;
width:100%;
height:100%;
overflow:auto;
background-color:rgba(0,0,0,0.4);
}

.cart-modal-content{
background-color:#fefefe;
margin:15% auto;
padding:20px;
border:1px solid #888;
width:80%;
max-width:600px;
border-radius:10px;
}

.close{
color:#aaa;
float:right;
font-size:28px;
font-weight:bold;
cursor:pointer;
}

.close:hover,
.close:focus{
color:black;
text-decoration:none;
cursor:pointer;
}

#cart-items{
margin:20px 0;
}

.cart-item{
display:flex;
justify-content:space-between;
align-items:center;
padding:10px 0;
border-bottom:1px solid #ddd;
}

.cart-item button{
background:red;
color:white;
border:none;
padding:5px 10px;
border-radius:5px;
cursor:pointer;
}

#cart-total{
font-size:20px;
font-weight:bold;
margin:20px 0;
text-align:right;
}

.cart-buttons{
display:flex;
gap:10px;
justify-content:center;
flex-wrap:wrap;
}

.btn.checkout-whatsapp-btn{
background:#25d366;
color:white;
border:none;
padding:12px 25px;
border-radius:30px;
font-weight:bold;
cursor:pointer;
transition:.3s;
}

.btn.checkout-whatsapp-btn:hover{
background:#1ebe5d;
}

.btn.checkout-email-btn{
background:#0d1b2a;
color:white;
border:none;
padding:12px 25px;
border-radius:30px;
font-weight:bold;
cursor:pointer;
transition:.3s;
}

.btn.checkout-email-btn:hover{
background:#243b55;
}

.checkout-banner{
position:fixed;
bottom:0;
left:0;
right:0;
background:rgba(13,27,42,0.95);
color:white;
padding:12px 16px;
display:flex;
justify-content:center;
box-shadow:0 -4px 20px rgba(0,0,0,.2);
z-index:200;
}

.checkout-banner.hidden{
display:none;
}

.checkout-banner-content{
display:flex;
align-items:center;
gap:10px;
flex-wrap:wrap;
justify-content:center;
width:100%;
}

.checkout-banner-content span{
font-weight:bold;
}

@media(max-width:768px){
.brand-mark{
width:96px;
height:60px;
}

.hero h1{
font-size:42px;
}

.hero-content{
padding:30px;
}

section{
padding:60px 4%;
}

.products{
gap:20px;
}

.card img{
height:200px;
}

.card-content{
padding:20px;
}

.card h3{
font-size:24px;
}

.price{
font-size:20px;
}

.card-buttons{
flex-direction:column;
gap:8px;
}

.contact-actions{
flex-direction:column;
align-items:center;
gap:10px;
}

input,
textarea{
width:100%;
}
}

@media(max-width:480px){
header{
padding:10px 4%;
flex-wrap:wrap;
}

nav{
display:flex;
flex-wrap:wrap;
gap:15px;
}



nav a{
margin-left:0;
font-size:14px;
}

.cart-icon{
margin-left:0;
}

.hero h1{
font-size:32px;
}

.hero p{
font-size:18px;
}

.section-title{
font-size:32px;
margin-bottom:30px;
}

.products{
grid-template-columns:1fr;
gap:15px;
}

.card img{
height:180px;
}

.card h3{
font-size:22px;
}

.price{
font-size:18px;
}

.about{
padding:40px 4%;
}

.contact{
padding:40px 4%;
}

.contact-info{
font-size:16px;
}

.contact-actions{
margin:20px 0 30px;
}

.btn{
padding:12px 25px;
font-size:14px;
}

.cart-modal-content{
width:95%;
margin:20% auto;
}
}

/* Enhanced Responsive Design */
@media (min-width: 1200px) {
  /* Desktop optimization */
  .products {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  section {
    padding: 100px 8%;
  }
  
  .hero h1 {
    font-size: 72px;
  }
  
  .hero p {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  /* Tablet optimization */
  .products {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .card h3 {
    font-size: 24px;
  }
  
  .price {
    font-size: 20px;
  }
  
  .description {
    font-size: 14px;
  }
  
  .card-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .add-to-cart-btn,
  .buy-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }
  
  .login-modal-content,
  .order-history-modal-content,
  .order-tracking-modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 15px;
  }
  
  .login-modal-content h2,
  .order-history-modal-content h2,
  .order-tracking-modal-content h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  /* Mobile optimization */
  .products {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .card {
    border-radius: 15px;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .card h3 {
    font-size: 20px;
  }
  
  .price {
    font-size: 18px;
  }
  
  .original-price {
    font-size: 16px;
  }
  
  .description {
    font-size: 13px;
  }
  
  .discount-badge {
    padding: 4px 8px;
    font-size: 10px;
  }
  
  nav a,
  .user-account a {
    font-size: 14px;
    padding: 8px 10px;
    min-height: 44px; /* Touch target */
    display: flex;
    align-items: center;
  }
  
  .btn {
    padding: 14px 20px;
    font-size: 16px;
    min-height: 44px;
  }
  
  .cart-icon {
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
  }
  
  .login-modal-content,
  .order-history-modal-content,
  .order-tracking-modal-content {
    width: 98%;
    margin: 5% auto;
    padding: 10px;
  }
  
  .login-modal-content input,
  .order-history-modal-content input,
  .order-tracking-modal-content input {
    padding: 12px;
    font-size: 16px;
  }
  
  .login-modal-content .btn,
  .order-history-modal-content .btn,
  .order-tracking-modal-content .btn {
    padding: 12px;
    font-size: 16px;
  }
}

/* Login and Account Styles */
.user-account a:hover {
color: gold;
}

.user-account a:hover {
color: gold;
}

.login-modal, .order-history-modal, .order-tracking-modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}

.login-modal-content, .order-history-modal-content, .order-tracking-modal-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 90%;
max-width: 400px;
border-radius: 10px;
position: relative;
}

.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}

.close:hover {
color: black;
}

.login-modal-content h2, .order-history-modal-content h2, .order-tracking-modal-content h2 {
text-align: center;
margin-bottom: 20px;
}

.login-modal-content form, .order-history-modal-content form, .order-tracking-modal-content form {
display: flex;
flex-direction: column;
gap: 15px;
}

.login-modal-content input, .order-history-modal-content input, .order-tracking-modal-content input {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}

.login-modal-content .btn, .order-history-modal-content .btn, .order-tracking-modal-content .btn {
align-self: center;
}

#user-profile {
text-align: center;
}

#user-profile .btn {
margin: 10px;
}

#order-history-list {
max-height: 300px;
overflow-y: auto;
}

.order-item {
border: 1px solid #ddd;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
}

.order-item h4 {
margin: 0 0 10px 0;
}

.order-item p {
margin: 5px 0;
}
