/* ==========================================================================
 I Got Mugged — igm.css
 Production-ready, merged, restored layout, fully fixed
 ========================================================================== */

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

/* Theme variables */
:root {
 --primary: #000088;
 --secondary: #5D7482;
 --accent: #A7C4D6;
 --dark: #2D3142;
 --light: #FFFFFF;
 --gray: #F5F7FA;
 --success: #28a745;
}

.stock-status {
    display: none !important;
}


/* Base typography and body */
body {
 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
 color: var(--dark);
 line-height: 1.6;
 overflow-x: hidden;
 background: #f5f7fa;
}

/* About page override */
body.about-page {
 background: #ffffff;
}

/* Skip-to-main */
.skip-link {
 position: absolute;
 top: -40px;
 left: 0;
 background: var(--primary);
 color: white;
 padding: 8px;
 text-decoration: none;
 z-index: 100;
}
.skip-link:focus {
 top: 0;
}

/* --------------------
 Header & Navigation
 -------------------- */
header {
 background: var(--primary);
 padding: 0;
 position: sticky;
 top: 0;
 z-index: 50;
 box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
nav {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 2rem;
 display: flex;
 justify-content: space-between;
 align-items: center;
}
.logo {
 text-decoration: none;
 display: flex;
 align-items: center;
 gap: 0.5rem;
 margin: 0.5rem 0;
}
.logo img { height: 64px; }

.nav-links {
 display: flex;
 gap: 2rem;
 list-style: none;
 font-size: 1.4rem;
}
.nav-links a {
 color: var(--light);
 text-decoration: none;
 font-weight: 500;
 transition: opacity 0.3s;
 position: relative;
}
.nav-links a:hover,
.nav-links a:focus {
 opacity: 0.8;
}
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: -5px;
 left: 0;
 width: 0;
 height: 2px;
 background: var(--light);
 transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
 width: 100%;
}

/* Cart Icon */
.cart-icon {
 position: relative;
 cursor: pointer;
 font-size: 28px;
}
.cart-count {
 position: absolute;
 top: -8px;
 right: -8px;
 background: var(--accent);
 color: var(--dark);
 border-radius: 50%;
 width: 20px;
 height: 20px;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 0.75rem;
 font-weight: 700;
}

/* --------------------
 Hero
 -------------------- */
.hero {
 background: linear-gradient(135deg, #0039dc 0%, #1a89ec 45%, #71d5fe 100%);
 padding: 4rem 2rem;
 text-align: center;
 position: relative;
 overflow: hidden;
}
.hero::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23ffffff" opacity="0.3"></path></svg>') no-repeat bottom;
 background-size: cover;
 opacity: 0.5;
}
.hero-content {
 max-width: 800px;
 margin: 0 auto;
 position: relative;
 z-index: 1;
}
.hero h1 {
 font-size: clamp(2.5rem, 5vw, 3rem);
 margin-bottom: 0.5rem;
 color: var(--light);
 animation: fadeInUp 0.8s ease-out;
}
.hero p {
 font-size: clamp(1.1rem, 2vw, 1.4rem);
 color: var(--light);
 opacity: 0.9;
 animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Content container */
.content {
 max-width: 1200px;
 margin: 4rem auto;
 padding: 0 2rem;
}

/* --------------------
 Product Grid
 -------------------- */
.shop-grid { text-align: center; }

#productShopContainer h2 {
 font-size: clamp(1.8rem, 4vw, 2.5rem);
 margin-bottom: 0.5rem;
 padding-top: 1.5rem;
 color: var(--primary);
}

#productGrid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
 margin-top: 2rem;
 max-width: 1200px;
 margin-left: auto;
 margin-right: auto;
 padding: 0 2rem;
}

