/* 
  Theme Name: Havhavlu
  Description: Cute, pet-friendly ecommerce theme
*/

:root {
  --primary-color: #FFB347; /* Soft Orange */
  --primary-hover: #FFA21A;
  --secondary-color: #81D4FA; /* Soft Blue */
  --text-dark: #4a4a4a;
  --text-light: #7a7a7a;
  --bg-color: #fafafa;
  --white: #ffffff;
  --border-color: #eeeeee;
  --border-radius: 16px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

ul {
  list-style: none;
}

/* =========================================
   HEADER STYLES
   ========================================= */
.site-header {
  background-color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 600;
}

.header-main {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.header-left, .header-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-left {
  justify-content: flex-start;
}

.header-right {
  justify-content: flex-end;
  gap: 20px;
}

.header-center {
  flex: 0 0 auto;
  text-align: center;
}

.logo img {
  height: 80px; /* Adjust based on your logo proportions */
  width: auto;
  /*border-radius: 50%;*/
  object-fit: cover;
  /*border: 3px solid var(--primary-color);*/
  padding: 2px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: 25px;
}

.main-nav a {
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 5px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
  border-radius: 3px;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Header Icons */
.header-icon {
  font-size: 1.4rem;
  color: var(--text-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--bg-color);
  transition: var(--transition);
}

.header-icon:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff5252;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.site-footer {
  background-color: var(--white);
  padding: 60px 0 20px;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 0 20px;
}

.footer-widget h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 800;
}

.footer-widget p, .footer-widget li {
  color: var(--text-light);
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-light);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  border-radius: 50%;
  color: var(--text-dark);
  font-size: 1.2rem;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 30px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(255, 179, 71, 0.3);
}

.btn:hover {
  background-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 179, 71, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-color);
  box-shadow: 0 4px 10px rgba(129, 212, 250, 0.3);
}

.btn-secondary:hover {
  background-color: #64b5f6;
  box-shadow: 0 6px 15px rgba(129, 212, 250, 0.4);
}

/* =========================================
   DROPDOWN MENUS
   ========================================= */
.has-dropdown {
  position: relative;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  gap: 0 !important;
}
.has-dropdown:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li {
  position: relative;
  width: 100%;
}
.dropdown a {
  padding: 10px 20px !important;
  display: block;
  font-size: 0.95rem !important;
  text-transform: none !important;
  font-weight: 600 !important;
}
.dropdown a::after {
  display: none !important;
}
.dropdown a:hover {
  background: var(--bg-color);
}
.sub-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  gap: 0 !important;
}
.dropdown li:hover > .sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
  .header-main {
    flex-direction: column;
    gap: 15px;
  }
  
  .header-left, .header-right {
    justify-content: center;
  }
}
