/* ============================================
   Global Styles - Anas Plastic Enterprises
   Complete Responsive Version
   ============================================ */

/* CSS Variables */
:root {
  --primary-color: #1e3a8a;
  --primary-dark: #152c6b;
  --primary-light: #3b5cb8;
  --secondary-color: #dc2626;
  --secondary-dark: #b91c1c;
  --secondary-light: #ef4444;
  --background: #ffffff;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --text-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --container-width: 1200px;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
  overflow-x: hidden;
  min-width: 320px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  font-weight: 700;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Page Title */
.page-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.section-title {
  font-size: 2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-white);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--secondary-color);
  color: var(--text-white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  background: var(--background);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary-color);
}

.navbar {
  padding: 0;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 2px;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo span {
  font-size: 0.7rem;
  color: var(--secondary-color);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link {
  padding: 10px 18px;
  color: var(--text-dark);
  font-weight: 500;
  border-radius: 25px;
  transition: var(--transition);
  position: relative;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: rgba(30, 58, 138, 0.05);
}

.nav-link.active {
  font-weight: 600;
}

.cart-link {
  position: relative;
  background: var(--primary-color) !important;
  color: white !important;
  padding: 10px 20px !important;
}

.cart-link:hover {
  background: var(--primary-dark) !important;
  color: white !important;
}

.cart-link.active {
  background: var(--primary-dark) !important;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--secondary-color);
  color: white;
  font-size: 0.7rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid white;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 100;
}

.bar {
  display: block;
  width: 100%;
  height: 3px;
  margin: 5px 0;
  transition: var(--transition);
  background-color: var(--text-dark);
  border-radius: 3px;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--primary-color);
  color: var(--text-white);
  padding: 60px 0 0;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-white);
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #ffd700;
}

.footer-section p {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-section a {
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-section a:hover {
  color: #ffd700;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: #ffd700;
  padding-left: 8px;
}

.footer-section i {
  margin-right: 10px;
  color: #ffd700;
  width: 16px;
  text-align: center;
}

/* Footer Bottom - LESS PROMINENT DEVELOPER CREDIT */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-bottom .copyright {
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-bottom .developer-credit {
  font-size: 0.7rem;
  color: #64748b;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-bottom .developer-credit:hover {
  opacity: 1;
}

.footer-bottom .developer-credit a {
  color: #94a3b8;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom .developer-credit a:hover {
  color: #cbd5e1;
  text-decoration: underline;
}

.footer-bottom .separator {
  color: #475569;
  margin: 0 5px;
  opacity: 0.5;
}

/* Cart Notification */
.cart-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  max-width: 90vw;
}

.cart-notification.show {
  transform: translateX(0);
}

.cart-notification a {
  color: white;
  text-decoration: underline;
  font-weight: 700;
  margin-left: 5px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    gap: 0;
    flex-direction: column;
    background: var(--background);
    width: 100%;
    height: calc(100vh - 80px);
    text-align: center;
    transition: 0.3s ease-in-out;
    box-shadow: var(--shadow-xl);
    padding: 40px 0;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    margin: 8px 0;
    font-size: 1.2rem;
    padding: 15px 25px;
    display: block;
    border-radius: 0;
  }

  .cart-link {
    display: inline-flex !important;
    margin: 15px auto !important;
    width: auto;
    border-radius: 25px !important;
  }

  .page-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-bottom {
    padding: 15px 20px;
    gap: 6px;
  }

  .footer-bottom .developer-credit {
    font-size: 0.65rem;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .nav-container {
    height: 70px;
  }

  .logo h1 {
    font-size: 1.3rem;
  }

  .logo span {
    font-size: 0.65rem;
  }

  .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .page-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-section {
    text-align: center;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .footer-bottom {
    padding: 12px 15px;
  }

  .footer-bottom .copyright {
    font-size: 0.8rem;
  }

  .footer-bottom .developer-credit {
    font-size: 0.6rem;
  }
}

@media screen and (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .logo h1 {
    font-size: 1.1rem;
  }

  .footer-bottom .developer-credit {
    font-size: 0.55rem;
  }
}

/* Footer Google Maps Link Styles */
.footer-contact-link {
  color: #cbd5e1;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-contact-link:hover {
  color: #ffd700;
  text-decoration: underline;
}

.footer-contact-link i {
  margin-right: 10px;
  color: #ffd700;
  width: 16px;
  text-align: center;
}