.product-card {
 background: var(--light);
 border: 1px solid var(--gray);
 border-radius: 10px;
 padding: 1.5rem;
 text-align: center;
 transition: transform 0.3s, box-shadow 0.3s;
 border: #cccccc 2px solid;
 box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.product-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.product-card img {
 width: 100%;
 max-width: 300px;
 height: auto;
 border-radius: 8px;
 margin-bottom: 1rem;
}
.product-card h3 {
 font-size: 1.45rem;
 margin-bottom: 0.4rem;
 line-height: 1.2;
}
.product-card .price {
 font-size: 1.25rem;
 color: var(--primary);
 font-weight: 700;
 margin-bottom: 1rem;
}
.product-card .stock-status {
 font-size: 0.9rem;
 font-weight: 500;
 margin-bottom: 0.5rem;
 color: #28a745;
}
.product-card.out-of-stock { opacity: 0.6; }
.product-card.out-of-stock .stock-status {
 color: #dc3545;
 font-weight: 700;
}

/* Add to cart button */
.add-to-cart {
 background: var(--primary);
 color: var(--light);
 border: none;
 padding: 0.75rem 1.5rem;
 border-radius: 50px;
 cursor: pointer;
 font-size: 1rem;
 font-weight: 600;
 transition: background 0.3s, transform 0.1s;
}
.add-to-cart:hover {
 background: #000066;
}
.add-to-cart:active {
 transform: scale(0.98);
}
.add-to-cart-btn:disabled {
 background: #6c757d;
 cursor: not-allowed;
}

/* --------------------
 Footer
 -------------------- */
footer {
 background: var(--dark);
 color: var(--light);
 padding: 1.5rem 2rem;
 margin-top: 4rem;
 text-align: center;
}
.footer-links {
 padding: 0.5rem 0 0.75rem;
 border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-links ul {
 list-style: none;
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 0.8rem 1.5rem;
 padding: 0;
}
.footer-links a {
 color: var(--light);
 text-decoration: none;
 opacity: 0.75;
 font-size: 0.9rem;
 transition: opacity 0.3s;
}
.footer-links a:hover { opacity: 1; }
.footer-copyright {
 padding-top: 0.75rem;
 font-size: 0.85rem;
 opacity: 0.65;
}
.footer-content {
 max-width: 1200px;
 margin: 0 auto;
}

/* --------------------
 Animations
 -------------------- */
@keyframes fadeInUp {
 from { opacity: 0; transform: translateY(30px); }
 to { opacity: 1; transform: translateY(0); }
}

/* --------------------
 Responsive Nav
 -------------------- */
.menu-toggle {
 display: none;
 background: none;
 border: none;
 color: var(--light);
 font-size: 1.5rem;
 cursor: pointer;
}
@media (max-width: 768px) {
 .menu-toggle { display: block; }
 .nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary);
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
  display: none;
 }
 .nav-links.active { display: flex; }
}

/* =====================================================
 CART — COMPLETELY RESTORED ORIGINAL LAYOUT
 ===================================================== */
.cart-popup {
 position: fixed;
 top: 0;
 right: -400px;
 width: 400px;
 height: 100vh;
 background: var(--light);
 box-shadow: -4px 0 20px rgba(0,0,0,0.2);
 z-index: 100;
 transition: right 0.3s ease-out;
 display: flex;
 flex-direction: column;
}
.cart-popup[aria-hidden="false"] {
 right: 0;
}

.cart-overlay {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: rgba(0,0,0,0.5);
 z-index: 99;
 opacity: 0;
 pointer-events: none;
 transition: opacity 0.3s;
}

.cart-header {
 background: var(--primary);
 color: var(--light);
 padding: 1.5rem;
 display: flex;
 justify-content: space-between;
 align-items: center;
}
.cart-header h2 {
 font-size: 1.5rem;
 margin: 0;
}
.close-cart {
 background: none;
 border: none;
 color: var(--light);
 font-size: 1.8rem;
 cursor: pointer;
 width: 40px;
 height: 40px;
 display: flex;
 align-items: center;
 justify-content: center;
 border-radius: 50%;
 transition: background 0.3s;
}
.close-cart:hover,
.close-cart:focus {
 background: rgba(255,255,255,0.2);
}

.cart-body {
 flex: 1;
 overflow-y: auto;
 padding: 1.5rem;
}

.cart-empty {
 text-align: center;
 padding: 3rem 1rem;
 color: #999;
}
.cart-empty-icon {
 font-size: 4rem;
 margin-bottom: 1rem;
}

/* === RESTORED ORIGINAL CART ITEM LAYOUT === */
.cart-item {
 display: flex;
 gap: 1rem;
 padding: 1rem 0;
 border-bottom: 1px dashed var(--gray);
 align-items: center;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
 width: 80px;
 height: 80px;
 object-fit: cover;
 border-radius: 5px;
}

.cart-item-details {
 flex-grow: 1;
}

.cart-item-details h4 {
 margin: 0 0 0.25rem 0;
 font-size: 1.1rem;
}

.cart-item-details p {
 margin: 0;
 font-size: 0.9rem;
 color: var(--secondary);
}

.cart-item-actions {
 display: flex;
 align-items: center;
 gap: 0.5rem;
}

.cart-item-actions button {
 background: var(--primary);
 color: var(--light);
 border: none;
 padding: 0.3rem 0.6rem;
 cursor: pointer;
 font-size: 0.8rem;
 border-radius: 5px;
 transition: background 0.2s;
}
.cart-item-actions button:hover {
 background: #000066;
}

.remove-item {
 background: none !important;
 color: #dc3545 !important;
 font-size: 1.2rem !important;
 padding: 0 !important;
}
.remove-item:hover {
 color: #bd2130 !important;
}

