/* =====================================================
   GLOBAL.CSS - CORE DESIGN SYSTEM
   PrintStudio by Studio2
   ===================================================== */

/* =====================================================
   ROOT VARIABLES
   ===================================================== */

:root {

  /* =====================================================
     COLORS
     ===================================================== */

  --color-primary: #7c3aed;
  --color-primary-dark: #6d28d9;
  --color-primary-light: #ede9fe;

  --color-accent-pink: #ec4899;
  --color-accent-orange: #f97316;

  --color-success: #16a34a;
  --color-danger: #dc2626;
  --color-warning: #f59e0b;

  --color-white: #ffffff;
  --color-black: #0f172a;

  --color-text: #1e293b;
  --color-text-light: #64748b;

  --color-border: #e2e8f0;

  --color-light-bg: #f8fafc;

  /* =====================================================
     TYPOGRAPHY
     ===================================================== */

  --font-family:
    "Inter",
    "Segoe UI",
    sans-serif;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;

  /* =====================================================
     SPACING
     ===================================================== */

  --spacing-1: 8px;
  --spacing-2: 16px;
  --spacing-3: 24px;
  --spacing-4: 32px;
  --spacing-5: 48px;
  --spacing-6: 72px;
  --spacing-7: 100px;

  /* =====================================================
     RADIUS
     ===================================================== */

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 999px;

  /* =====================================================
     SHADOWS
     ===================================================== */

  --shadow-sm:
    0 4px 12px rgba(15,23,42,0.05);

  --shadow-md:
    0 10px 30px rgba(15,23,42,0.08);

  --shadow-lg:
    0 20px 40px rgba(15,23,42,0.12);

  --shadow-xl:
    0 25px 60px rgba(15,23,42,0.18);

  /* =====================================================
     TRANSITIONS
     ===================================================== */

  --transition-fast: 180ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

}

/* =====================================================
   RESET
   ===================================================== */

* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {

  font-family: var(--font-family);

  font-size: var(--font-size-md);

  color: var(--color-text);

  background-color: var(--color-white);

  line-height: 1.6;

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
}

/* =====================================================
   MEDIA
   ===================================================== */

img {
  display: block;

  max-width: 100%;
}

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

button {
  cursor: pointer;

  border: none;

  background: none;
}

a {
  color: inherit;

  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* =====================================================
   CONTAINER
   ===================================================== */

.container {

  width: 100%;
  max-width: 1320px;

  margin: 0 auto;

  padding:
    0
    24px;

}

/* =====================================================
   SITE WRAPPER
   ===================================================== */

.site-wrapper {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
}

/* =====================================================
   SECTION
   ===================================================== */

.section {
  padding: 48px 0;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {

  line-height: 1.15;

  font-weight: 900;

  color: var(--color-black);

}

p {
  color: var(--color-text-light);
}

/* =====================================================
   UTILITIES
   ===================================================== */

.hidden {
  display: none !important;
}

.mt-20 {
  margin-top: 20px;
}

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

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {

  position: relative;

  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding:
    16px
    28px;

  border-radius: var(--radius-full);

  font-weight: 800;

  transition: var(--transition-normal);

  white-space: nowrap;
}

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

.btn-primary {

  color: var(--color-white);

  background:
    linear-gradient(
      135deg,
      var(--color-primary),
      var(--color-accent-pink)
    );

  box-shadow:
    0 12px 30px rgba(124,58,237,0.3);

}

.btn-primary:hover {

  background:
    linear-gradient(
      135deg,
      var(--color-primary-dark),
      #db2777
    );

}

.btn-secondary {

  color: var(--color-primary);

  background-color: var(--color-primary-light);

}

.btn-secondary:hover {
  background-color: #ddd6fe;
}

.btn-outline {

  border: 1px solid rgba(124,58,237,0.15);

  color: var(--color-primary);

  background-color: transparent;

}

.btn-outline:hover {
  background-color: rgba(124,58,237,0.05);
}

/* =====================================================
   FORM ELEMENTS
   ===================================================== */

.form-group {
  margin-bottom: var(--spacing-3);
}

.form-label {

  display: block;

  margin-bottom: 10px;

  font-weight: 700;
}

.form-input,
.form-textarea,
.form-select {

  width: 100%;

  padding:
    16px
    18px;

  border-radius: var(--radius-lg);

  border: 1px solid rgba(226,232,240,0.9);

  background-color: var(--color-white);

  transition: var(--transition-fast);

}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {

  outline: none;

  border-color: var(--color-primary);

  box-shadow:
    0 0 0 4px rgba(124,58,237,0.08);

}

.form-textarea {
  resize: vertical;
}

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

.navbar {

  position: sticky;
  top: 0;

  z-index: 100;

  width: 100%;

  background-color:
    rgba(255,255,255,0.75);

  backdrop-filter: blur(18px);

  border-bottom:
    1px solid rgba(226,232,240,0.7);

  transition: var(--transition-normal);

}

.navbar.scrolled {

  box-shadow:
    0 12px 40px rgba(15,23,42,0.08);

}

.nav-container {

  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 88px;

  gap: 24px;
}

/* =====================================================
   LOGO
   ===================================================== */

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0;
  letter-spacing: -0.5px;
}

.logo-flag {
  font-size: 1.3rem;
  margin-right: 6px;
  line-height: 1;
}

.logo-pakistan {
  color: #01411C;
  font-weight: 900;
}

.logo-print {
  color: white;
  background: #01411C;
  padding: 1px 8px 2px 6px;
  border-radius: 6px;
  margin-left: 1px;
  font-weight: 900;
}

.logo-sub {
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--color-text-light);
  text-transform: uppercase;
  margin-top: 2px;
}