.item-quantity {
 font-weight: 600;
 width: 20px;
 text-align: center;
}

.cart-summary {
 padding: 1.5rem;
 border-top: 1px solid var(--gray);
}
.cart-summary p {
 display: flex;
 justify-content: space-between;
 font-size: 1.2rem;
 font-weight: 700;
 margin-bottom: 1rem;
}

/* WhatsApp OR Checkout button */
.whatsapp-btn {
  width: 100%;
  background: #25D366; /* WhatsApp green */
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.3s;
}

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

.whatsapp-btn i {
  font-size: 1.4rem;
}

/* --------------------
 Toast
 -------------------- */
.toast {
 position: fixed;
 bottom: 2rem;
 right: 2rem;
 background: var(--dark);
 color: var(--light);
 padding: 1rem 1.5rem;
 border-radius: 10px;
 box-shadow: 0 4px 20px rgba(0,0,0,0.3);
 transform: translateY(100px);
 opacity: 0;
 transition: all 0.3s;
 z-index: 100;
}
.toast.show {
 transform: translateY(0);
 opacity: 1;
}

/* Utility spacing */
.section { margin: 4rem 0; }
.section-sm { margin: 2rem 0; }
.section-lg { margin: 6rem 0; }
.section-xlg { margin: 8rem 0; }
.padcontent { min-height: 64vh; }

/* ======================================================
 Legal Page Styling
 ====================================================== */
.legal-layout {
 display: flex;
 gap: 2rem;
 max-width: 1200px;
 margin: 0 auto;
 padding: 40px 20px;
}
.legal-sidebar {
 width: 260px;
 flex-shrink: 0;
 background: #f7f7f7;
 border: 1px solid #ddd;
 padding: 20px;
 border-radius: 6px;
 position: sticky;
 top: 20px;
 height: fit-content;
}
.legal-sidebar h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.legal-sidebar ul { list-style: none; padding-left: 0; }
.legal-sidebar li { margin-bottom: 10px; }
.legal-sidebar a {
 color: #333;
 text-decoration: none;
 padding: 4px 0;
 display: block;
}
.legal-sidebar a:hover,
.legal-sidebar .active {
 font-weight: bold;
 text-decoration: underline;
}

.legal-hero {
 background: #fafafa;
 padding: 30px 20px;
 text-align: center;
 max-height: 10rem;
 border-bottom: 1px solid #e0e0e0;
}
.legal-hero h1 { font-size: 2.4rem; margin-bottom: 10px; }
.legal-hero p { font-size: 1.1rem; color: #555; margin-top: -1rem; }

/* Order Summary in Modal */
.order-summary {
    background: var(--gray);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid var(--accent);
}

.order-summary h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--accent);
}

.order-item:last-child {
    border-bottom: none;
}

.item-name {
    flex: 1;
    font-weight: 500;
}

.item-qty {
    margin: 0 1rem;
    color: var(--secondary);
}

.item-price {
    font-weight: 600;
    color: var(--primary);
}

.order-total {
    text-align: right;
    padding-top: 0.5rem;
    border-top: 2px solid var(--primary);
}

.order-total span {
    color: var(--primary);
    font-size: 1.2rem;
}

.legal-content { background: #fff; flex-grow: 1; }
.legal-wrapper { max-width: 900px; margin: 0 auto; line-height: 1.7; }
.legal-wrapper h2 {
 margin-top: 30px;
 font-size: 1.4rem;
 border-bottom: 2px solid #ededed;
 padding: 5px 15px;
}
.legal-wrapper p { margin: 10px 0; }
.legal-wrapper ol { margin: 10px 0 20px 20px; }
.legal-wrapper li { margin-bottom: 8px; }

/* Legal lists */
.legal-wrapper p + ul,
.legal-wrapper ul {
 margin: 0.6rem 0 1rem 0;
 padding-left: 1.25rem;
 list-style-position: outside;
 list-style-type: disc;
}
.legal-wrapper li { margin: 0.45rem 0; line-height: 1.6; }
.legal-wrapper ul ul {
 list-style-type: circle;
 padding-left: 1rem;
 margin-top: 0.35rem;
}
.legal-wrapper li::marker {
 font-size: 1rem;
 color: #333333;
}
.legal-wrapper p > ul,
.legal-wrapper p + ul {
 display: block;
 margin-top: 0.4rem;
}

/* Last updated badge */
.last-updated {
 display: inline-block;
 background: #f3f3f3;
 color: #444;
 font-size: 0.875rem;
 font-weight: 600;
 padding: 6px 12px;
 border-radius: 20px;
 border: 1px solid #d8d8d8;
 margin-bottom: 20px;
 margin-left: 2px;
 letter-spacing: 0.3px;
 box-shadow: 0 1px 2px rgba(0,0,0,0.05);
 animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
 from { opacity: 0; transform: translateY(4px); }
 to { opacity: 1; transform: translateY(0); }
}

/* ======================================================
 About Page Styling
 ====================================================== */
.about-hero-wave {
 background: linear-gradient(135deg, #0039dc 0%, #1a89ec 45%, #71d5fe 100%);
 padding: 30px 20px 50px;
 text-align: center;
 position: relative;
 color: #fff;
 overflow: hidden;
}
.about-hero-wave::before {
 content: "";
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff' opacity='0.35'/%3E%3C/svg%3E")
   no-repeat bottom;
 background-size: cover;
 opacity: 1;
 z-index: 0;
}
.about-hero-inner {
 position: relative;
 z-index: 1;
}
.about-hero-inner h1 {
 font-size: 2.1rem;
 margin-bottom: 6px;
 font-weight: 700;
}
.about-hero-inner p {
 font-size: 1rem;
 opacity: 0.92;
 margin-top: 0;
}

.about-story {
 padding: 40px 20px;
 background: transparent;
 text-align: center;
}
.story-wrapper {
 max-width: 1100px;
 margin: 0 auto;
 padding: 60px 30px;
 background: #ffffff;
 border-radius: 12px;
 border: 1px solid #e6e6e6;
 box-shadow: 0 4px 12px rgba(0,0,0,0.045);
}
.about-story h2 {
 font-size: 2rem;
 margin-bottom: 20px;
}
.about-story p {
 font-size: 1.15rem;
 color: #444;
 line-height: 1.7;
 max-width: 750px;
 margin: 0 auto;
}

.about-features {
 padding: 40px 20px 40px;
 background: transparent;
}
.features-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
 gap: 2rem;
 max-width: 1100px;
 margin: 0 auto;
}
.feature-card {
 background: #ffffff;
 border-radius: 18px;
 padding: 30px 25px;
 text-align: left;
 box-shadow: 0 4px 10px rgba(0,0,0,0.06);
 transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
 transform: translateY(-4px);
 box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.feature-icon {
 font-size: 2.4rem;
 margin-bottom: 15px;
}
.feature-card h3 {
 font-size: 1.3rem;
 margin-bottom: 12px;
 color: var(--primary);
}
.feature-card p {
 color: #555;
 line-height: 1.6;
}

.about-journey {
 padding: 40px 20px 80px;
 background: transparent;
}
.journey-wrapper {
 max-width: 1100px;
 margin: 0 auto;
 padding: 40px 30px;
 background: #ffffff;
 border-radius: 12px;
 border: 1px solid #e6e6e6;
 box-shadow: 0 4px 12px rgba(0,0,0,0.045);
}
.about-journey h2 {
 font-size: 1.9rem;
 margin-bottom: 20px;
 text-align: center;
}
.about-journey p {
 max-width: 750px;
 margin: 15px auto;
 line-height: 1.75;
 color: #444;
}

/* Responsive boxed content */
@media (max-width: 880px) {
 .story-wrapper,
 .journey-wrapper,
 .features-grid {
  padding-left: 18px;
  padding-right: 18px;
 }
 .story-wrapper,
 .journey-wrapper {
  padding: 30px 18px;
 }
 .about-hero-wave { padding: 50px 16px 60px; }
}

/* Mug Images */
.mug-image-box {
 background: #000;
 padding: 12px;
 border-radius: 10px;
 display: flex;
 justify-content: center;
 gap: 12px;
 margin-bottom: 12px;
}
.mug-image-box img {
 width: 48%;
 height: auto;
 object-fit: contain;
}

/* Mug Flip Card */
.mug-flip {
 width: 100%;
 background: #000;
 border-radius: 12px;
 padding: 12px;
 cursor: pointer;
 perspective: 900px;
}
.mug-flip-inner {
 width: 100%;
 transform-style: preserve-3d;
 transition: transform 0.6s ease;
}
.mug-flip.flipped .mug-flip-inner {
 transform: rotateY(180deg);
}
.mug-face {
 width: 100%;
 backface-visibility: hidden;
 position: relative;
}
.mug-face img {
 width: 100%;
 height: auto;
 display: block;
 object-fit: contain;
}
.mug-back {
 position: absolute;
 top: 0;
 left: 0;
 transform: rotateY(180deg);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 350px;
  border-radius: 10px;
  text-align: center;
}

.modal-box h2 {
  margin: 0 0 10px;
}

.modal-box input {
  width: 100%;
  padding: 10px;
  margin: 10px 0 20px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.modal-btn {
  background: #25D366;
  color: #fff;
  padding: 10px 20px;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