/* =====================================================
   NAV MENU
   ===================================================== */

.nav-menu {

  display: flex;
  align-items: center;

  gap: 30px;

}

.nav-link {

  position: relative;

  font-size: 1rem;

  font-weight: 700;

  color: var(--color-black);

  transition: var(--transition-normal);

  -webkit-font-smoothing: antialiased;

  text-rendering: optimizeLegibility;

}


.nav-link::after {

  content: '';

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0;
  height: 2px;

  background-color: var(--color-primary);

  transition: var(--transition-normal);

}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* =====================================================
   NAV CTA
   ===================================================== */

.nav-cta {

  position: relative;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  min-width: auto;

  height: 54px;

  padding:
    0
    20px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      #7c3aed 0%,
      #ec4899 100%
    );

  color: white;

  font-size: 1.1rem;

  font-weight: 800;

  box-shadow:
    0 14px 34px rgba(124,58,237,0.26);

  text-decoration: none;

}

/* =====================================================
   BASKET ICON
   ===================================================== */

.basket-icon {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.nav-cta:hover .basket-icon {
  transform: scale(1.15);
}

/* =====================================================
   BASKET BADGE
   ===================================================== */

.floating-basket-count {

  width: 32px;
  height: 32px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background-color: white;

  color: #7c3aed;

  font-size: 0.85rem;

  font-weight: 900;

  box-shadow:
    0 4px 12px rgba(15,23,42,0.08);

  flex-shrink: 0;
  margin-left: -8px;

}


/* =====================================================
   MOBILE TOGGLE
   ===================================================== */

.mobile-toggle {

  display: none;

  width: 52px;
  height: 52px;

  border-radius: 50%;

  background-color: var(--color-light-bg);

  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 5px;
}

.mobile-toggle span {

  width: 22px;
  height: 2px;

  background-color: var(--color-black);

  transition: var(--transition-fast);

}

/* =====================================================
   SECTION TAG
   ===================================================== */

.section-tag {

  display: inline-flex;
  align-items: center;

  gap: 10px;

  padding:
    12px
    18px;

  border-radius: var(--radius-full);

  background-color: rgba(255,255,255,0.9);

  border: 1px solid rgba(226,232,240,0.8);

  box-shadow: var(--shadow-sm);

  margin-bottom: var(--spacing-3);

}

.section-tag-dot {

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--color-primary),
      var(--color-accent-pink)
    );

}

.section-tag-text {

  font-size: var(--font-size-sm);
  font-weight: 800;

}

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

.footer {

  margin-top: auto;

  padding-top: var(--spacing-6);

background:
  linear-gradient(
    135deg,
    #16213e 0%,
    #1b2a4a 35%,
    #1e1b4b 70%,
    #312e81 100%
  );
  color: rgba(255,255,255,0.85);
}

.footer-grid {

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: var(--spacing-5);

  padding-bottom: var(--spacing-5);

}

.footer-title {

  font-size: var(--font-size-xl);

  margin-bottom: var(--spacing-3);

  color: var(--color-white);

}

.footer-links {

  display: flex;
  flex-direction: column;

  gap: 14px;
}

.footer-links a {

  color: rgba(255,255,255,0.7);

  transition: var(--transition-fast);

}

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

.footer-text {
  color: rgba(255,255,255,0.7);
}

.footer-bottom {

  padding:
    24px
    0;

  border-top:
    1px solid rgba(255,255,255,0.08);

  text-align: center;

}

.footer-bottom p {
  color: rgba(255,255,255,0.55);
}

/* FOOTER LOGO COLORS */

.footer .logo-main {
  color: white;
}

.footer .logo-pakistan {
  color: #ffffff;
}

.footer .logo-print {
  background: #05451e;
  color: #ffffff;
}

.footer .logo-sub {
  color: rgba(255,255,255,0.68);
}

/* =====================================================
   GLOBAL TOAST
   ===================================================== */

.global-toast {

  position: fixed;

  top: 24px;
  right: 24px;

  z-index: 999;

  min-width: 320px;

  padding:
    18px
    22px;

  border-radius: var(--radius-xl);

  color: var(--color-white);

  opacity: 0;
  visibility: hidden;

  transform:
    translateY(-20px);

  transition: var(--transition-normal);

  box-shadow: var(--shadow-xl);

}

.global-toast.active {

  opacity: 1;
  visibility: visible;

  transform:
    translateY(0);

}

.global-toast.success {

  background:
    linear-gradient(
      135deg,
      #16a34a,
      #22c55e
    );

}

.global-toast.error {

  background:
    linear-gradient(
      135deg,
      #dc2626,
      #ef4444
    );

}

.global-toast-content {

  display: flex;
  align-items: center;

  gap: 12px;

}

.global-toast-icon {
  font-size: 1.2rem;
}

/* =====================================================
   LOADER
   ===================================================== */

.page-loader {

  position: fixed;
  inset: 0;

  z-index: 1000;

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

  background-color:
    rgba(255,255,255,0.9);

  backdrop-filter: blur(10px);

}

.page-loader.hidden {
  display: none;
}

.loader-spinner {

  width: 60px;
  height: 60px;

  border-radius: 50%;

  border:
    5px solid rgba(124,58,237,0.15);

  border-top-color:
    var(--color-primary);

  animation:
    spin 1s linear infinite;

}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes spin {

  to {
    transform: rotate(360deg);
  }

}

@keyframes fadeIn {

  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

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

@media (max-width: 768px) {

  .mobile-toggle {
    display: flex;
  }

  .nav-cta {
    display: flex;
    position: fixed;
    top: 18px;
    right: 72px;
    z-index: 1001;
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

 .nav-menu.active {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .nav-link {
    font-size: 1.3rem;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

}